From bb7fc0344ed6e15f03a35c822478a898ccb95947 Mon Sep 17 00:00:00 2001 From: ramamani yeleswarapu Date: Tue, 6 Nov 2018 14:24:46 -0800 Subject: [os-stor4nfv] Fix errors in HA deploy Change-Id: I1d744f024068ec412933487ef8234892f6391f77 Signed-off-by: ramamani yeleswarapu (cherry picked from commit 8e827e621ec4c9b9abee2d3a3d56fa52c03dbd90) --- plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml b/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml index 4c4370fd..c0044322 100644 --- a/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml +++ b/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml @@ -83,6 +83,7 @@ register: opensds_driver_exists when: - inventory_hostname in groups['ceph-mon'] + - groups['ceph_adm'][0] in inventory_hostname - name: copy opensds conf remote_user: root @@ -93,6 +94,7 @@ cp -r /tmp/driver /etc/opensds; when: - inventory_hostname in groups['ceph-mon'] + - groups['ceph_adm'][0] in inventory_hostname - name: create ceph pool remote_user: root @@ -100,6 +102,7 @@ ceph osd pool create rbd 24 && ceph osd pool set rbd size 1 when: - inventory_hostname in groups['ceph-mon'] + - groups['ceph_adm'][0] in inventory_hostname - name: ensure osdsdock exists stat: @@ -107,6 +110,7 @@ register: opensds_exists when: - inventory_hostname in groups['ceph-mon'] + - groups['ceph_adm'][0] in inventory_hostname - name: start osdsdock daemon remote_user: root @@ -114,6 +118,7 @@ cd /opt && ./bin/osdsdock -daemon when: - inventory_hostname in groups['ceph-mon'] + - groups['ceph_adm'][0] in inventory_hostname - name: ensure osdsctl exists stat: -- cgit 1.2.3-korg