From 982326373b9474231015639eac8fc52a3b0878a3 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 19 Oct 2017 18:30:08 +0200 Subject: [PATCH] upgrade: fix upgrade jewel to luminous for nfs nodes 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 --- infrastructure-playbooks/rolling_update.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 5677e45d2..1d6ccabe7 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -520,10 +520,12 @@ 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