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

Bug 1405307

Summary: PVC doesn't support mount option for NFS
Product: OpenShift Container Platform Reporter: Kenjiro Nakayama <knakayam>
Component: StorageAssignee: Hemant Kumar <hekumar>
Status: CLOSED ERRATA QA Contact: Wenqi He <wehe>
Severity: low Docs Contact:
Priority: medium    
Version: 3.3.0CC: aos-bugs, bchilds, hchen, smunilla, wmeng
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Feature: Enable users to specify mount options with Persistent Volumes (including NFS and other volume types that support it). See openshift document for more information. Reason: Occasionally default mount options used by Openshift is not good enough for NFS and other volume types. This feature allows users to tweak mount options depending on their storage configuration. Result: Implemented support for mount options in NFS and other volume types that support it.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-10 05:17:28 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 Kenjiro Nakayama 2016-12-16 07:26:07 UTC
Description of problem:
===
  - OpenShift PVC doesn't support mount option for NFS.
  - One customer need to use NFS client with v3 due to their NFS server restriction, so "vers=3" is necessary.
  - Similar report in upstream https://github.com/kubernetes/kubernetes/issues/17226

Version-Release number of selected component (if applicable):
===
  - OCP 3.3

Steps to Reproduce:
===
1. Create PVC with NFS backend

Actual results:
===
- PVC doesn't have any option to specify "vers=3".

Expected results:
===
- PVC can specify the option "vers=3".

Comment 2 hchen 2017-01-26 15:50:27 UTC
to be addressed in Kubernetes 1.6

Comment 3 Bradley Childs 2017-05-04 14:39:14 UTC
picked up in 1.6 rebase

Comment 4 Hemant Kumar 2017-05-08 13:24:04 UTC
Added github pr link.

Comment 5 Hemant Kumar 2017-05-18 13:05:24 UTC
Github PR - https://github.com/kubernetes/kubernetes/pull/41906

Comment 7 Wenqi He 2017-05-31 10:27:40 UTC
Verified on below version:
openshift v3.6.86
kubernetes v1.6.1+5115d708d7

Now the pvc is supported mount option:

$ cat pvc.yaml

kind: PersistentVolume
apiVersion: v1
metadata:
  name: pvmountopt 
  annotations:
    volume.beta.kubernetes.io/mount-options: ro,nfsvers=3
spec:
  capacity:
    storage: 1Gi
  accessModes:
     - ReadWriteOnce
  nfs:
    path: /nfs
    server: <nfserver>

Comment 9 errata-xmlrpc 2017-08-10 05:17:28 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/RHEA-2017:1716