[wallaby-only][ffwd] Provide working dir to provisioned node extraction

To create predictable structure during UC stacks extraction we need to
provide the working dir to the node extraction command.

Change-Id: I4bfdfee942587ef3aa9c003ce8fdf041886ee57a
This commit is contained in:
Lukas Bezdicka 2022-07-14 18:29:29 +02:00 committed by Lukas Bezdicka
parent b94a5f82f8
commit 864cc1e9a6
1 changed files with 2 additions and 2 deletions

View File

@ -328,8 +328,8 @@ def export_provisioned_nodes(heat, stack, stack_dir, cloud):
% (stack, bm_deployment_path))
subprocess.check_call(['openstack', 'overcloud', 'node', 'extract',
'provisioned', '--stack', stack, '--roles-file',
roles_data_file, '--output',
bm_deployment_path, '--yes'], env={'OS_CLOUD': cloud})
roles_data_file, '--output', bm_deployment_path,
'--working-dir', stack_dir, '--yes'], env={'OS_CLOUD': cloud})
os.chmod(bm_deployment_path, 0o600)
finally:
os.remove(temp_file_path)