From 59d33d39887ed1efe5b8833473abcdd2735b0e98 Mon Sep 17 00:00:00 2001 From: hyun-ha Date: Mon, 5 Feb 2018 21:36:42 +0900 Subject: [PATCH] Catch an error when pool creation failed for ceph Ceph mon have a configure about "mon_max_pg_per_osd" and default value is 300. When pgs per osd is exceeded, pool creation will be failed. But kolla-ansible ignoring this, so user may difficult to find a main reason for the failure. We need to catch an error when pool creation is failed. Change-Id: I92493584faad9bc550fdeeb96b827537daafd0b8 Closes-Bug: #1747414 --- ansible/roles/ceph_pools.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/ansible/roles/ceph_pools.yml b/ansible/roles/ceph_pools.yml index 12a8d02af1..49be0a68ca 100644 --- a/ansible/roles/ceph_pools.yml +++ b/ansible/roles/ceph_pools.yml @@ -28,7 +28,6 @@ command: docker exec ceph_mon ceph osd pool create {{ pool_name }} {{ pool_pg_num }} {{ pool_pgp_num }} {{ pool_type }} {{ 'erasure-profile' if pool_type == 'erasure' else '' }} disks delegate_to: "{{ groups['ceph-mon'][0] }}" changed_when: False - failed_when: False run_once: True - name: Creating ceph ruleset for cache @@ -43,7 +42,6 @@ command: docker exec ceph_mon ceph osd pool create {{ pool_name }}-cache 128 128 replicated cache delegate_to: "{{ groups['ceph-mon'][0] }}" changed_when: False - failed_when: False run_once: True when: ceph_enable_cache | bool