Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1405307 - PVC doesn't support mount option for NFS
PVC doesn't support mount option for NFS
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage (Show other bugs)
3.3.0
Unspecified Unspecified
medium Severity low
: ---
: ---
Assigned To: Hemant Kumar
Wenqi He
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-12-16 02:26 EST by Kenjiro Nakayama
Modified: 2017-08-16 15 EDT (History)
5 users (show)

See Also:
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 01:17:28 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Github 41906 None None None 2017-05-08 09:24 EDT
Red Hat Product Errata RHEA-2017:1716 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 05:02:50 EDT

  None (edit)
Description Kenjiro Nakayama 2016-12-16 02:26:07 EST
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 10:50:27 EST
to be addressed in Kubernetes 1.6
Comment 3 Bradley Childs 2017-05-04 10:39:14 EDT
picked up in 1.6 rebase
Comment 4 Hemant Kumar 2017-05-08 09:24:04 EDT
Added github pr link.
Comment 5 Hemant Kumar 2017-05-18 09:05:24 EDT
Github PR - https://github.com/kubernetes/kubernetes/pull/41906
Comment 7 Wenqi He 2017-05-31 06:27:40 EDT
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 01:17:28 EDT
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

Note You need to log in before you can comment on or make changes to this bug.