Deprecate image v1 service clients

Glance has removed the image v1 APIs in Victoria
cycle: https://review.opendev.org/c/openstack/glance/+/738673

Tempest still support Ussuri release which is last release
where image v1 APIs are present so we need to keep them until
stable ussuri is supported in Tempest but we can deprecate them.

Change-Id: Iabc02c4516c84b523c61b82a2a44ee0db73f21e4
This commit is contained in:
Ghanshyam Mann 2021-05-18 14:49:19 -05:00
parent 393e94a604
commit ccaa9969f0
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
deprecations:
- |
Tempest service clients for image v1 APIs (tempest.lib.services.image.v1 module)
is deprecated and will be removed once Tempest stop supporting stable Ussuri release
which is last release Image v1 APIs are present in glance.

View File

@ -12,8 +12,17 @@
# License for the specific language governing permissions and limitations under
# the License.
import warnings
from tempest.lib.services.image.v1.image_members_client import \
ImageMembersClient
from tempest.lib.services.image.v1.images_client import ImagesClient
__all__ = ['ImageMembersClient', 'ImagesClient']
warnings.warn(
"The tempest.lib.services.image.v1 module (Image v1 APIs service "
"clients) is deprecated in favor of tempest.lib.services.image.v2 "
"(Image v2 APIs service clients) and will be removed once Tempest stop "
"supporting stable Ussuri.", DeprecationWarning)