diff options
author | Tim Rozet <trozet@redhat.com> | 2018-11-27 21:39:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-11-27 21:39:13 +0000 |
commit | b3d5f63b8d0f4b205baefd2170ec3c6790c5fa70 (patch) | |
tree | 2a063e7905bdb2eec8f4f469746565a57e06fa98 | |
parent | b3c31c56f1d3b79bfdb87766eaf14433efb206e9 (diff) | |
parent | 493c989cfc009d823af8db3e5f58954418bf4354 (diff) |
Merge "Use undercloud.qcow2 for UC in aarch64"
-rw-r--r-- | apex/deploy.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/apex/deploy.py b/apex/deploy.py index 670fb6bd..bb011f92 100644 --- a/apex/deploy.py +++ b/apex/deploy.py @@ -395,7 +395,10 @@ def main(): args.image_dir = os.path.join(args.image_dir, os_version) upstream_url = constants.UPSTREAM_RDO.replace( constants.DEFAULT_OS_VERSION, os_version) + upstream_targets = ['overcloud-full.tar', 'ironic-python-agent.tar'] + if platform.machine() == 'aarch64': + upstream_targets.append('undercloud.qcow2') utils.fetch_upstream_and_unpack(args.image_dir, upstream_url, upstream_targets, fetch=not args.no_fetch) @@ -406,7 +409,10 @@ def main(): for tmp_file in UC_DISK_FILES: shutil.copyfile(os.path.join(args.image_dir, tmp_file), os.path.join(APEX_TEMP_DIR, tmp_file)) - sdn_image = os.path.join(args.image_dir, 'overcloud-full.qcow2') + if platform.machine() == 'aarch64': + sdn_image = os.path.join(args.image_dir, 'undercloud.qcow2') + else: + sdn_image = os.path.join(args.image_dir, 'overcloud-full.qcow2') # copy undercloud so we don't taint upstream fetch uc_image = os.path.join(args.image_dir, 'undercloud_mod.qcow2') uc_fetch_img = sdn_image @@ -486,8 +492,12 @@ def main(): opnfv_env, net_env_target, APEX_TEMP_DIR) if not args.virtual: oc_deploy.LOOP_DEVICE_SIZE = "50G" + if platform.machine() == 'aarch64': + oc_image = os.path.join(args.image_dir, 'overcloud-full.qcow2') + else: + oc_image = sdn_image patched_containers = oc_deploy.prep_image( - deploy_settings, net_settings, sdn_image, APEX_TEMP_DIR, + deploy_settings, net_settings, oc_image, APEX_TEMP_DIR, root_pw=root_pw, docker_tag=tag, patches=patches['overcloud']) oc_deploy.create_deploy_cmd(deploy_settings, net_settings, inventory, |