Apex: Fixes to allow ODL snapshot update to work 61/59061/1
authorTim Rozet <trozet@redhat.com>
Tue, 26 Jun 2018 19:17:12 +0000 (15:17 -0400)
committerTim Rozet <trozet@redhat.com>
Tue, 26 Jun 2018 19:17:12 +0000 (15:17 -0400)
Change-Id: I2e641434051e615cf04922a7349c7a7f1891caea
Signed-off-by: Tim Rozet <trozet@redhat.com>
jjb/3rd_party_ci/install-netvirt.sh
jjb/apex/apex-snapshot-deploy.sh

index 0dcb7bf..07bbe77 100755 (executable)
@@ -26,7 +26,7 @@ fi
 # but we really should check the cache here, and not use a single cache folder
 # for when we support multiple jobs on a single slave
 pushd sdnvpn/odl-pipeline/lib > /dev/null
-git fetch https://gerrit.opnfv.org/gerrit/sdnvpn refs/changes/17/59017/3 && git checkout FETCH_HEAD
+git fetch https://gerrit.opnfv.org/gerrit/sdnvpn refs/changes/17/59017/5 && git checkout FETCH_HEAD
 ./odl_reinstaller.sh --pod-config ${SNAP_CACHE}/node.yaml \
   --odl-artifact /tmp/${NETVIRT_ARTIFACT} --ssh-key-file ${SNAP_CACHE}/id_rsa
 popd > /dev/null
index 1810a00..0760626 100644 (file)
@@ -133,6 +133,10 @@ for node_def in ${virsh_vm_defs}; do
   sudo virsh define ${node_def}
   node=$(echo ${node_def} | awk -F '.' '{print $1}')
   sudo cp -f ${node}.qcow2 /var/lib/libvirt/images/
+  # FIXME (trozet) install java on each disk image as required to upgrade ODL
+  # should be added to Apex as part of the deployment. Remove this after that
+  # is complete
+  sudo LIBGUESTFS_BACKEND=direct virt-customize --install java-1.8.0-openjdk -a /var/lib/libvirt/images/${node}.qcow2
   sudo virsh start ${node}
   echo "Node: ${node} started"
 done