Add a note message for reboot

Currently nova reboot only performs a hard-reboot to
baremetal nodes as ironic doesn't support the soft-reboot
yet. And as absence of this information, end user has to try
to excute this command firstly and then probably realize
the difference between the baremetal nodes and ordinary
VM instance about this command:

 * For VM instance
   nova reboot       : perform a soft reboot by default.
   nova reboot --hard: perform a hard reboot.

 * For baremetal node
   nova reboot       : perform a hard reboot by default.
   nova reboot --hard: perform a hard reboot as well.

For more user-friendly, we'd better add some notes into
the help message explicitly.

Change-Id: I7b3f6da4b5f8a514c6d923f3546470d9de459003
Partial-Bug: #1485416
This commit is contained in:
xiexs 2016-04-22 04:29:08 -04:00
parent f6efc861b7
commit 2b9310eaed

@ -1596,7 +1596,10 @@ def do_list(cs, args):
action='store_const',
const=servers.REBOOT_HARD,
default=servers.REBOOT_SOFT,
help=_('Perform a hard reboot (instead of a soft one).'))
help=_('Perform a hard reboot (instead of a soft one). '
'Note: Ironic does not currently support soft reboot; '
'consequently, bare metal nodes will always do a hard '
'reboot, regardless of the use of this option.'))
@utils.arg(
'server',
metavar='<server>', nargs='+',