From 9a13b3ba08e7d4e28c18808c4f8715d54c1f6c02 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 28 Mar 2017 14:28:31 +0100 Subject: [PATCH] nova-manage: Deprecate 'agent' 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/#guest-agents-os-agents Change-Id: I5ab7f4a0847687e426fa28bc7a032684b931532f --- nova/cmd/manage.py | 5 +++++ .../deprecate-nova-manage-commands-9de1abbc94e06d16.yaml | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/nova/cmd/manage.py b/nova/cmd/manage.py index a3aad09054bc..fb58148b6ae5 100644 --- a/nova/cmd/manage.py +++ b/nova/cmd/manage.py @@ -821,6 +821,11 @@ class ApiDbCommands(object): class AgentBuildCommands(object): """Class for managing agent builds.""" + # TODO(stephenfin): Remove this during the Queens cycle + description = ('DEPRECATED: The agent commands are deprecated since ' + 'Pike as this information is available over the API. They ' + 'will be removed in an upcoming release.') + @args('--os', metavar='', help='os') @args('--architecture', dest='architecture', metavar='', help='architecture') diff --git a/releasenotes/notes/deprecate-nova-manage-commands-9de1abbc94e06d16.yaml b/releasenotes/notes/deprecate-nova-manage-commands-9de1abbc94e06d16.yaml index 59cfc6f5d1b2..ceff7834f4eb 100644 --- a/releasenotes/notes/deprecate-nova-manage-commands-9de1abbc94e06d16.yaml +++ b/releasenotes/notes/deprecate-nova-manage-commands-9de1abbc94e06d16.yaml @@ -4,6 +4,12 @@ deprecations: A number of `nova-manage` commands have been deprecated. The commands, along with the reasons for their deprecation, are listed below: + `agent` + + This allows for the creation, deletion, update and listing of "agent + builds". Operators should use the equivalent resources in the `REST + API`__ instead. + `shell` This starts the Python interactive interpreter. It is a clone of the same @@ -12,3 +18,5 @@ deprecations: simply be removed. These commands will be removed in their entirety during the Queens cycle. + + __ https://developer.openstack.org/api-ref/compute/#guest-agents-os-agents