From 541546a54a8c916b0d50236e581b82696805a943 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 17 Oct 2019 17:05:53 +0200 Subject: [PATCH] common: do not override ceph_release when using custom repo Otherwise it fails like following: ``` TASK [ceph-mds : allow multimds] ************************************************************************************************************************************************** Monday 22 July 2019 16:37:38 +0800 (0:00:03.269) 0:13:25.651 *********** fatal: [rhel7u6clone1]: FAILED! => {"msg": "The conditional check 'ceph_release_num[ceph_release] == ceph_release_num.luminous' failed. The error was: error while evaluating conditional (ceph_release_num[ceph_release] == ceph_release_num.luminous): 'dict object' has no attribute u'dummy'\n\nThe error appears to have been in '/usr/share/ceph-ansible/roles/ceph-mds/tasks/create_mds_filesystems.yml': line 43, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: allow multimds\n ^ here\n"} ``` Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1645379 Signed-off-by: Guillaume Abrioux (cherry picked from commit 4e9504c939a1daddceef3806f7165844952a6618) --- roles/ceph-common/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-common/tasks/main.yml b/roles/ceph-common/tasks/main.yml index 6c33f9b71..2239aad06 100644 --- a/roles/ceph-common/tasks/main.yml +++ b/roles/ceph-common/tasks/main.yml @@ -42,7 +42,7 @@ ceph_release: "{{ ceph_stable_release }}" when: - ceph_origin == 'repository' - - ceph_repository not in ['dev', 'rhcs'] + - ceph_repository not in ['dev', 'rhcs', 'custom'] tags: always - name: include create_rbd_client_dir.yml -- 2.39.5