Fixes for snapshots 53/60053/3
authorTim Rozet <trozet@redhat.com>
Fri, 20 Jul 2018 14:34:39 +0000 (10:34 -0400)
committerTim Rozet <trozet@redhat.com>
Sat, 21 Jul 2018 02:46:08 +0000 (22:46 -0400)
commit96a76332a46257ce6af777756c7e5439345327eb
treecf397ea4bdcc94e2e0f4a8b298969aaf909a832d
parent82a9bec67b094f6381acb035a9efeffe47b011ab
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 <trozet@redhat.com>
apex/builders/overcloud_builder.py
apex/tests/test_apex_overcloud_builder.py
lib/ansible/playbooks/post_deploy_overcloud.yml