summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2021-06-16 16:19:08 +0100
committerArtom Lifshitz <alifshit@redhat.com>2022-12-13 16:15:36 +0000
commit92dafb3a19d19db87c81471a4a931b41d19e2c5a (patch)
tree83e5fbb4a5872976045b5d1dcba5452b588d53d8 /openstackclient
parentad924068f89439fbf2fbaaf394280eeeefd6c3e9 (diff)
downloadpython-openstackclient-92dafb3a19d19db87c81471a4a931b41d19e2c5a.tar.gz
compute: Note that '--password' is deployment-specific
Password injection requires either hypervisor-support or an agent running in the guest that will talk to the metadata service. It can be disabled for a deployment using the '[api] enable_instance_password' nova config option. Indicate this, albeit briefly. Change-Id: Ief94ea07fc7ab6a487af972e8759ca6704d8f085 Signed-off-by: Stephen Finucane <sfinucan@redhat.com> (cherry picked from commit 280b14abcddf3a308a819771117dd6b72d802642)
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/compute/v2/server.py23
1 files changed, 18 insertions, 5 deletions
diff --git a/openstackclient/compute/v2/server.py b/openstackclient/compute/v2/server.py
index fd2ea33f..4a8468c2 100644
--- a/openstackclient/compute/v2/server.py
+++ b/openstackclient/compute/v2/server.py
@@ -1012,7 +1012,10 @@ class CreateServer(command.ShowOne):
parser.add_argument(
'--password',
metavar='<password>',
- help=_("Set the password to this server"),
+ help=_(
+ 'Set the password to this server. '
+ 'This option requires cloud support.'
+ ),
)
parser.add_argument(
'--security-group',
@@ -3162,7 +3165,10 @@ class RebuildServer(command.ShowOne):
parser.add_argument(
'--password',
metavar='<password>',
- help=_('Set the password on the rebuilt server'),
+ help=_(
+ 'Set the password on the rebuilt server. '
+ 'This option requires cloud support.'
+ ),
)
parser.add_argument(
'--property',
@@ -3463,7 +3469,8 @@ host.""")
'--password', metavar='<password>', default=None,
help=_(
'Set the password on the evacuated instance. This option is '
- 'mutually exclusive with the --shared-storage option'
+ 'mutually exclusive with the --shared-storage option. '
+ 'This option requires cloud support.'
),
)
shared_storage_group.add_argument(
@@ -3753,7 +3760,10 @@ class RescueServer(command.Command):
parser.add_argument(
'--password',
metavar='<password>',
- help=_("Set the password on the rescued instance"),
+ help=_(
+ 'Set the password on the rescued instance. '
+ 'This option requires cloud support.'
+ ),
)
return parser
@@ -4012,7 +4022,10 @@ class SetServer(command.Command):
password_group = parser.add_mutually_exclusive_group()
password_group.add_argument(
'--password',
- help=_('Set the server password'),
+ help=_(
+ 'Set the server password. '
+ 'This option requires cloud support.'
+ ),
)
password_group.add_argument(
'--no-password',