Bug #50577
migrate NFS exports form ceph-ansible to mgr/nfs
0%
Description
The cephadm generated ganesha.conf differs from what manila uses because there's no flexibility in configuring different options other than [1].
The Openstack ganesha config used for manila was generated by ceph-ansible through [2].
The ganesha config produced by the nfs cephadm deployed daemon breaks the backward compatibility with the ceph-ansible generated one.
For this reason, even though issue [3] is solved, we won't still be able to properly configure the Manila project with Ceph.
Here an example of the config produced by ceph-ansible:
NFS_Core_Param
{
Bind_Addr={{ IP_ADDRESS }};
}
EXPORT_DEFAULTS {
Attr_Expiration_Time = 0;
}
CACHEINODE {
Dir_Chunk = 0;
NParts = 1;
Cache_Size = 1;
}
RADOS_URLS {
ceph_conf = '/etc/ceph/ceph.conf';
userid = "manila";
}
%url rados://manila_data/ganesha-export-index
NFSv4 {
RecoveryBackend = 'rados_kv';
}
RADOS_KV {
ceph_conf = '/etc/ceph/ceph.conf';
userid = "manila";
pool = "manila_data";
}
LOG {
Facility {
name = FILE;
destination = "/var/log/ganesha/ganesha.log";
enable = active;
}
}
[1] https://github.com/ceph/ceph/blob/master/src/pybind/mgr/cephadm/templates/services/nfs/ganesha.conf.j2
[2] https://github.com/ceph/ceph-ansible/blob/master/roles/ceph-nfs/templates/ganesha.conf.j2
[3] https://tracker.ceph.com/issues/50360
Related issues
History
#1 Updated by Ilya Dryomov over 2 years ago
- Project changed from rbd to CephFS
This is between cephadm and CephFS, moving to CephFS for now.
#2 Updated by Patrick Donnelly over 2 years ago
- Related to Feature #50360: Configure the IP address for Ganesha added
#3 Updated by Patrick Donnelly over 2 years ago
- Target version changed from v16.2.2 to v17.0.0
- Source set to Community (user)
- Backport set to pacific
- Component(FS) mgr/nfs added
#4 Updated by Patrick Donnelly over 2 years ago
- Status changed from New to Triaged
- Assignee set to Varsha Rao
#5 Updated by Varsha Rao over 2 years ago
Francesco Pantano wrote:
The cephadm generated ganesha.conf differs from what manila uses because there's no flexibility in configuring different options other than [1].
The Openstack ganesha config used for manila was generated by ceph-ansible through [2].
The ganesha config produced by the nfs cephadm deployed daemon breaks the backward compatibility with the ceph-ansible generated one.
For this reason, even though issue [3] is solved, we won't still be able to properly configure the Manila project with Ceph.
You can use `ceph nfs cluster config set <clusterid> -i <config_file>` command to add different configuration options. This command works only with nfs-ganesha daemons deployed through `mgr/nfs` interface. As it uses specific pool and namespace.
https://docs.ceph.com/en/latest/cephfs/fs-nfs-exports/#set-customized-nfs-ganesha-configuration
#6 Updated by Sebastian Wagner over 2 years ago
- Related to Feature #46493: mgr/dashboard: integrate Dashboard with mgr/nfs module interface added
#7 Updated by Sage Weil over 2 years ago
- Priority changed from Normal to Urgent
#8 Updated by Sebastian Wagner about 2 years ago
- Project changed from CephFS to ceph-ansible
moving to ceph-ansible as the playbook is located in the ceph-ansible codebase
#9 Updated by Sebastian Wagner about 2 years ago
- Subject changed from cephadm ganesha config breaks backward compatibility with ceph-ansible to migrate NFS exports form ceph-ansible to mgr/nfs