Bug 1544027

Summary: vsphere cloud provider uses datacenter instead of datastore for standard sc
Product: OpenShift Container Platform Reporter: davis phillips <dphillip>
Component: InstallerAssignee: davis phillips <dphillip>
Status: CLOSED ERRATA QA Contact: Gan Huang <ghuang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.9.0CC: aos-bugs, ghuang, jokerman, mmccomas, xtian
Target Milestone: ---   
Target Release: 3.9.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-28 14:28:16 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:
Bug Depends On:    
Bug Blocks: 1543830    

Description davis phillips 2018-02-09 22:09:05 UTC
Description of problem:
Installation failed while specifying VSphere cloudprovider

Version-Release number of the following components:
openshift-ansible master branch

How reproducible:
always

Steps to Reproduce:
1. Trigger installation with vsphere cloudprovider enabled
openshift_cloudprovider_kind=vsphere
openshift_cloudprovider_vsphere_username=xxx
openshift_cloudprovider_vsphere_password=xxxx
openshift_cloudprovider_vsphere_host=xxxxx
openshift_cloudprovider_vsphere_datacenter=Datacenter
openshift_cloudprovider_vsphere_datastore=datastore1

Actual results
[root@master-0 ~]# oc describe sc standard
Name:            standard
IsDefaultClass:  Yes
Annotations:     storageclass.beta.kubernetes.io/is-default-class=true
Provisioner:     kubernetes.io/vsphere-volume
Parameters:      datastore=Datacenter
ReclaimPolicy:   Delete
Events:          <none>

Expected results
[root@master-0 ~]# oc describe sc standard
Name:            standard
IsDefaultClass:  Yes
Annotations:     storageclass.beta.kubernetes.io/is-default-class=true
Provisioner:     kubernetes.io/vsphere-volume
Parameters:      datastore=datastore1
ReclaimPolicy:   Delete
Events:          <none>

Comment 1 davis phillips 2018-02-12 15:38:24 UTC
resolved via https://github.com/openshift/openshift-ansible/pull/7096

Comment 3 Gan Huang 2018-02-27 02:41:19 UTC
PR not merged yet.

Comment 4 Gan Huang 2018-02-28 07:48:30 UTC
# oc get sc
NAME                 PROVISIONER                    AGE
standard (default)   kubernetes.io/vsphere-volume   9m
[root@test ~]# oc describe sc standard
Name:            standard
IsDefaultClass:  Yes
Annotations:     storageclass.beta.kubernetes.io/is-default-class=true
Provisioner:     kubernetes.io/vsphere-volume
Parameters:      datastore=datastore1
ReclaimPolicy:   Delete
Events:          <none>

Verified in openshift-ansible-3.9.1-1.git.0.9862628.el7.noarch

Comment 7 errata-xmlrpc 2018-03-28 14:28:16 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-2018:0489