Bug 1497042 - Unable to mount dynamically provisioned persistant volumes using vSphere
Summary: Unable to mount dynamically provisioned persistant volumes using vSphere
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 3.6.1
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 3.6.z
Assignee: Pavel Pospisil
QA Contact: Jianwei Hou
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-29 05:33 UTC by Jaspreet Kaur
Modified: 2017-12-07 07:11 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: volumePath that includes datastore name is parsed incorrectly. The same applies to volumePath that includes datacluster and datastore names. Consequence: It is not possible to attach persistent volumes that have the above described volumePath values. Fix: volumePath is now parsed correctly. Result: Persistent volumes that have the above described volumePath values are attached correctly.
Clone Of:
Environment:
Last Closed: 2017-12-07 07:11:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3389 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Enterprise security, bug fix, and enhancement update 2017-12-07 12:09:10 UTC

Description Jaspreet Kaur 2017-09-29 05:33:32 UTC
Description of problem: We have set up OCP to dynamically create vmdk-files in vSphere as persistant volumes.
When creating a pod using persistant volumes, we get this error message:
Failed to attach volume "pvc-c60418fb-a1e8-11e7-978a-005056bf7cc7" on node "ocp-prod-node01.x.y " with: datastore 'D6OCPV01' not found


When we specified "datastore: OCPPROD/D6OCPV01" it where able to provision the volume, but not mount it.
## Failed to attach volume "pvc-ec2816b1-a2c4-11e7-978a-005056bf7cc7" on node "ocp-prod-node02.local.husbanken.no" with: datastore 'D6OCPV01' not found"


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

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results: It is not able to locate the datastore.


Expected results: It shpuld be able to locate it

Master Log:

Node Log (of failed PODs):

PV Dump:

PVC Dump:

StorageClass Dump (if StorageClass used by PV/PVC):

Additional info:

Comment 7 Jan Safranek 2017-10-02 10:48:58 UTC
It's hard to guess what's wrong without reproducing the bug locally.

@Jianwei, can you or someone from your team try to reproduce the bug on our systems and give me access there?

I suspect that it's caused by https://github.com/kubernetes/kubernetes/issues/44007 and it's fixed by https://github.com/kubernetes/kubernetes/pull/44868, but that's just a wild guess.

Comment 11 Jan Safranek 2017-10-23 07:27:50 UTC
The PR is not merged yet

Comment 18 Jianwei Hou 2017-11-06 10:00:11 UTC
Tested on v3.6.173.0.63

Volume mounted successfully when storageclass has 'datastore' parameter.

Comment 23 errata-xmlrpc 2017-12-07 07:11:23 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/RHSA-2017:3389


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