summaryrefslogtreecommitdiffstats
path: root/apex/deploy.py
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2018-12-07 16:09:50 -0500
committerTim Rozet <trozet@redhat.com>2018-12-07 17:13:11 -0500
commitf357aac22a1df2f10cca635c522e2397b2840f62 (patch)
treee8fd8136c6a59be20ad936e74d0a8bc3489c9226 /apex/deploy.py
parent19f668ebd5f8d313f1604dc45675a665a111ed7f (diff)
Upgrade OVS in undercloud
The OVS in the frozen undercloud disk image for Gambia is no longer working (perhaps due to kernel upgrade or package changes during deployment). This patch builds OVS the same way as is done for the SFC scenario in the undercloud disk image. JIRA: APEX-655 Change-Id: I6fa3e009a25806e299c7be88d6d3ee8db4c2648b Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'apex/deploy.py')
-rw-r--r--apex/deploy.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/apex/deploy.py b/apex/deploy.py
index bc35e91f..64374a9a 100644
--- a/apex/deploy.py
+++ b/apex/deploy.py
@@ -394,6 +394,14 @@ def main():
# prep undercloud with required packages
uc_builder.add_upstream_packages(uc_image)
uc_builder.inject_calipso_installer(APEX_TEMP_DIR, uc_image)
+ # upgrade OVS in undercloud
+ shutil.copyfile(os.path.join(args.deploy_dir, 'build_ovs_nsh.sh'),
+ os.path.join(APEX_TEMP_DIR, 'build_ovs_nsh.sh'))
+ virt_utils.virt_customize(
+ [{constants.VIRT_RUN_CMD: 'yum -y upgrade kernel'}],
+ uc_image
+ )
+ oc_builder.inject_ovs_nsh(uc_image, APEX_TEMP_DIR)
# add patches from upstream to undercloud and overcloud
logging.info('Adding patches to undercloud')
patches = deployment.determine_patches()
@@ -435,9 +443,6 @@ def main():
else:
net_data = False
- shutil.copyfile(os.path.join(args.deploy_dir, 'build_ovs_nsh.sh'),
- os.path.join(APEX_TEMP_DIR, 'build_ovs_nsh.sh'))
-
# TODO(trozet): Either fix opnfv env or default to use upstream env
if args.env_file == 'opnfv-environment.yaml':
# Override the env_file if it is defaulted to opnfv