Merge "baremetal provision expose concurrency and timeout" into stable/train

This commit is contained in:
Zuul 2020-03-31 22:43:31 +00:00 committed by Gerrit Code Review
commit fbe0200af0
2 changed files with 14 additions and 2 deletions

View File

@ -1352,7 +1352,9 @@ class TestProvisionNode(fakes.TestOvercloudNode):
{'name': 'Controller'}],
'plan': 'overcloud',
'ssh_keys': ['I am a key'],
'ssh_user_name': 'heat-admin'}
'ssh_user_name': 'heat-admin',
'concurrency': 20,
'timeout': 3600}
)

View File

@ -620,6 +620,14 @@ class ProvisionNode(command.Command):
help=_('Key path for ssh access to'
'overcloud nodes. When undefined the key'
'will be autodetected.'))
parser.add_argument('--concurrency', type=int,
default=20,
help=_('Maximum number of nodes to provision at '
'once. (default=20)'))
parser.add_argument('--timeout', type=int,
default=3600,
help=_('Number of seconds to wait for the node '
'provision to complete. (default=3600)'))
return parser
def take_action(self, parsed_args):
@ -637,7 +645,9 @@ class ProvisionNode(command.Command):
plan=parsed_args.stack,
roles=roles,
ssh_keys=[ssh_key],
ssh_user_name=parsed_args.overcloud_ssh_user
ssh_user_name=parsed_args.overcloud_ssh_user,
concurrency=parsed_args.concurrency,
timeout=parsed_args.timeout
)
with open(parsed_args.output, 'w') as fp: