]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
upgrade: fix upgrade jewel to luminous for mgr nodes
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 19 Oct 2017 13:07:58 +0000 (15:07 +0200)
committerSébastien Han <seb@redhat.com>
Thu, 19 Oct 2017 18:54:23 +0000 (20:54 +0200)
mgr nodes can't be upgraded from jewel to luminous because ceph-mgr role
is skipped because of the condition `when:
"ceph_release_num[ceph_release] >= ceph_release_num.luminous"`. Indeed,
ceph-mgr package is upgraded in `ceph-mgr` role, therefore,
`ceph_release` is still set to the old version. It means the when can't
be satisfied.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 302e563601cd6820b1ae44fabdfb1506688c7c9b)

infrastructure-playbooks/rolling_update.yml

index 1a767f2ff12ea87bd3e35eeb98e0709dc4514139..5677e45d28755f974826690de6239470092bd136 100644 (file)
 
   roles:
     - ceph-defaults
-    - ceph-config
     - { role: ceph-common, when: not containerized_deployment }
     - { role: ceph-docker-common, when: containerized_deployment }
-    - { role: ceph-mgr, when: "ceph_release_num[ceph_release] >= ceph_release_num.luminous" }
+    - ceph-config
+    - { role: ceph-mgr,
+        when: "(ceph_release_num[ceph_release] >= ceph_release_num.luminous) or
+               (ceph_release_num[ceph_release] < ceph_release_num.luminous and rolling_update)" }
 
   post_tasks:
     - name: start ceph mgr