Extend NFS scenario to support cinder

We do have NFS scenario to deploy glance with NFS backend. However
we did not test cinder with NFS. With this change we extend possible
usecase of NFS server to support cinder as a backend.

Change-Id: I5bc0e5e08fdfd8f0fb90e5716cc6b9a0b1401c55
This commit is contained in:
Dmitriy Rabotyagov 2022-09-26 20:39:05 +02:00 committed by Dmitriy Rabotyagov
parent 091ae6369d
commit 38ee58b390
3 changed files with 18 additions and 1 deletions

View File

@ -73,6 +73,7 @@
group: "nfs-user"
with_items:
- "/srv/nfs/glance"
- "/srv/nfs/cinder"
- name: Create exports file
lineinfile:
@ -84,6 +85,7 @@
create: yes
with_items:
- "/srv/nfs/glance"
- "/srv/nfs/cinder"
register: nfs_exportfs
- name: Restart nfs-server

View File

@ -287,7 +287,7 @@ deployment_environment_variables:
lxc_container_networks: {}
{% endif %}
{% if 'ceph' not in bootstrap_host_scenarios_expanded %}
{% if 'ceph' not in bootstrap_host_scenarios_expanded and 'nfs' not in bootstrap_host_scenarios_expanded %}
cinder_backends:
lvm:
volume_group: cinder-volumes

View File

@ -6,3 +6,18 @@ glance_remote_client:
where: "/var/lib/glance/images"
type: "nfs"
options: "_netdev,auto"
cinder_default_volume_type: aio_nfs
cinder_backends:
aio_nfs:
volume_backend_name: nfs
volume_driver: cinder.volume.drivers.nfs.NfsDriver
nfs_shares_config: /etc/cinder/nfs_shares
nfs_qcow2_volumes: true
nfs_mount_options: vers=4,nfsvers=4,noatime,rw,bg,intr,async,timeo=60
nfs_snapshot_support: true
nas_secure_file_operations: false
shares:
- ip: 172.29.244.100
share: /srv/nfs/cinder
tempest_test_includelist:
- tempest.scenario.test_volume_boot_pattern.TestVolumeBootPattern.test_volume_boot_pattern