Fix the ceph-mgr connect to cluster failed
For luminous, the ceph_mgr service provide the dashborad for ceph, and it need connect to cluster, but now it failed to connect ceph cluster due to ceph.client.admin.keyring missing, this ps to fix it. Co-Authored-By: chenqiaomin <chen.qiaomin@99cloud.net> Closes-Bug: #1768462 Change-Id: Idb24661bc5674780db390220ca02e22975490663
This commit is contained in:
parent
51bb42eb97
commit
8cf67e9a87
@ -36,6 +36,17 @@
|
|||||||
- "{{ ceph_files['ceph.monmap'] }}"
|
- "{{ ceph_files['ceph.monmap'] }}"
|
||||||
when: inventory_hostname in groups['ceph-mon']
|
when: inventory_hostname in groups['ceph-mon']
|
||||||
|
|
||||||
|
- name: Pushing Ceph keyrings for Mgrs
|
||||||
|
become: true
|
||||||
|
bslurp:
|
||||||
|
src: "{{ item.content }}"
|
||||||
|
dest: "{{ node_config_directory }}/ceph-mgr/{{ item.filename }}"
|
||||||
|
sha1: "{{ item.sha1 }}"
|
||||||
|
mode: 0600
|
||||||
|
with_items:
|
||||||
|
- "{{ ceph_files['ceph.client.admin.keyring'] }}"
|
||||||
|
when: inventory_hostname in groups['ceph-mgr']
|
||||||
|
|
||||||
- name: Pushing Ceph keyrings for RGWs
|
- name: Pushing Ceph keyrings for RGWs
|
||||||
become: true
|
become: true
|
||||||
bslurp:
|
bslurp:
|
||||||
|
@ -12,6 +12,12 @@
|
|||||||
"dest": "/var/lib/ceph/mgr/ceph-{{ inventory_hostname }}/keyring",
|
"dest": "/var/lib/ceph/mgr/ceph-{{ inventory_hostname }}/keyring",
|
||||||
"owner": "ceph",
|
"owner": "ceph",
|
||||||
"perm": "0600"
|
"perm": "0600"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "{{ container_config_directory }}/ceph.client.admin.keyring",
|
||||||
|
"dest": "/etc/ceph/ceph.client.admin.keyring",
|
||||||
|
"owner": "ceph",
|
||||||
|
"perm": "0600"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user