Skip to content

Commit

Permalink
Catch an error when pool creation failed for ceph
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hyun-ha committed Feb 5, 2018
1 parent 70a5099 commit 59d33d3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ansible/roles/ceph_pools.yml
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 59d33d3

Please sign in to comment.