Merge "baremetal provision expose concurrency and timeout" into stable/train
This commit is contained in:
commit
fbe0200af0
|
@ -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}
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue