]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Remove ceph-radosgw.target when switching to containerize daemons
authorKevin Coakley <kcoakley@sdsc.edu>
Mon, 3 Aug 2020 17:03:34 +0000 (10:03 -0700)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Thu, 6 Aug 2020 13:41:23 +0000 (09:41 -0400)
The task "remove old systemd unit file" under "switching from
non-containerized to containerized ceph rgw" only removes
the ceph-radosgw@.service file. The task should also remove
the ceph-radosgw.target file, like the "remove old systemd unit
files" tasks for the mons, mgrs, osds, etc, in order to clean up
all of the unused systemd unit files.

Signed-off-by: Kevin Coakley <kcoakley@sdsc.edu>
(cherry picked from commit d19e6033b227c621b6c794db4f571151e5bbf9c4)

infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml

index 2b5382a281cc07849741117c7a43a459a57a6a50..56802d369def16678505a5f713cc9bc9d4a7a59b 100644 (file)
         enabled: no
       with_items: "{{ rgw_instances }}"
 
-    - name: remove old systemd unit file
+    - name: remove old systemd unit files
       file:
-        path: /usr/lib/systemd/system/ceph-radosgw@.service
+        path: /usr/lib/systemd/system/{{ item }}
         state: absent
+      with_items:
+        - ceph-radosgw@.service
+        - ceph-radosgw.target
 
     - import_role:
         name: ceph-handler