From ccaa9969f06907a933e2f2068b9293c3a1a1db75 Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Tue, 18 May 2021 14:49:19 -0500 Subject: [PATCH] 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 --- ...recate-image-v1-service-clients-d12ed42210bb76b5.yaml | 6 ++++++ tempest/lib/services/image/v1/__init__.py | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 releasenotes/notes/deprecate-image-v1-service-clients-d12ed42210bb76b5.yaml diff --git a/releasenotes/notes/deprecate-image-v1-service-clients-d12ed42210bb76b5.yaml b/releasenotes/notes/deprecate-image-v1-service-clients-d12ed42210bb76b5.yaml new file mode 100644 index 0000000000..4a22f8e845 --- /dev/null +++ b/releasenotes/notes/deprecate-image-v1-service-clients-d12ed42210bb76b5.yaml @@ -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. diff --git a/tempest/lib/services/image/v1/__init__.py b/tempest/lib/services/image/v1/__init__.py index 9bd8262a87..1f33cef507 100644 --- a/tempest/lib/services/image/v1/__init__.py +++ b/tempest/lib/services/image/v1/__init__.py @@ -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)