From 864cc1e9a657c7774287aea6f3ae336942aabcd8 Mon Sep 17 00:00:00 2001 From: Lukas Bezdicka Date: Thu, 14 Jul 2022 18:29:29 +0200 Subject: [PATCH] [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 --- scripts/undercloud-upgrade-ephemeral-heat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/undercloud-upgrade-ephemeral-heat.py b/scripts/undercloud-upgrade-ephemeral-heat.py index 43c40e3fbb..da4941f085 100755 --- a/scripts/undercloud-upgrade-ephemeral-heat.py +++ b/scripts/undercloud-upgrade-ephemeral-heat.py @@ -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)