Skip to content

Commit 6179262

Browse files
committed
cephadm-adopt: ensure /etc/ceph is present on monitoring node
When deploying the monitoring stack on a dedicated node, the directory `/etc/ceph` has never been created. Therefore, the play for adopting the monitoring stack fails because it can't write the minimal config file. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2029697 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 7ece59b) (cherry picked from commit 8a32576)
1 parent 717b305 commit 6179262

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

infrastructure-playbooks/cephadm-adopt.yml

+8
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,14 @@
11501150
path: "/etc/ceph/{{ cluster }}.conf"
11511151
register: ceph_config
11521152

1153+
- name: ensure /etc/ceph is present
1154+
file:
1155+
path: /etc/ceph
1156+
state: directory
1157+
owner: "{{ ceph_uid | int if containerized_deployment | bool else 'ceph' }}"
1158+
group: "{{ ceph_uid | int if containerized_deployment | bool else 'ceph' }}"
1159+
mode: "{{ ceph_directories_mode }}"
1160+
11531161
- name: write a ceph.conf with minimal config
11541162
copy:
11551163
dest: "/etc/ceph/{{ cluster }}.conf"

0 commit comments

Comments
 (0)