Remove 'nova-manage quota refresh' command

This command was deprecated in 16.0.0 and can now be removed.

Change-Id: I016227cb20f8d6911e3cb57c7372835a75d122fd
This commit is contained in:
jichenjc 2017-11-21 20:03:07 +08:00
parent 8017c35291
commit d614a8b8af
3 changed files with 8 additions and 35 deletions

View File

@ -282,20 +282,6 @@ Nova Shell
Runs the named script from the specified path with flags set.
.. _nova-manage-quota:
Nova Quota
~~~~~~~~~~
.. deprecated:: 16.0.0
This will be removed in 17.0.0 (Queens)
``nova-manage quota refresh``
This command has been deprecated and is now a no-op since quota usage is
counted from resources instead of being tracked separately.
Nova Project
~~~~~~~~~~~~

View File

@ -224,26 +224,6 @@ def _db_error(caught_exception):
sys.exit(1)
class QuotaCommands(object):
"""Class for managing quotas."""
# TODO(melwitt): Remove this during the Queens cycle
description = ('DEPRECATED: The quota commands are deprecated since '
'Pike as quota usage is counted from resources instead '
'of being tracked separately. They will be removed in an '
'upcoming release.')
@args('--project', dest='project_id', metavar='<Project Id>',
help='Project Id', required=True)
@args('--user', dest='user_id', metavar='<User Id>',
help='User Id')
@args('--key', metavar='<key>', help='Key')
def refresh(self, project_id, user_id=None, key=None):
"""DEPRECATED: This command is deprecated and no longer does anything.
"""
pass
class ProjectCommands(object):
"""Class for managing projects."""
@ -1917,7 +1897,6 @@ CATEGORIES = {
'network': NetworkCommands,
'project': ProjectCommands,
'shell': ShellCommands,
'quota': QuotaCommands,
}

View File

@ -0,0 +1,8 @@
---
upgrade:
- |
The following ``nova-manage`` commands have been removed.
- ``quota``
These were previously deprecated in 16.0.0.