Merge "Deprecate glance APIs version config options"

This commit is contained in:
Jenkins
2017-03-14 19:34:34 +00:00
committed by Gerrit Code Review
2 changed files with 22 additions and 2 deletions

View File

@@ -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

View File

@@ -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."