Bug 1715096

Summary: [OSP14] Add ability to override libvirt NFS mount options for NFS backed Cinder volumes
Product: Red Hat OpenStack Reporter: Martin Schuppert <mschuppe>
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: jhakimra, jjoyce, jschluet, mbooth, mmethot, nlevinki, owalsh, rheslop, shdunne, slinaber, tvignaud
Target Milestone: z3Keywords: Patch, Triaged, ZStream
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-nova-13.3.2-0.20190426043941.d968cc2.el7ost Doc Type: Bug Fix
Doc Text:
This patch updates puppet-nova to allow the customization of libvirt NFS mount options through heat. This can be accomplished through the `nova::compute::libvirt::nvs_mount_options` parameter.
Story Points: ---
Clone Of: 1715094 Environment:
Last Closed: 2019-07-02 20:09:17 UTC Type: ---
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: 1650949, 1715094    
Bug Blocks:    

Description Martin Schuppert 2019-05-29 14:51:22 UTC
+++ This bug was initially created as a clone of Bug #1715094 +++

+++ This bug was initially created as a clone of Bug #1650949 +++

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 12 Joe H. Rahme 2019-06-17 14:22:16 UTC
Verified by adding the following parameters to overcloud_deploy:

parameter_defaults:
  ComputeExtraConfig:
    nova::compute::libvirt::nfs_mount_options: "vers=3,lookupcache=pos"


After deployment we can see the values in the nova.conf on compute nodes:


[heat-admin@compute-0 ~]$ sudo docker exec nova_compute grep nfs_mount_options /etc/nova/nova.conf
#nfs_mount_options=<None>
nfs_mount_options=vers=3,lookupcache=pos

Comment 15 errata-xmlrpc 2019-07-02 20:09:17 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:1672