]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph ansible 3.1 igw: fix rbd-target-gw startup v3.1.0rc12
authorMike Christie <mchristi@redhat.com>
Thu, 26 Jul 2018 18:30:36 +0000 (13:30 -0500)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Fri, 27 Jul 2018 11:38:46 +0000 (11:38 +0000)
The problem is rbd-target-gw needs the rbd pool to be created, keyring
to be copied over, and the iscsi-gateway.cfg to be setup before starting
the rbd-target-gw service.

In the master branch this is fixed by this commit:

    commit 91bf53ee932a6748c464bea762f8fb6f07f11347
    Author: Sébastien Han <seb@redhat.com>
    Date:   Fri Mar 23 11:24:56 2018 +0800

        ceph-iscsi: support for containerize deployment

where the needed setup tasks are done in common.yml which is done
before prerequisites.yml.

To avoid porting all those changes to 3.1 this patch just moves the
rbd-target-gw startup to configure_iscsi.yml after everything has
been setup.

This fixes red hat bz:

https://bugzilla.redhat.com/show_bug.cgi?id=1601325

Signed-off-by: Mike Christie <mchristi@redhat.com>
roles/ceph-iscsi-gw/tasks/configure_iscsi.yml
roles/ceph-iscsi-gw/tasks/prerequisites.yml

index 22ec4d396d7a94b017a831a6c830c511c34d1193..a5a6004486fc43d585220f4c40c1ad24ee047ced 100644 (file)
   when: "'rbd' not in (rbd_pool_exists.stdout | from_json)"
   delegate_to: "{{ groups[mon_group_name][0] }}"
 
+- name: enable the rbd-target-gw service and make sure it is running
+  service:
+    name: rbd-target-gw
+    enabled: yes
+    state: started
+
 - name: igw_gateway (tgt) | configure iscsi target (gateway)
   igw_gateway:
     mode: "target"
index ba9ae435e3ee2e2a181a561b163fdf5029d96cbe..16ea03633b2986a1545b28b1c94b7f33e048cc37 100644 (file)
     - target.stat.exists
     - target.stat.islnk == False
 
-- name: enable the rbd-target-gw service and make sure it is running
-  service:
-    name: rbd-target-gw
-    enabled: yes
-    state: started
-
 - name: copy admin key
   copy:
     src: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.client.admin.keyring"