Change future nova version number references based on new values
The nova server liberty version is changing from 2015.2 to 12.0.0 and the 2016.1 'M' release will be 13.0.0 so update the deprecation warnings in the docs and code using those versions. Depends on nova change 192406. Change-Id: I6a35fa0dda798fad93b804d00a46af80f08d475c
This commit is contained in:
parent
39020950d6
commit
f3fef4ab2f
@ -72,11 +72,11 @@ The process for command deprecation is:
|
|||||||
|
|
||||||
3. Example: `<https://review.openstack.org/#/c/185141/>`_
|
3. Example: `<https://review.openstack.org/#/c/185141/>`_
|
||||||
|
|
||||||
This change was made while the Nova 2015.2 Liberty release was in
|
This change was made while the Nova 12.0.0 Liberty release was in
|
||||||
development. The current version of python-novaclient at the time was
|
development. The current version of python-novaclient at the time was
|
||||||
2.25.0. Once the change was merged, python-novaclient 2.26.0 was released.
|
2.25.0. Once the change was merged, python-novaclient 2.26.0 was released.
|
||||||
Since there was less than six months before 2015.2 would be released, the
|
Since there was less than six months before 12.0.0 would be released, the
|
||||||
deprecation cycle ran through the 2016.1 Nova server release.
|
deprecation cycle ran through the 13.0.0 Nova server release.
|
||||||
|
|
||||||
|
|
||||||
Man Page
|
Man Page
|
||||||
|
@ -62,10 +62,10 @@ CLIENT_BDM2_KEYS = {
|
|||||||
|
|
||||||
|
|
||||||
# NOTE(mriedem): Remove this along with the deprecated commands in the first
|
# NOTE(mriedem): Remove this along with the deprecated commands in the first
|
||||||
# python-novaclient release AFTER the nova server 2016.1 'M' release.
|
# python-novaclient release AFTER the nova server 13.0.0 'M' release.
|
||||||
def emit_volume_deprecation_warning(command_name):
|
def emit_volume_deprecation_warning(command_name):
|
||||||
print('WARNING: Command %s is deprecated and will be removed after Nova '
|
print('WARNING: Command %s is deprecated and will be removed after Nova '
|
||||||
'2016.1 is released. Use python-cinderclient or openstackclient '
|
'13.0.0 is released. Use python-cinderclient or openstackclient '
|
||||||
'instead.' % command_name, file=sys.stderr)
|
'instead.' % command_name, file=sys.stderr)
|
||||||
|
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ class SnapshotManager(base.ManagerWithFind):
|
|||||||
:rtype: :class:`Snapshot`
|
:rtype: :class:`Snapshot`
|
||||||
"""
|
"""
|
||||||
warnings.warn('The novaclient.v2.volume_snapshots module is '
|
warnings.warn('The novaclient.v2.volume_snapshots module is '
|
||||||
'deprecated and will be removed after Nova 2016.1 is '
|
'deprecated and will be removed after Nova 13.0.0 is '
|
||||||
'released. Use python-cinderclient or '
|
'released. Use python-cinderclient or '
|
||||||
'python-openstacksdk instead.', DeprecationWarning)
|
'python-openstacksdk instead.', DeprecationWarning)
|
||||||
with self.alternate_service_type('volume'):
|
with self.alternate_service_type('volume'):
|
||||||
@ -76,7 +76,7 @@ class SnapshotManager(base.ManagerWithFind):
|
|||||||
:rtype: :class:`Snapshot`
|
:rtype: :class:`Snapshot`
|
||||||
"""
|
"""
|
||||||
warnings.warn('The novaclient.v2.volume_snapshots module is '
|
warnings.warn('The novaclient.v2.volume_snapshots module is '
|
||||||
'deprecated and will be removed after Nova 2016.1 is '
|
'deprecated and will be removed after Nova 13.0.0 is '
|
||||||
'released. Use python-cinderclient or '
|
'released. Use python-cinderclient or '
|
||||||
'python-openstacksdk instead.', DeprecationWarning)
|
'python-openstacksdk instead.', DeprecationWarning)
|
||||||
with self.alternate_service_type('volume'):
|
with self.alternate_service_type('volume'):
|
||||||
@ -89,7 +89,7 @@ class SnapshotManager(base.ManagerWithFind):
|
|||||||
:rtype: list of :class:`Snapshot`
|
:rtype: list of :class:`Snapshot`
|
||||||
"""
|
"""
|
||||||
warnings.warn('The novaclient.v2.volume_snapshots module is '
|
warnings.warn('The novaclient.v2.volume_snapshots module is '
|
||||||
'deprecated and will be removed after Nova 2016.1 is '
|
'deprecated and will be removed after Nova 13.0.0 is '
|
||||||
'released. Use python-cinderclient or '
|
'released. Use python-cinderclient or '
|
||||||
'python-openstacksdk instead.', DeprecationWarning)
|
'python-openstacksdk instead.', DeprecationWarning)
|
||||||
with self.alternate_service_type('volume'):
|
with self.alternate_service_type('volume'):
|
||||||
@ -105,7 +105,7 @@ class SnapshotManager(base.ManagerWithFind):
|
|||||||
:param snapshot: The :class:`Snapshot` to delete.
|
:param snapshot: The :class:`Snapshot` to delete.
|
||||||
"""
|
"""
|
||||||
warnings.warn('The novaclient.v2.volume_snapshots module is '
|
warnings.warn('The novaclient.v2.volume_snapshots module is '
|
||||||
'deprecated and will be removed after Nova 2016.1 is '
|
'deprecated and will be removed after Nova 13.0.0 is '
|
||||||
'released. Use python-cinderclient or '
|
'released. Use python-cinderclient or '
|
||||||
'python-openstacksdk instead.', DeprecationWarning)
|
'python-openstacksdk instead.', DeprecationWarning)
|
||||||
with self.alternate_service_type('volume'):
|
with self.alternate_service_type('volume'):
|
||||||
|
@ -44,7 +44,7 @@ class VolumeTypeManager(base.ManagerWithFind):
|
|||||||
:rtype: list of :class:`VolumeType`.
|
:rtype: list of :class:`VolumeType`.
|
||||||
"""
|
"""
|
||||||
warnings.warn('The novaclient.v2.volume_types module is deprecated '
|
warnings.warn('The novaclient.v2.volume_types module is deprecated '
|
||||||
'and will be removed after Nova 2016.1 is released. Use '
|
'and will be removed after Nova 13.0.0 is released. Use '
|
||||||
'python-cinderclient or python-openstacksdk instead.',
|
'python-cinderclient or python-openstacksdk instead.',
|
||||||
DeprecationWarning)
|
DeprecationWarning)
|
||||||
with self.alternate_service_type('volume'):
|
with self.alternate_service_type('volume'):
|
||||||
@ -58,7 +58,7 @@ class VolumeTypeManager(base.ManagerWithFind):
|
|||||||
:rtype: :class:`VolumeType`
|
:rtype: :class:`VolumeType`
|
||||||
"""
|
"""
|
||||||
warnings.warn('The novaclient.v2.volume_types module is deprecated '
|
warnings.warn('The novaclient.v2.volume_types module is deprecated '
|
||||||
'and will be removed after Nova 2016.1 is released. Use '
|
'and will be removed after Nova 13.0.0 is released. Use '
|
||||||
'python-cinderclient or python-openstacksdk instead.',
|
'python-cinderclient or python-openstacksdk instead.',
|
||||||
DeprecationWarning)
|
DeprecationWarning)
|
||||||
with self.alternate_service_type('volume'):
|
with self.alternate_service_type('volume'):
|
||||||
@ -72,7 +72,7 @@ class VolumeTypeManager(base.ManagerWithFind):
|
|||||||
:param volume_type: The ID of the :class:`VolumeType` to get.
|
:param volume_type: The ID of the :class:`VolumeType` to get.
|
||||||
"""
|
"""
|
||||||
warnings.warn('The novaclient.v2.volume_types module is deprecated '
|
warnings.warn('The novaclient.v2.volume_types module is deprecated '
|
||||||
'and will be removed after Nova 2016.1 is released. Use '
|
'and will be removed after Nova 13.0.0 is released. Use '
|
||||||
'python-cinderclient or python-openstacksdk instead.',
|
'python-cinderclient or python-openstacksdk instead.',
|
||||||
DeprecationWarning)
|
DeprecationWarning)
|
||||||
with self.alternate_service_type('volume'):
|
with self.alternate_service_type('volume'):
|
||||||
@ -86,7 +86,7 @@ class VolumeTypeManager(base.ManagerWithFind):
|
|||||||
:rtype: :class:`VolumeType`
|
:rtype: :class:`VolumeType`
|
||||||
"""
|
"""
|
||||||
warnings.warn('The novaclient.v2.volume_types module is deprecated '
|
warnings.warn('The novaclient.v2.volume_types module is deprecated '
|
||||||
'and will be removed after Nova 2016.1 is released. Use '
|
'and will be removed after Nova 13.0.0 is released. Use '
|
||||||
'python-cinderclient or python-openstacksdk instead.',
|
'python-cinderclient or python-openstacksdk instead.',
|
||||||
DeprecationWarning)
|
DeprecationWarning)
|
||||||
with self.alternate_service_type('volume'):
|
with self.alternate_service_type('volume'):
|
||||||
|
@ -65,7 +65,7 @@ class VolumeManager(base.ManagerWithFind):
|
|||||||
"""
|
"""
|
||||||
warnings.warn('The novaclient.v2.volumes.VolumeManager.create() '
|
warnings.warn('The novaclient.v2.volumes.VolumeManager.create() '
|
||||||
'method is deprecated and will be removed after Nova '
|
'method is deprecated and will be removed after Nova '
|
||||||
'2016.1 is released. Use python-cinderclient or '
|
'13.0.0 is released. Use python-cinderclient or '
|
||||||
'python-openstacksdk instead.', DeprecationWarning)
|
'python-openstacksdk instead.', DeprecationWarning)
|
||||||
# NOTE(melwitt): Ensure we use the volume endpoint for this call
|
# NOTE(melwitt): Ensure we use the volume endpoint for this call
|
||||||
with self.alternate_service_type('volume'):
|
with self.alternate_service_type('volume'):
|
||||||
@ -87,7 +87,7 @@ class VolumeManager(base.ManagerWithFind):
|
|||||||
"""
|
"""
|
||||||
warnings.warn('The novaclient.v2.volumes.VolumeManager.get() '
|
warnings.warn('The novaclient.v2.volumes.VolumeManager.get() '
|
||||||
'method is deprecated and will be removed after Nova '
|
'method is deprecated and will be removed after Nova '
|
||||||
'2016.1 is released. Use python-cinderclient or '
|
'13.0.0 is released. Use python-cinderclient or '
|
||||||
'python-openstacksdk instead.', DeprecationWarning)
|
'python-openstacksdk instead.', DeprecationWarning)
|
||||||
with self.alternate_service_type('volume'):
|
with self.alternate_service_type('volume'):
|
||||||
return self._get("/volumes/%s" % volume_id, "volume")
|
return self._get("/volumes/%s" % volume_id, "volume")
|
||||||
@ -100,7 +100,7 @@ class VolumeManager(base.ManagerWithFind):
|
|||||||
"""
|
"""
|
||||||
warnings.warn('The novaclient.v2.volumes.VolumeManager.list() '
|
warnings.warn('The novaclient.v2.volumes.VolumeManager.list() '
|
||||||
'method is deprecated and will be removed after Nova '
|
'method is deprecated and will be removed after Nova '
|
||||||
'2016.1 is released. Use python-cinderclient or '
|
'13.0.0 is released. Use python-cinderclient or '
|
||||||
'python-openstacksdk instead.', DeprecationWarning)
|
'python-openstacksdk instead.', DeprecationWarning)
|
||||||
with self.alternate_service_type('volume'):
|
with self.alternate_service_type('volume'):
|
||||||
search_opts = search_opts or {}
|
search_opts = search_opts or {}
|
||||||
@ -126,7 +126,7 @@ class VolumeManager(base.ManagerWithFind):
|
|||||||
"""
|
"""
|
||||||
warnings.warn('The novaclient.v2.volumes.VolumeManager.delete() '
|
warnings.warn('The novaclient.v2.volumes.VolumeManager.delete() '
|
||||||
'method is deprecated and will be removed after Nova '
|
'method is deprecated and will be removed after Nova '
|
||||||
'2016.1 is released. Use python-cinderclient or '
|
'13.0.0 is released. Use python-cinderclient or '
|
||||||
'python-openstacksdk instead.', DeprecationWarning)
|
'python-openstacksdk instead.', DeprecationWarning)
|
||||||
with self.alternate_service_type('volume'):
|
with self.alternate_service_type('volume'):
|
||||||
self._delete("/volumes/%s" % base.getid(volume))
|
self._delete("/volumes/%s" % base.getid(volume))
|
||||||
|
Loading…
Reference in New Issue
Block a user