From 77c5115ad2d6eb6fa4d9d8f8cc899265b95df168 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Fri, 25 Sep 2020 20:58:30 -0400 Subject: [PATCH] ceph-iscsi: create pool once from monitor af9f6684 introduced a regression on the ceph iscsi pool creation because it was delegated to the first monitor node before that change. This patch restores the initial worflow. When the iscsi node doesn't have the admin keyring then the pool creation fails. This commit also ensures that the pool creation is only executed once when having multiple iscsi nodes. Signed-off-by: Dimitri Savineau (cherry picked from commit 501b8e0fd303599ca886fa180cf4a8adfc20b5ed) --- roles/ceph-iscsi-gw/tasks/common.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/ceph-iscsi-gw/tasks/common.yml b/roles/ceph-iscsi-gw/tasks/common.yml index becd37638..85d375ed7 100644 --- a/roles/ceph-iscsi-gw/tasks/common.yml +++ b/roles/ceph-iscsi-gw/tasks/common.yml @@ -59,6 +59,8 @@ pg_num: "{{ osd_pool_default_pg_num }}" size: "{{ iscsi_pool_size | default(osd_pool_default_size) }}" application: "rbd" + run_once: true + delegate_to: "{{ groups[mon_group_name][0] }}" environment: CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment else None }}" CEPH_CONTAINER_BINARY: "{{ container_binary }}" \ No newline at end of file -- 2.39.5