From f1651cea9baf5eab1a33ac631daa72cd157dbcb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Thu, 11 May 2017 11:55:00 +0200 Subject: [PATCH] mon: do not create mgr key on jewel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The CI on Docker is reporting the following error: STDERR: Error EINVAL: bad entity name This is due to the fact that this auth entity name does not exist on Jewel so we should not create that key when running Jewel containers. Fixes: https://github.com/ceph/ceph-ansible/issues/1514 Signed-off-by: Sébastien Han --- roles/ceph-mon/tasks/docker/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/ceph-mon/tasks/docker/main.yml b/roles/ceph-mon/tasks/docker/main.yml index 2c6658a36..daaf152c4 100644 --- a/roles/ceph-mon/tasks/docker/main.yml +++ b/roles/ceph-mon/tasks/docker/main.yml @@ -125,4 +125,5 @@ - item.stat.exists == true when: - inventory_hostname == groups[mon_group_name]|last - - ceph_release_num.{{ ceph_stable_release }} > ceph_release_num.jewel + - not ceph_docker_image_tag.find('jewel') != -1 + - ceph_docker_image != 'rhceph'