]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
upgrade: fix upgrade jewel to luminous for nfs nodes
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 19 Oct 2017 16:30:08 +0000 (18:30 +0200)
committerSébastien Han <seb@redhat.com>
Thu, 19 Oct 2017 18:54:23 +0000 (20:54 +0200)
nfs nodes can't be upgraded from jewel to luminous because ceph-nfs role
is skipped because of the condition `when:
"ceph_release_num[ceph_release] >= ceph_release_num.luminous"`. Indeed,
package is upgraded in `ceph-nfs` 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>
infrastructure-playbooks/rolling_update.yml

index 5677e45d28755f974826690de6239470092bd136..1d6ccabe747b1b09ae5652a2c647d9498fc8d288 100644 (file)
 
   roles:
     - ceph-defaults
-    - ceph-config
     - { role: ceph-common, when: not containerized_deployment }
     - { role: ceph-docker-common, when: containerized_deployment }
-    - ceph-nfs
+    - ceph-config
+    - { role: ceph-nfs,
+        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 nfs gateway