Fix keepalive restart issue 51/65551/1
authorHarry Huang <huangxiangyu5@huawei.com>
Tue, 4 Dec 2018 01:58:35 +0000 (09:58 +0800)
committerHarry Huang <huangxiangyu5@huawei.com>
Tue, 4 Dec 2018 01:59:03 +0000 (09:59 +0800)
Change-Id: I4d690b82d2c8c75e2896a7f3575fe3591f719b44
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
deploy/adapters/ansible/roles/config-osa/tasks/main.yml

index 0503400..e679492 100755 (executable)
     dest: /etc/ansible/roles/os_nova/templates/nova.conf.j2
     regexp: '^vif_plugging_timeout'
     line: 'vif_plugging_timeout = 30'
+
+- name: fix keepalived
+  lineinfile:
+    dest: /opt/openstack-ansible/inventory/group_vars/haproxy/keepalived.yml
+    regexp: 'check_script: "/bin/kill -0 `cat /var/run/haproxy.pid`"'
+    line: '    check_script: "/bin/kill -0 `cat /var/run/haproxy.pid` || true"'