]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge/update: remove backward compatibility legacy
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 26 Nov 2019 13:43:07 +0000 (14:43 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 27 Nov 2019 15:27:43 +0000 (10:27 -0500)
This was introduced in 3.1 and marked as deprecation
We can definitely drop it in stable-4.0

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/purge-cluster.yml
infrastructure-playbooks/purge-docker-cluster.yml
infrastructure-playbooks/purge-iscsi-gateways.yml
infrastructure-playbooks/rolling_update.yml

index c5333ed86e418f1e49117249efcbb12cf4ff0bce..bd54034f5ee4c442b830a685bab7d599c013a7af 100644 (file)
     - grafana-server
     - clients
     - iscsigws
-    - iscsi-gws # for backward compatibility only!
 
   become: true
 
index 4b0406ea28dd332caa81b1329327b7c1fc1ac01b..f9f41a5702e4d2ba9d386d5e552997862c9490a6 100644 (file)
 
   tasks:
 
-# For backward compatibility
-  - name: disable ceph rgw service (old unit name, for backward compatibility)
-    service:
-      name: "ceph-rgw@{{ ansible_hostname }}"
-      state: stopped
-      enabled: no
-    ignore_errors: true
-
-  - name: disable ceph rgw service (new unit name)
+  - name: disable ceph rgw service
     service:
       name: "ceph-radosgw@*"
       state: stopped
 
   - name: remove ceph rgw service
     file:
-      path: "{{ item }}"
+      path: /etc/systemd/system/ceph-radosgw@.service
       state: absent
-    with_items:
-# For backward compatibility
-      - /etc/systemd/system/ceph-rgw@.service
-      - /etc/systemd/system/ceph-radosgw@.service
 
   - name: remove ceph rgw image
     docker_image:
     - "{{ mgr_group_name|default('mgrs') }}"
     - grafana-server
     - iscsigws
-    - iscsi-gws # for backward compatibility only!
     - clients
 
   gather_facts: false
index 4f4ce04cdace21a446b217285d9be09dd8a515ad..154736041451a7b8730bb0a469da04bd55d5127a 100644 (file)
@@ -22,7 +22,6 @@
 - name: stopping the gateways
   hosts:
     - iscsigws
-    - iscsi-gws # for backward compatibility only!
   become: yes
   vars:
     - igw_purge_type: "{{hostvars['localhost']['igw_purge_type']}}"
@@ -41,7 +40,6 @@
 - name: removing the gateway configuration
   hosts:
     - iscsigws
-    - iscsi-gws # for backward compatibility only!
   become: yes
   vars:
     - igw_purge_type: "{{ hostvars['localhost']['igw_purge_type'] }}"
index 7930aa3ce6a12d68eb96e4b4a0e5962967a29327..645c0405257b80b4134ef43a10f3a9a90b96c6f6 100644 (file)
     upgrade_ceph_packages: True
   hosts:
     - "{{ iscsi_gw_group_name|default('iscsigws') }}"
-    - iscsi-gws # for backward compatibility only!
   serial: 1
   become: True
   tasks: