From 2b9310eaed7b896ef397e66d6c36e9a2604cafba Mon Sep 17 00:00:00 2001
From: xiexs <xiexs@cn.fujitsu.com>
Date: Fri, 22 Apr 2016 04:29:08 -0400
Subject: [PATCH] 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
---
 novaclient/v2/shell.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py
index 769725e42..26ace2bf8 100644
--- a/novaclient/v2/shell.py
+++ b/novaclient/v2/shell.py
@@ -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='+',