Skip to content

Commit 3df5f92

Browse files
committed
Add server add/remove volume description for microversion 2.20
The compute API 2.20 microversion allows attaching and detaching a volume to/from a server with status SHELVED or SHELVED_OFFLOADED. For OSC this just means the user has to specify the appropriate minimum microversion to make that work, so this change mentions that in the "server add volume" and "server remove volume" command description. Related to nova blueprint volume-ops-when-shelved Change-Id: I4824175e5d9e124e3bd9e9a8fd5a89277efc6cff
1 parent 57dec52 commit 3df5f92

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

openstackclient/compute/v2/server.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,10 @@ def take_action(self, parsed_args):
424424

425425

426426
class AddServerVolume(command.Command):
427-
_description = _("Add volume to server")
427+
_description = _(
428+
"Add volume to server. "
429+
"Specify ``--os-compute-api-version 2.20`` or higher to add a volume "
430+
"to a server with status ``SHELVED`` or ``SHELVED_OFFLOADED``.")
428431

429432
def get_parser(self, prog_name):
430433
parser = super(AddServerVolume, self).get_parser(prog_name)
@@ -1949,7 +1952,11 @@ def take_action(self, parsed_args):
19491952

19501953

19511954
class RemoveServerVolume(command.Command):
1952-
_description = _("Remove volume from server")
1955+
_description = _(
1956+
"Remove volume from server. "
1957+
"Specify ``--os-compute-api-version 2.20`` or higher to remove a "
1958+
"volume from a server with status ``SHELVED`` or "
1959+
"``SHELVED_OFFLOADED``.")
19531960

19541961
def get_parser(self, prog_name):
19551962
parser = super(RemoveServerVolume, self).get_parser(prog_name)

0 commit comments

Comments
 (0)