Add --stack-only cli arg
--stack-only can also be used to disable the config-download workflow, and has the same effect as --no-config-download, but with a better name. The deprecation warning is removed as technically it's not deprecated to deploy the Heat stack and not use the config-download workflow. What is deprecated is using the environments/disable-config-download-environment.yaml environment from tripleo-heat-templates, and there is a deprecation warning in that file. Change-Id: I78e9aa9cf4906e7b4e502f781a1ec0d94dfaebde
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
features:
|
features:
|
||||||
- Using --config-download is now the default. A new CLI argument,
|
- Using --config-download is now the default. A new CLI argument,
|
||||||
--no-config-download can be used to disable config-download, although that
|
--no-config-download (or --stack-only) can be used to disable the
|
||||||
method is deprecated.
|
config-download workflow.
|
||||||
deprecations:
|
|
||||||
- Deploying without config-download (--no-config-download) is deprecated.
|
|
||||||
|
@@ -791,12 +791,13 @@ class DeployOvercloud(command.Command):
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--no-config-download',
|
'--no-config-download',
|
||||||
|
'--stack-only',
|
||||||
action='store_false',
|
action='store_false',
|
||||||
default=False,
|
default=False,
|
||||||
dest='config_download',
|
dest='config_download',
|
||||||
help=_('Disable deployment via config-download mechanism. This '
|
help=_('Disable the config-download workflow and only create '
|
||||||
'method is DEPRECATED and the CLI arg and method may be '
|
'the stack and associated OpenStack resources. No '
|
||||||
'removed in the future.')
|
'software configuration will be applied.')
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--output-dir',
|
'--output-dir',
|
||||||
@@ -906,10 +907,6 @@ class DeployOvercloud(command.Command):
|
|||||||
parsed_args.overcloud_ssh_key,
|
parsed_args.overcloud_ssh_key,
|
||||||
parsed_args.output_dir,
|
parsed_args.output_dir,
|
||||||
verbosity=self.app_args.verbose_level)
|
verbosity=self.app_args.verbose_level)
|
||||||
else:
|
|
||||||
self.log.warning("Disabling config-download is DEPRECATED in "
|
|
||||||
"Rocky. The ability to disable config-download "
|
|
||||||
"may be removed in the future.")
|
|
||||||
|
|
||||||
# Force fetching of attributes
|
# Force fetching of attributes
|
||||||
stack.get()
|
stack.get()
|
||||||
|
Reference in New Issue
Block a user