Bug 1831820

Summary: [rfe] allow cinder/glance/nova/etc to pass NFS mount arguments to os-brick
Product: Red Hat OpenStack Reporter: David Hill <dhill>
Component: openstack-tripleo-heat-templatesAssignee: OSP Team <rhos-maint>
Status: NEW --- QA Contact: David Rosenfeld <drosenfe>
Severity: low Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: abishop, cgussobo, mburns
Target Milestone: ---Keywords: Reopened, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-05 18:02:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Hill 2020-05-05 17:18:01 UTC
Description of problem:
cinder-backup container doesn't have the source NFS share mounted so backing up such volumes fails.   When we manually mount the source NFS folder in the cinder-backup container, backups starts working.

Version-Release number of selected component (if applicable):
All

How reproducible:
This environment.

Steps to Reproduce:
1. Try to backup a cinder volume
2.
3.

Actual results:
Fails

Expected results:
Succeeds

Additional info:

Comment 4 David Hill 2020-05-05 19:39:58 UTC
I'm wondering if brick shouldn't use those mount options if they are defined ?

[username@hostname cinder]$ cat cinder.conf  | grep mount_options
#backup_mount_options = <None>
backup_mount_options=vers=4.0,rw,sync,nosharecache,context=system_u:object_r:cinder_var_lib_t:s0
#nfs_mount_options = <None>
#nas_mount_options = <None>
#vzstorage_mount_options = <None>
#zfssa_nfs_mount_options =
nfs_mount_options=vers=4.0,rw,sync,nosharecache,context=system_u:object_r:cinder_var_lib_t:s0

Comment 5 Alan Bishop 2020-05-05 19:50:59 UTC
os-brick is a library that is used by several services, e.g. nova-compute, that won't have access to cinder.conf.

I think what we need is an RFE that allows cinder to somehow "pass" NFS options to os-brick whenever clients (nova-compute, glance-api, cinder-backup) need to connect to a volume. This is a good topic for the cinder squad to discuss.

Comment 6 Conrado Gusso Bozza 2022-07-26 13:27:06 UTC
Hi,

Are there any plan to implement this feature? Just to have an update after +1y.