Option to disable Node, Net and VIP provisioning
Add an option '--skip-nodes-and-networks', when this is set the _provision_networks, _provision_virtual_ips and _provision_baremetal steps will be skipped. Change-Id: I2fa073863f2d292575ee1dbdc0da271434f219f6
This commit is contained in:
parent
e8dae35edd
commit
952eb85a55
|
@ -288,12 +288,13 @@ class DeployOvercloud(command.Command):
|
||||||
new_tht_root,
|
new_tht_root,
|
||||||
constants.DEPLOYED_SERVER_ENVIRONMENT))
|
constants.DEPLOYED_SERVER_ENVIRONMENT))
|
||||||
|
|
||||||
created_env_files.extend(
|
if not parsed_args.skip_nodes_and_networks:
|
||||||
self._provision_networks(parsed_args, new_tht_root))
|
created_env_files.extend(
|
||||||
created_env_files.extend(
|
self._provision_networks(parsed_args, new_tht_root))
|
||||||
self._provision_virtual_ips(parsed_args, new_tht_root))
|
created_env_files.extend(
|
||||||
created_env_files.extend(
|
self._provision_virtual_ips(parsed_args, new_tht_root))
|
||||||
self._provision_baremetal(parsed_args, new_tht_root))
|
created_env_files.extend(
|
||||||
|
self._provision_baremetal(parsed_args, new_tht_root))
|
||||||
|
|
||||||
if parsed_args.environment_directories:
|
if parsed_args.environment_directories:
|
||||||
created_env_files.extend(utils.load_environment_directories(
|
created_env_files.extend(utils.load_environment_directories(
|
||||||
|
@ -980,6 +981,16 @@ class DeployOvercloud(command.Command):
|
||||||
help=_('When --heat-type is pod or container, assume '
|
help=_('When --heat-type is pod or container, assume '
|
||||||
'the container image has already been pulled ')
|
'the container image has already been pulled ')
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
'--skip-nodes-and-networks',
|
||||||
|
action='store_true',
|
||||||
|
default=False,
|
||||||
|
help=_('When this is set no Baremetal Nodes, Networks nor Virtual '
|
||||||
|
'IPs will be provisioned. The resources are assumed to '
|
||||||
|
'already be provisioned. The environment files including '
|
||||||
|
'the necessary input for the stack create must be provided '
|
||||||
|
'by the user.')
|
||||||
|
)
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
def take_action(self, parsed_args):
|
def take_action(self, parsed_args):
|
||||||
|
|
Loading…
Reference in New Issue