]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rgw: disable legacy rgw service unit
authorSébastien Han <seb@redhat.com>
Thu, 21 Dec 2017 09:19:22 +0000 (10:19 +0100)
committerSébastien Han <seb@redhat.com>
Thu, 21 Dec 2017 12:49:23 +0000 (13:49 +0100)
When upgrading from OSP11 to OSP12 container, ceph-ansible attempts to
disable the RGW service provided by the overcloud image. The task
attempts to stop/disable ceph-rgw@{{ ansible-hostname }} and
ceph-radosgw@{{ ansible-hostname }}.service. The actual service name is
ceph-radosgw@radosgw.$name

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1525209
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit ad54e19262f3d523ad57ee39e64d6927b0c21dea)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-rgw/tasks/docker/start_docker_rgw.yml

index d81a6c669f15fc3d9fbcce6b89444b45127e2770..a9968c523faaaef5c6e85dfc043ceaccc8ec3715 100644 (file)
@@ -9,7 +9,7 @@
     mode: "0644"
 
 # For backward compatibility
-- name: disable old systemd unit ('ceph-rgw@') if present
+- name: disable old systemd unit ('ceph-rgw@'|'ceph-radosgw@radosgw.'|'ceph-radosgw@') if present
   systemd:
     name: "{{ item }}"
     state: stopped
@@ -18,6 +18,7 @@
   with_items:
     - "ceph-rgw@{{ ansible_hostname }}"
     - "ceph-radosgw@{{ ansible_hostname }}.service"
+    - "ceph-radosgw@radosgw.{{ ansible_hostname }}.service"
   ignore_errors: true
 
 - name: systemd start rgw container