path: root/apex/tests
diff options
authorTim Rozet <>2018-07-20 10:34:39 -0400
committerTim Rozet <>2018-07-20 22:46:08 -0400
commit96a76332a46257ce6af777756c7e5439345327eb (patch)
treecf397ea4bdcc94e2e0f4a8b298969aaf909a832d /apex/tests
parent82a9bec67b094f6381acb035a9efeffe47b011ab (diff)
Fixes for snapshots
With deploying snapshots with a new ODL, we currently bring down the docker container and bring up the tar.gz distro of ODL on the Overcloud host itself (not rebuilding/using container). Therefore we need java installed so that ODL can run on the host. In the future this may change, but it works well and keeps things simple for now. Additionally, there was a change upstream to make the opendaylight container docker restart policy "unless-stopped" which means it will no longer restart automatically when docker is stopped/started. Therefore on first snapshot bring up (without the previously mentioned ODL reinstallation) the container does not start, and snapshot deployment fails. This patch includes a change to the restart policy to always restart it. Change-Id: Icc712ba147e578a28e371313154ae3190676f0dc Signed-off-by: Tim Rozet <>
Diffstat (limited to 'apex/tests')
1 files changed, 2 insertions, 0 deletions
diff --git a/apex/tests/ b/apex/tests/
index 46b5f87..8bed3d7 100644
--- a/apex/tests/
+++ b/apex/tests/
@@ -43,6 +43,7 @@ class TestOvercloudBuilder(unittest.TestCase):
{con.VIRT_RUN_CMD: 'rm -rf /etc/puppet/modules/opendaylight'},
{con.VIRT_RUN_CMD: "cd /etc/puppet/modules/ && tar xvf "
+ {con.VIRT_INSTALL: "java-1.8.0-openjdk"},
{con.VIRT_INSTALL: 'opendaylight'}
oc_builder.inject_opendaylight(con.DEFAULT_ODL_VERSION, 'dummy.qcow2',
@@ -65,6 +66,7 @@ class TestOvercloudBuilder(unittest.TestCase):
{con.VIRT_RUN_CMD: 'rm -rf /etc/puppet/modules/opendaylight'},
{con.VIRT_RUN_CMD: "cd /etc/puppet/modules/ && tar xvf "
+ {con.VIRT_INSTALL: "java-1.8.0-openjdk"},
oc_builder.inject_opendaylight('oxygen', 'dummy.qcow2',
'/dummytmp/', uc_ip='',