From 6b0b8b718e8e4ed00fe5f108bb7495b968bb6d8d Mon Sep 17 00:00:00 2001 From: ghanshyam Date: Wed, 8 Mar 2017 04:22:53 +0000 Subject: [PATCH] Deprecate glance APIs version config options Glance v1 APIs are deprecated and v2 are current. Tempest should tests only v2 APIs and by default v1 APIs are being disabled - I7f962a07317cdad917ee896d79e49ee18938d074 This commit deprecate the API version selection config options so that we can switch to v2 only testing soon. Change-Id: I6c4b92f0f2da2797efbb27e16061e6e325dda504 --- ...pi-version-config-options-8370b63aea8e14cf.yaml | 10 ++++++++++ tempest/config.py | 14 ++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/deprecate-glance-api-version-config-options-8370b63aea8e14cf.yaml diff --git a/releasenotes/notes/deprecate-glance-api-version-config-options-8370b63aea8e14cf.yaml b/releasenotes/notes/deprecate-glance-api-version-config-options-8370b63aea8e14cf.yaml new file mode 100644 index 0000000000..788bc95901 --- /dev/null +++ b/releasenotes/notes/deprecate-glance-api-version-config-options-8370b63aea8e14cf.yaml @@ -0,0 +1,10 @@ +--- +deprecations: + - | + Glance v1 APIs are deprecated and v2 are current. + Tempest should tests only v2 APIs. + Below API version selection config options + for glance have been deprecated and will be removed in future. + + * CONF.image_feature_enabled.api_v2 + * CONF.image_feature_enabled.api_v1 diff --git a/tempest/config.py b/tempest/config.py index 274cd21c20..8795674b87 100644 --- a/tempest/config.py +++ b/tempest/config.py @@ -514,10 +514,20 @@ image_feature_group = cfg.OptGroup(name='image-feature-enabled', ImageFeaturesGroup = [ cfg.BoolOpt('api_v2', default=True, - help="Is the v2 image API enabled"), + help="Is the v2 image API enabled", + deprecated_for_removal=True, + deprecated_reason='Glance v1 APIs are deprecated and v2 APIs ' + 'are current one. In future, Tempest will ' + 'test v2 APIs only so this config option ' + 'will be removed.'), cfg.BoolOpt('api_v1', default=True, - help="Is the v1 image API enabled"), + help="Is the v1 image API enabled", + deprecated_for_removal=True, + deprecated_reason='Glance v1 APIs are deprecated and v2 APIs ' + 'are current one. In future, Tempest will ' + 'test v2 APIs only so this config option ' + 'will be removed.'), cfg.BoolOpt('deactivate_image', default=False, help="Is the deactivate-image feature enabled."