repair ceph_nfs container start failed
when enable ceph_nfs,it deploy failed, because no ganesha config file, and the 'ganesha.nfs' command need root privilege to run. i will modify ceph_nfs dockerfile,please review. thanks https://review.openstack.org/#/c/630510/ Change-Id: I347107bc33733061ad043bffe38ecc1d16770afc Closes-Bug: #1811581
This commit is contained in:
parent
20c58a9c53
commit
d35f9a4b70
@ -55,3 +55,16 @@
|
|||||||
- "ceph-mgr"
|
- "ceph-mgr"
|
||||||
- "ceph-mds"
|
- "ceph-mds"
|
||||||
- "ceph-nfs"
|
- "ceph-nfs"
|
||||||
|
|
||||||
|
- name: Copying over ganesha.conf for ceph-nfs
|
||||||
|
template:
|
||||||
|
src: "{{ item }}"
|
||||||
|
dest: "{{ node_config_directory }}/ceph-nfs/ganesha.conf"
|
||||||
|
mode: 0600
|
||||||
|
become: true
|
||||||
|
when:
|
||||||
|
- inventory_hostname in groups['ceph-nfs']
|
||||||
|
with_first_found:
|
||||||
|
- "{{ node_custom_config }}/ganesha.conf"
|
||||||
|
- "{{ node_custom_config }}/ceph-nfs/ganesha.conf"
|
||||||
|
- "ganesha.conf.j2"
|
||||||
|
@ -58,3 +58,16 @@
|
|||||||
- "{{ ceph_files['ceph.client.admin.keyring'] }}"
|
- "{{ ceph_files['ceph.client.admin.keyring'] }}"
|
||||||
- "{{ ceph_files['ceph.client.radosgw.keyring'] }}"
|
- "{{ ceph_files['ceph.client.radosgw.keyring'] }}"
|
||||||
when: inventory_hostname in groups['ceph-rgw']
|
when: inventory_hostname in groups['ceph-rgw']
|
||||||
|
|
||||||
|
- name: Pushing Ceph keyrings for NFSs
|
||||||
|
become: true
|
||||||
|
bslurp:
|
||||||
|
src: "{{ item.content }}"
|
||||||
|
dest: "{{ node_config_directory }}/ceph-nfs/{{ item.filename }}"
|
||||||
|
sha1: "{{ item.sha1 }}"
|
||||||
|
mode: 0600
|
||||||
|
with_items:
|
||||||
|
- "{{ ceph_files['ceph.client.admin.keyring'] }}"
|
||||||
|
when:
|
||||||
|
- inventory_hostname in groups['ceph-nfs']
|
||||||
|
- enable_ceph_nfs | bool
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"command": "/usr/bin/ganesha.nfsd -f /etc/ganesha/ganesha.conf",
|
"command": "/usr/bin/ganesha.nfsd -F -f /etc/ganesha/ganesha.conf",
|
||||||
"config_files": [
|
"config_files": [
|
||||||
{
|
{
|
||||||
"source": "{{ container_config_directory }}/ganesha.conf",
|
"source": "{{ container_config_directory }}/ganesha.conf",
|
||||||
|
@ -14,7 +14,6 @@ EXPORT
|
|||||||
|
|
||||||
FSAL {
|
FSAL {
|
||||||
Name = CEPH;
|
Name = CEPH;
|
||||||
User_Id = "admin";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user