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
(cherry picked from commit 59d33d3988
)
This commit is contained in:
parent
f4cf0d4dc0
commit
b16075bb9a
|
@ -28,7 +28,6 @@
|
|||
command: docker exec ceph_mon ceph osd pool create {{ pool_name }} 128 128 {{ 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue