From b8ee0ca2455ddfc5ffec1365196c03cabe9c488c Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 28 Mar 2017 14:23:12 +0100 Subject: [PATCH] nova-manage: Deprecate 'shell' commands The usefulness of these options is dubious at best and there's no real reason to keep them around. Deprecate this command now, with the plan to remove it entirely in Queens. Change-Id: I5c578d4f322cab1be69b8e498a8dd3bbff29b269 Partially-Implements: bp move-nova-cmds-to-cliff --- doc/source/man/nova-manage.rst | 4 ++++ nova/cmd/manage.py | 6 ++++++ ...cate-nova-manage-commands-9de1abbc94e06d16.yaml | 14 ++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 releasenotes/notes/deprecate-nova-manage-commands-9de1abbc94e06d16.yaml diff --git a/doc/source/man/nova-manage.rst b/doc/source/man/nova-manage.rst index 50c0439dd3..0815765ca4 100644 --- a/doc/source/man/nova-manage.rst +++ b/doc/source/man/nova-manage.rst @@ -192,6 +192,10 @@ Nova Logs Nova Shell ~~~~~~~~~~ +.. deprecated:: 16.0.0 + + This will be removed in 17.0.0 (Queens) + ``nova-manage shell bpython`` Starts a new bpython shell. diff --git a/nova/cmd/manage.py b/nova/cmd/manage.py index f4b41d1f7b..768a0f9603 100644 --- a/nova/cmd/manage.py +++ b/nova/cmd/manage.py @@ -118,6 +118,12 @@ def param2id(object_id): class ShellCommands(object): + + # TODO(stephenfin): Remove this during the Queens cycle + description = ('DEPRECATED: The shell commands are deprecated since ' + 'Pike as they serve no useful purpose in modern nova. ' + 'They will be removed in an upcoming release.') + def bpython(self): """Runs a bpython shell. diff --git a/releasenotes/notes/deprecate-nova-manage-commands-9de1abbc94e06d16.yaml b/releasenotes/notes/deprecate-nova-manage-commands-9de1abbc94e06d16.yaml new file mode 100644 index 0000000000..59cfc6f5d1 --- /dev/null +++ b/releasenotes/notes/deprecate-nova-manage-commands-9de1abbc94e06d16.yaml @@ -0,0 +1,14 @@ +--- +deprecations: + - | + A number of `nova-manage` commands have been deprecated. The commands, + along with the reasons for their deprecation, are listed below: + + `shell` + + This starts the Python interactive interpreter. It is a clone of the same + functionality found in Django's `django-manage` command. This command + hasn't been actively maintained in a long time and is not tested. It will + simply be removed. + + These commands will be removed in their entirety during the Queens cycle.