Merge "nova-manage: Deprecate 'host' commands"

This commit is contained in:
Jenkins 2017-05-19 23:50:55 +00:00 committed by Gerrit Code Review
commit ac6acbfbc0
2 changed files with 11 additions and 0 deletions

View File

@ -618,6 +618,11 @@ class NetworkCommands(object):
class HostCommands(object):
"""List hosts."""
# TODO(stephenfin): Remove this during the Queens cycle
description = ('DEPRECATED: The host commands are deprecated since '
'Pike as this information is available over the API. They '
'will be removed in an upcoming release.')
def list(self, zone=None):
"""Show a list of all physical hosts. Filter by zone.
args: [zone]

View File

@ -25,6 +25,11 @@ deprecations:
builds". Operators should use the equivalent resources in the `REST
API`__ instead.
`host`
This allows for the listing of compute hosts. Operators should use the
equivalent resources in the `REST API`__ instead.
`project`
This is an alias for `account` and has been deprecated for the same
@ -41,3 +46,4 @@ deprecations:
__ https://developer.openstack.org/api-ref/compute/#quota-sets-os-quota-sets
__ https://developer.openstack.org/api-ref/compute/#guest-agents-os-agents
__ https://developer.openstack.org/api-ref/compute/#compute-services-os-services