From 365f16e21d25e6ffeed65a65c22df48a857935b0 Mon Sep 17 00:00:00 2001 From: Pranali Deore Date: Fri, 5 Feb 2021 12:53:38 +0530 Subject: [PATCH] Allow configuring cinder mount point for glance cinder store The new parameter CinderMountPointBase has been added which will be used for mounting NFS volumes on glance nodes. When glance uses cinder as store and cinder backend is NFS, the mount point would be required to be set with this parameter. Depends-On: Ib724f6e895716847827be48ed08b01a7a312338f Change-Id: Ie84fa812c71ccff8328a0c43e023f98522dd80fb --- deployment/glance/glance-api-container-puppet.yaml | 7 +++++++ ...cinder-mount-point-base-parameter-852554398b9f3a19.yaml | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 releasenotes/notes/add-glance-cinder-mount-point-base-parameter-852554398b9f3a19.yaml diff --git a/deployment/glance/glance-api-container-puppet.yaml b/deployment/glance/glance-api-container-puppet.yaml index 839c531ae4..1a6f8baa7f 100644 --- a/deployment/glance/glance-api-container-puppet.yaml +++ b/deployment/glance/glance-api-container-puppet.yaml @@ -264,6 +264,12 @@ parameters: cinder_store: GlanceBackend: cinder GlanceStoreDescription: 'Cinder store' + GlanceCinderMountPointBase: + default: '/var/lib/glance/mnt' + type: string + description: | + The mount point base when glance is using cinder as store and cinder backend + is NFS. This mount point is where the NFS volume is mounted on the glance node. CephClientUserName: default: openstack type: string @@ -524,6 +530,7 @@ outputs: glance::backend::cinder::cinder_store_project_name: 'service' glance::backend::cinder::cinder_store_user_name: 'glance' glance::backend::cinder::cinder_store_password: {get_param: GlancePassword} + tripleo::profile::base::glance::backend::cinder::cinder_mount_point_base: {get_parame: GlanceCinderMountPointBase} - {} - if: diff --git a/releasenotes/notes/add-glance-cinder-mount-point-base-parameter-852554398b9f3a19.yaml b/releasenotes/notes/add-glance-cinder-mount-point-base-parameter-852554398b9f3a19.yaml new file mode 100644 index 0000000000..cf4079d06e --- /dev/null +++ b/releasenotes/notes/add-glance-cinder-mount-point-base-parameter-852554398b9f3a19.yaml @@ -0,0 +1,7 @@ +--- +features: + - | + The new parameter GlanceCinderMountPointBase has been added which will be used + for mounting NFS volumes on glance nodes. + When glance uses cinder as store and cinder backend is NFS, this parameter must + be set to match cinder's mount point.