nova-manage: Deprecate 'host' commands
These operations can be accomplished using the REST API [1]. There's no reason to keep them in nova-manage. [1] https://developer.openstack.org/api-ref/compute/#compute-services-os-services Change-Id: If1e095b1b533f6e9a56486b8aa7e3976e14c1ed2 Partially-Implements: blueprint deprecate-os-hosts
This commit is contained in:
parent
3d269c5302
commit
59ba12ce35
@ -618,6 +618,11 @@ class NetworkCommands(object):
|
|||||||
class HostCommands(object):
|
class HostCommands(object):
|
||||||
"""List hosts."""
|
"""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):
|
def list(self, zone=None):
|
||||||
"""Show a list of all physical hosts. Filter by zone.
|
"""Show a list of all physical hosts. Filter by zone.
|
||||||
args: [zone]
|
args: [zone]
|
||||||
|
@ -25,6 +25,11 @@ deprecations:
|
|||||||
builds". Operators should use the equivalent resources in the `REST
|
builds". Operators should use the equivalent resources in the `REST
|
||||||
API`__ instead.
|
API`__ instead.
|
||||||
|
|
||||||
|
`host`
|
||||||
|
|
||||||
|
This allows for the listing of compute hosts. Operators should use the
|
||||||
|
equivalent resources in the `REST API`__ instead.
|
||||||
|
|
||||||
`project`
|
`project`
|
||||||
|
|
||||||
This is an alias for `account` and has been deprecated for the same
|
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/#quota-sets-os-quota-sets
|
||||||
__ https://developer.openstack.org/api-ref/compute/#guest-agents-os-agents
|
__ https://developer.openstack.org/api-ref/compute/#guest-agents-os-agents
|
||||||
|
__ https://developer.openstack.org/api-ref/compute/#compute-services-os-services
|
||||||
|
Loading…
Reference in New Issue
Block a user