summaryrefslogtreecommitdiffstats
path: root/lib/ansible
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2018-04-06 13:44:27 -0400
committerTim Rozet <trozet@redhat.com>2018-04-09 13:43:13 -0400
commitfc3f52862e181967e861eb8bce4604ac47c176ac (patch)
treefe7bfab84394eec0136d6b250ebf704dd132c99e /lib/ansible
parentc8f07fda6445b9b3b1fcb9d97f05cd40fffe8daf (diff)
Fix functional issues after nosdn deployment
After deploying with nosdn, it looks like there is some out of state issue between the services. First guess looks like something is going on with the services and timing of registering to each other through rabbit. Simply restarting the services seems to sync them back up correctly. Change-Id: I417911067c841725ee12eb9354e5759054724e01 Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'lib/ansible')
-rw-r--r--lib/ansible/playbooks/post_deploy_overcloud.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/ansible/playbooks/post_deploy_overcloud.yml b/lib/ansible/playbooks/post_deploy_overcloud.yml
index af1c648a..13623f26 100644
--- a/lib/ansible/playbooks/post_deploy_overcloud.yml
+++ b/lib/ansible/playbooks/post_deploy_overcloud.yml
@@ -51,3 +51,20 @@
owner: root
group: tacker
become: yes
+ - name: Restart Controller Neutron/Nova Services (Pike Workaround)
+ shell: "systemctl restart {{ item }}"
+ become: yes
+ when:
+ - "'controller' in ansible_hostname"
+ - os_version == 'pike'
+ with_items:
+ - neutron-server
+ - openstack-nova-api
+ - openstack-nova-scheduler
+ - openstack-nova-conductor
+ - name: Restart Compute Nova Compute (Pike Workaround)
+ shell: "systemctl restart openstack-nova-compute"
+ become: yes
+ when:
+ - "'compute' in ansible_hostname"
+ - os_version == 'pike'