]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rolling_update: Remove ceph aliases
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 15 Mar 2019 14:18:48 +0000 (10:18 -0400)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Wed, 10 Apr 2019 00:02:35 +0000 (00:02 +0000)
ceph aliases have been introduced in stable-3.2 during the ceph
deployment. On master this has been removed but we don't handle
this removal in the upgrade from stable-3.2 to master via the
rolling_update playbook.
Also remove the task from purge-docker-cluster missing from
d9e7835

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 57b4e76d11e0e3bb58c299ae5d37617ea06e2c17)

infrastructure-playbooks/purge-docker-cluster.yml
infrastructure-playbooks/rolling_update.yml

index 2d62f07168748b409e6755102ac03949d7124007..2d9ef70072dfb1336e12d378c16c9e16104cfb4e 100644 (file)
       remove_img
     ignore_errors: true
 
-  - name: remove ceph aliases
-    file:
-      path: /etc/profile.d/ceph-aliases.sh
-      state: absent
-
 - name: check container hosts
 
   hosts:
index 8625927b0a33a6070990c777f2c23ce8984410b0..0ec4ccf201e838a2486c38ece5d2ded0c9a62c83 100644 (file)
   serial: 1
   become: True
   tasks:
+    - name: remove ceph aliases
+      file:
+        path: /etc/profile.d/ceph-aliases.sh
+        state: absent
+      when:
+        - containerized_deployment
+
     - name: set mon_host_count
       set_fact:
         mon_host_count: "{{ groups[mon_group_name] | length }}"