diff --git a/nova/cmd/manage.py b/nova/cmd/manage.py index 9b2b1e144452..122c3765ee55 100644 --- a/nova/cmd/manage.py +++ b/nova/cmd/manage.py @@ -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] diff --git a/releasenotes/notes/deprecate-nova-manage-commands-9de1abbc94e06d16.yaml b/releasenotes/notes/deprecate-nova-manage-commands-9de1abbc94e06d16.yaml index 3745e0a90136..169cfaf85bab 100644 --- a/releasenotes/notes/deprecate-nova-manage-commands-9de1abbc94e06d16.yaml +++ b/releasenotes/notes/deprecate-nova-manage-commands-9de1abbc94e06d16.yaml @@ -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