From 59ba12ce35f3eff014b7f58929a9a900def5459a Mon Sep 17 00:00:00 2001 From: Stephen Finucane <sfinucan@redhat.com> Date: Tue, 4 Apr 2017 13:48:06 +0100 Subject: [PATCH] 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 --- nova/cmd/manage.py | 5 +++++ .../deprecate-nova-manage-commands-9de1abbc94e06d16.yaml | 6 ++++++ 2 files changed, 11 insertions(+) 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