diff options
author | Tim Rozet <trozet@redhat.com> | 2018-07-20 10:34:39 -0400 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2018-07-20 22:46:08 -0400 |
commit | 96a76332a46257ce6af777756c7e5439345327eb (patch) | |
tree | cf397ea4bdcc94e2e0f4a8b298969aaf909a832d /lib/ansible/playbooks | |
parent | 82a9bec67b094f6381acb035a9efeffe47b011ab (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 <trozet@redhat.com>
Diffstat (limited to 'lib/ansible/playbooks')
-rw-r--r-- | lib/ansible/playbooks/post_deploy_overcloud.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ansible/playbooks/post_deploy_overcloud.yml b/lib/ansible/playbooks/post_deploy_overcloud.yml index af743b29..212d2cfa 100644 --- a/lib/ansible/playbooks/post_deploy_overcloud.yml +++ b/lib/ansible/playbooks/post_deploy_overcloud.yml @@ -69,3 +69,9 @@ when: - "'compute' in ansible_hostname" - os_version == 'pike' + - name: Update ODL container restart policy to always + shell: "docker update --restart=always opendaylight_api" + become: yes + when: + - sdn == 'opendaylight' + - "'controller' in ansible_hostname" |