Adds new "--no-inflight-validations" option to deploy CLI
This provides an independant way to activate or not the in-flight validations within a deploy. The default is to have them running, and this option allows to deactivate the in-flight ones. Change-Id: I81e934e2978cad4e2713d54e19a57c84a6ac0b52
This commit is contained in:
parent
055443d4e2
commit
bf48dbc844
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Introduce new "--no-inflight-validations" option in order to deactivate
|
||||
those validations. It defaults to "False", since we want them by default.
|
@ -722,6 +722,16 @@ class DeployOvercloud(command.Command):
|
||||
'use the --run-validations flag. These validations are '
|
||||
'now run via the external validations in '
|
||||
'tripleo-validations.'))
|
||||
parser.add_argument(
|
||||
'--no-inflight-validations',
|
||||
action='store_true',
|
||||
default=False,
|
||||
dest='no_inflight',
|
||||
help=_('Deactivate in-flight validations during the deploy. '
|
||||
'In-flight validations provide a robust way to ensure '
|
||||
'deployed services are running right after their '
|
||||
'activation. Defaults to False.')
|
||||
)
|
||||
parser.add_argument(
|
||||
'--dry-run',
|
||||
action='store_true',
|
||||
@ -915,9 +925,6 @@ class DeployOvercloud(command.Command):
|
||||
deployment_options['ansible_python_interpreter'] = \
|
||||
parsed_args.deployment_python_interpreter
|
||||
|
||||
disabled_val = parsed_args.disable_validations
|
||||
enable_val = parsed_args.run_validations
|
||||
|
||||
deployment.config_download(
|
||||
self.log, self.clients, stack,
|
||||
parsed_args.templates, parsed_args.overcloud_ssh_user,
|
||||
@ -928,7 +935,7 @@ class DeployOvercloud(command.Command):
|
||||
timeout,
|
||||
verbosity=self.app_args.verbose_level,
|
||||
deployment_options=deployment_options,
|
||||
in_flight_validations=(enable_val or not disabled_val))
|
||||
in_flight_validations=(not parsed_args.no_inflight))
|
||||
except Exception:
|
||||
deployment.set_deployment_status(
|
||||
self.clients, 'failed',
|
||||
|
Loading…
Reference in New Issue
Block a user