Merge "Remove --no-workflow option"
This commit is contained in:
commit
cd8a278cdb
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
upgrades:
|
||||||
|
- |
|
||||||
|
The ``--no-workflow`` option has been removed from the following command.
|
||||||
|
|
||||||
|
- ``openstack overcloud external update run``
|
||||||
|
- ``openstack overcloud external upgrade run``
|
||||||
|
- ``openstack overcloud update run``
|
@ -39,12 +39,9 @@ class Command(command.Command):
|
|||||||
raise
|
raise
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_ansible_key_and_dir(no_workflow, stack, orchestration):
|
def get_ansible_key_and_dir(stack, orchestration):
|
||||||
"""Return the ansible directory and key path.
|
"""Return the ansible directory and key path.
|
||||||
|
|
||||||
:param no_workflow: Enable or disable the mistral workflow code path.
|
|
||||||
:type no_workflow: Boolean
|
|
||||||
|
|
||||||
:oaram stack: Name of a given stack to run against.
|
:oaram stack: Name of a given stack to run against.
|
||||||
:type stack: String
|
:type stack: String
|
||||||
|
|
||||||
@ -53,22 +50,15 @@ class Command(command.Command):
|
|||||||
|
|
||||||
:returns: Tuple
|
:returns: Tuple
|
||||||
"""
|
"""
|
||||||
|
key = utils.get_key(stack=stack)
|
||||||
if no_workflow:
|
stack_config = config.Config(orchestration)
|
||||||
key = utils.get_key(stack=stack)
|
with utils.TempDirs(chdir=False) as tmp:
|
||||||
stack_config = config.Config(orchestration)
|
stack_config.write_config(
|
||||||
with utils.TempDirs(chdir=False) as tmp:
|
stack_config.fetch_config(stack),
|
||||||
stack_config.write_config(
|
stack,
|
||||||
stack_config.fetch_config(stack),
|
tmp
|
||||||
stack,
|
)
|
||||||
tmp
|
return key, tmp
|
||||||
)
|
|
||||||
return key, tmp
|
|
||||||
else:
|
|
||||||
# Assumes execution will take place from within a mistral
|
|
||||||
# container.
|
|
||||||
key = '.ssh/tripleo-admin-rsa'
|
|
||||||
return key, None
|
|
||||||
|
|
||||||
def get_key_pair(self, parsed_args):
|
def get_key_pair(self, parsed_args):
|
||||||
"""Autodetect or return a user defined key file.
|
"""Autodetect or return a user defined key file.
|
||||||
|
@ -88,11 +88,6 @@ class ExternalUpdateRun(command.Command):
|
|||||||
help=('Set additional variables as key=value or '
|
help=('Set additional variables as key=value or '
|
||||||
'yaml/json'),
|
'yaml/json'),
|
||||||
default=[])
|
default=[])
|
||||||
parser.add_argument('--no-workflow', dest='no_workflow',
|
|
||||||
action='store_true',
|
|
||||||
default=True,
|
|
||||||
help=_('This option no longer has any effect.')
|
|
||||||
)
|
|
||||||
parser.add_argument('-y', '--yes', default=False,
|
parser.add_argument('-y', '--yes', default=False,
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help=_("Use -y or --yes to skip the confirmation "
|
help=_("Use -y or --yes to skip the confirmation "
|
||||||
@ -137,7 +132,6 @@ class ExternalUpdateRun(command.Command):
|
|||||||
|
|
||||||
if parsed_args.refresh:
|
if parsed_args.refresh:
|
||||||
_, ansible_dir = self.get_ansible_key_and_dir(
|
_, ansible_dir = self.get_ansible_key_and_dir(
|
||||||
no_workflow=True,
|
|
||||||
stack=parsed_args.stack,
|
stack=parsed_args.stack,
|
||||||
orchestration=self.app.client_manager.orchestration
|
orchestration=self.app.client_manager.orchestration
|
||||||
)
|
)
|
||||||
|
@ -85,11 +85,6 @@ class ExternalUpgradeRun(command.Command):
|
|||||||
help=('Set additional variables as key=value or '
|
help=('Set additional variables as key=value or '
|
||||||
'yaml/json'),
|
'yaml/json'),
|
||||||
default=[])
|
default=[])
|
||||||
parser.add_argument('--no-workflow', dest='no_workflow',
|
|
||||||
action='store_true',
|
|
||||||
default=True,
|
|
||||||
help=_('This option no longer has any effect.')
|
|
||||||
)
|
|
||||||
parser.add_argument('-y', '--yes', default=False,
|
parser.add_argument('-y', '--yes', default=False,
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help=_("Use -y or --yes to skip the confirmation "
|
help=_("Use -y or --yes to skip the confirmation "
|
||||||
@ -129,7 +124,6 @@ class ExternalUpgradeRun(command.Command):
|
|||||||
raise OvercloudUpgradeNotConfirmed(constants.UPGRADE_NO)
|
raise OvercloudUpgradeNotConfirmed(constants.UPGRADE_NO)
|
||||||
|
|
||||||
_, ansible_dir = self.get_ansible_key_and_dir(
|
_, ansible_dir = self.get_ansible_key_and_dir(
|
||||||
no_workflow=True,
|
|
||||||
stack=parsed_args.stack,
|
stack=parsed_args.stack,
|
||||||
orchestration=self.app.client_manager.orchestration
|
orchestration=self.app.client_manager.orchestration
|
||||||
)
|
)
|
||||||
|
@ -130,11 +130,6 @@ class UpdateRun(command.Command):
|
|||||||
default=utils.env('OVERCLOUD_STACK_NAME',
|
default=utils.env('OVERCLOUD_STACK_NAME',
|
||||||
default='overcloud')
|
default='overcloud')
|
||||||
)
|
)
|
||||||
parser.add_argument('--no-workflow', dest='no_workflow',
|
|
||||||
action='store_true',
|
|
||||||
default=True,
|
|
||||||
help=_('This option no longer has any effect.')
|
|
||||||
)
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--tags',
|
'--tags',
|
||||||
action='store',
|
action='store',
|
||||||
|
@ -187,11 +187,6 @@ class UpgradeRun(command.Command):
|
|||||||
default=utils.env('OVERCLOUD_STACK_NAME',
|
default=utils.env('OVERCLOUD_STACK_NAME',
|
||||||
default='overcloud')
|
default='overcloud')
|
||||||
)
|
)
|
||||||
parser.add_argument('--no-workflow', dest='no_workflow',
|
|
||||||
action='store_true',
|
|
||||||
default=True,
|
|
||||||
help=_('This option no longer has any effect.')
|
|
||||||
)
|
|
||||||
parser.add_argument('-y', '--yes', default=False,
|
parser.add_argument('-y', '--yes', default=False,
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help=_("Use -y or --yes to skip the confirmation "
|
help=_("Use -y or --yes to skip the confirmation "
|
||||||
@ -228,7 +223,6 @@ class UpgradeRun(command.Command):
|
|||||||
playbook = parsed_args.playbook
|
playbook = parsed_args.playbook
|
||||||
|
|
||||||
_, ansible_dir = self.get_ansible_key_and_dir(
|
_, ansible_dir = self.get_ansible_key_and_dir(
|
||||||
no_workflow=parsed_args.no_workflow,
|
|
||||||
stack=parsed_args.stack,
|
stack=parsed_args.stack,
|
||||||
orchestration=self.app.client_manager.orchestration
|
orchestration=self.app.client_manager.orchestration
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user