From 85129462169e2f4328cd891fe0f490c940b7466c Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sat, 13 Apr 2024 00:13:55 +0900 Subject: [PATCH] Deprecate import_image This option was added because of a known issue in WSGI mode[1] which was fixed during Vicotria release. Now the latest tempest supports Zed and later we can start removing the option. [1] https://bugs.launchpad.net/glance/+bug/1888713 Change-Id: Id75c7f5846575fba7e2494bc3182ce65b0892c47 --- .../deprecate-import_image-e8c627aab833b64d.yaml | 12 ++++++++++++ tempest/config.py | 11 ++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 releasenotes/notes/deprecate-import_image-e8c627aab833b64d.yaml diff --git a/releasenotes/notes/deprecate-import_image-e8c627aab833b64d.yaml b/releasenotes/notes/deprecate-import_image-e8c627aab833b64d.yaml new file mode 100644 index 0000000000..d408538017 --- /dev/null +++ b/releasenotes/notes/deprecate-import_image-e8c627aab833b64d.yaml @@ -0,0 +1,12 @@ +--- +upgrade: + - | + Default value of the ``[image-feature-enabled] image_import`` has been + changed from ``False`` to ``True``, and now the image import feature is + tested by default. + +deprecations: + - | + The ``[image-feature-enabled] image_import`` option has been deprecated. + The image import feature works in both standalone mode and WSGI mode since + Victoria and the image import feature can be always tested. diff --git a/tempest/config.py b/tempest/config.py index 664ed121ad..4d398361c7 100644 --- a/tempest/config.py +++ b/tempest/config.py @@ -684,12 +684,13 @@ ImageFeaturesGroup = [ 'are current one. In future, Tempest will ' 'test v2 APIs only so this config option ' 'will be removed.'), - # Image import feature is setup in devstack victoria onwards. - # Once all stable branches setup the same via glance standalone - # mode or with uwsgi, we can remove this config option. cfg.BoolOpt('import_image', - default=False, - help="Is image import feature enabled"), + default=True, + help="Is image import feature enabled", + deprecated_for_removal=True, + deprecated_reason='Issue with image import in WSGI mode was ' + 'fixed in Victoria, and this feature works ' + 'in any deployment architecture now.'), cfg.BoolOpt('os_glance_reserved', default=True, help="Should we check that os_glance namespace is reserved",