permit to use multiple cinder nfs_share
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Triaged
|
Low
|
Unassigned |
Bug Description
If we want to setup several different NFS backend like netapp ontap NFS and a vanilla NFS, we will need several different nfs_shares file
By default kolla-ansible set in backend configuration nfs_shares_config = /etc/cinder/
If we set all NFS share in this file, each backend driver will try to manage both NFS share and it doesn't work
I propose to copy each file *_share set in config/cinder to let user use several NFS backend.
[1] https:/
[2] https:/
Changed in kolla-ansible: | |
importance: | Undecided → Low |
status: | New → Triaged |
The same problem.
We need several NetApp backends on the single host.
Kolla can't handle this scenario.
Wrote a WA for that
## /usr/local/ share/kolla- ansible/ ansible/ roles/cinder/ tasks/config. yml ------- ------- ------- ----
-------
- name: Find all nfs_shares config files config_ files"
become: true
find:
paths:
- "{{ node_custom_config }}/cinder/{{ inventory_hostname }}/"
pattern: "nfs_shares*"
file_type: file
delegate_to: localhost
register: "shares_
- name: Copying over nfs_shares files for cinder_volume directory }}/cinder-volume/" config_ files.files }}" 'cinder- volume' ]
become: true
template:
src: "{{ item.path }}"
dest: "{{ node_config_
mode: "0660"
loop: "{{ shares_
when: inventory_hostname in groups[
notify:
- Restart cinder-volume container
## /usr/local/ share/kolla- ansible/ ansible/ roles/cinder/ templates/ cinder- volume. json.j2 ------- ------- ------- ----
"source" : "{{ container_ config_ directory }}/nfs_shares*",
"owner" : "cinder",
"optional" : {{ (not enable_ cinder_ backend_ nfs | bool) | string | lower }}
-------
{
"dest": "/etc/cinder/",
"perm": "0600",
}
It will copy all nfs_shares* from deploy host /etc/kolla/ cinder/ <host>/ to cinder-volume container /etc/cinder
It works for our purposes fine.
Hope kolla dev team will find some useful here and include this options in some of future releases.
Regards :)