From 3b89f1bfb1e8bf6e64093ed317fee02cb95cf7c7 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 11 May 2018 08:05:11 +0200 Subject: [PATCH] rolling_update: get fsid in mgr pre_task MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit {{ fsid }} points to {{ cluster_uuid.stdout }} which is not defined in this part of the rolling_update playbook. Since we need to call {{ fsid }} we must get the fsid and register it to `cluster_uuid`. Signed-off-by: Guillaume Abrioux --- infrastructure-playbooks/rolling_update.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 1f7d2c982..9446e28be 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -192,6 +192,11 @@ become: True pre_tasks: + - name: get current fsid + command: "ceph --cluster {{ cluster }} fsid" + register: cluster_uuid + delegate_to: "{{ groups[mon_group_name][0] }}" + - name: non container | create ceph mgr keyring(s) command: "ceph --cluster {{ cluster }} auth get-or-create mgr.{{ hostvars[item]['ansible_hostname'] }} mon 'allow profile mgr' osd 'allow *' mds 'allow *' -o /etc/ceph/{{ cluster }}.mgr.{{ hostvars[item]['ansible_hostname'] }}.keyring" args: