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)