Add --reproduce-command option for tripleo deploy
While using tripleo deploy command we need sometimes to save
reproducer script for issues investigation. Add option to enable
it '--reprocuce-command'.
Change-Id: Ie5e694ab3b9e5196aea76da51e4e567ec8970fd7
(cherry picked from commit bdc976e420
)
This commit is contained in:
parent
265c15ab2f
commit
f7e4cdaa63
|
@ -1107,6 +1107,13 @@ class Deploy(command.Command):
|
||||||
'the container parameters configured, the deployment '
|
'the container parameters configured, the deployment '
|
||||||
'action may fail.')
|
'action may fail.')
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
'--reproduce-command',
|
||||||
|
action='store_true',
|
||||||
|
default=False,
|
||||||
|
help=_('Create a reproducer command with ansible command'
|
||||||
|
'line and all environments variables.')
|
||||||
|
)
|
||||||
|
|
||||||
stack_action_group = parser.add_mutually_exclusive_group()
|
stack_action_group = parser.add_mutually_exclusive_group()
|
||||||
|
|
||||||
|
@ -1350,6 +1357,7 @@ class Deploy(command.Command):
|
||||||
verbosity=utils.playbook_verbosity(self=self),
|
verbosity=utils.playbook_verbosity(self=self),
|
||||||
extra_env_variables=extra_env_var,
|
extra_env_variables=extra_env_var,
|
||||||
forks=parsed_args.ansible_forks,
|
forks=parsed_args.ansible_forks,
|
||||||
|
reproduce_command=parsed_args.reproduce_command,
|
||||||
**operation)
|
**operation)
|
||||||
is_complete = True
|
is_complete = True
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in New Issue