Merge "Deprecate support for glance v1"

This commit is contained in:
Jenkins 2017-03-14 05:30:43 +00:00 committed by Gerrit Code Review
commit 7ce234d8b4
3 changed files with 16 additions and 2 deletions

View File

@ -1434,9 +1434,14 @@
# [hostname|IP]:port. (list value)
#glance_api_servers = <None>
# Glance API version (1 or 2) to use. (integer value)
# DEPRECATED: Glance API version (1 or 2) to use. (integer
# value)
# Minimum value: 1
# Maximum value: 2
# This option is deprecated for removal.
# Its value may be silently ignored in the future.
# Reason: Ironic will only support using Glance API version 2
# in the Queens release.
#glance_api_version = 2
# Optional path to a CA certificate bundle to be used to

View File

@ -143,7 +143,10 @@ opts = [
'used when glance_api_insecure is set to False.')),
cfg.IntOpt('glance_api_version',
help=_('Glance API version (1 or 2) to use.'),
min=1, max=2, default=2),
min=1, max=2, default=2,
deprecated_for_removal=True,
deprecated_reason=_('Ironic will only support using Glance API '
'version 2 in the Queens release.')),
]

View File

@ -0,0 +1,6 @@
---
deprecations:
- |
Support for the Image service v1 API has been deprecated along with the
``[glance]/glance_api_version`` configuration option and will be removed in
the `Queens` release.