Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1650949

Summary: [OSP13] Add ability to override libvirt NFS mount options for NFS backed Cinder volumes
Product: Red Hat OpenStack Reporter: Marc Methot <mmethot>
Component: puppet-novaAssignee: Martin Schuppert <mschuppe>
Status: CLOSED ERRATA QA Contact: Joe H. Rahme <jhakimra>
Severity: high Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: gkadam, jjoyce, jschluet, mbooth, mgeary, nlevinki, owalsh, slinaber, tvignaud
Target Milestone: z8Keywords: Patch, Reopened, Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-nova-12.4.0-21.el7ost Doc Type: Bug Fix
Doc Text:
With this update, you can customize the libvirt nfs mount options with the puppet-nova `nfs_mount_options` parameter.
Story Points: ---
Clone Of:
: 1715094 (view as bug list) Environment:
Last Closed: 2019-07-10 13:03:18 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:
Bug Depends On:    
Bug Blocks: 1715094, 1715096    

Description Marc Methot 2018-11-17 22:20:33 UTC
It would be requested to have the option to modify the 'nfs_mount_options' in the [libvirt] section of the nova.conf during the overcloud deployment.

~~~
[libvirt]
# Mount options passed to the NFS client. See section of the nfs man page
# for details.
#
# Mount options controls the way the filesystem is mounted and how the
# NFS client behaves when accessing files on this mount point.
#
# Possible values:
#
# * Any string representing mount options separated by commas.
# * Example string: vers=3,lookupcache=pos
#  (string value)
#nfs_mount_options=<None>
~~~

I could not find this parameter within THT or the openstack-puppet modules.


Cheers,
Marc Methot

Comment 1 Ollie Walsh 2018-11-22 17:45:50 UTC
Director manages the nfs mount. Example config in environments/storage/nova-nfs.yaml

Comment 2 Ollie Walsh 2018-11-23 11:58:30 UTC
ah, missing some relevant info in the description... this is boot from volume with NFS backed cinder volumes.

Comment 6 Matthew Booth 2018-11-23 16:39:49 UTC
Note that's there's a facility for cinder to pass mount options to nova via 'options' in connection_info. We'd have to ask the cinder folks how that's used in practise.

Comment 7 Matthew Booth 2019-05-23 12:42:05 UTC
This appears to have landed on master.

Comment 16 Joe H. Rahme 2019-06-24 16:14:09 UTC
Verified


(undercloud) [stack@undercloud-0 ~]$ cat virt/extra_templates.yaml 
parameter_defaults:
  ComputeExtraConfig:
    nova::compute::libvirt::nfs_mount_options: "vers=3,lookupcache=pos"




[heat-admin@compute-0 ~]$ sudo crudini --get /var/lib/config-data/puppet-generated/nova_libvirt/etc/nova/nova.conf libvirt nfs_mount_options
vers=3,lookupcache=pos

[heat-admin@compute-1 ~]$ sudo crudini --get /var/lib/config-data/puppet-generated/nova_libvirt/etc/nova/nova.conf libvirt nfs_mount_options
vers=3,lookupcache=pos

Comment 19 errata-xmlrpc 2019-07-10 13:03:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:1738

Comment 20 Alan Bishop 2022-02-10 17:34:02 UTC
*** Bug 2025843 has been marked as a duplicate of this bug. ***