Bug 1405307 - PVC doesn't support mount option for NFS
Summary: PVC doesn't support mount option for NFS
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Hemant Kumar
QA Contact: Wenqi He
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-16 07:26 UTC by Kenjiro Nakayama
Modified: 2020-01-17 16:20 UTC (History)
5 users (show)

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.
Clone Of:
Environment:
Last Closed: 2017-08-10 05:17:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 41906 0 None None None 2020-06-01 06:14:11 UTC
Red Hat Product Errata RHEA-2017:1716 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 09:02:50 UTC

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


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