vmware-archive / kubernetes-archived

This repository is archived. Please file in-tree vSphere Cloud Provider issues at https://github.com/kubernetes/kubernetes/issues . CSI Driver for vSphere is available at https://github.com/kubernetes/cloud-provider-vsphere
Apache License 2.0
46 stars 31 forks source link

kubelet fail to init vsphere cloud provider, can't store data at section "Global", variable "default-datastore" #490

Open figo opened 6 years ago

figo commented 6 years ago

Is this a BUG REPORT or FEATURE REQUEST?:

/kind bug

What happened:

journalctl log:

kubelet[1193]: I0611 18:20:14.606675    1193 server.go:376] Version: v1.10.1
kubelet[1193]: I0611 18:20:14.606706    1193 feature_gate.go:226] feature gates: &{{} map[]}
kubelet[1193]: F0611 18:20:14.606935    1193 server.go:233] failed to run Kubelet: could not init cloud provider "vsphere": warnings:
kubelet[1193]: can't store data at section "Global", variable "default-datastore"
Jun 11 18:20:14 vsphere-worker-1.vsphere.vsphere.local kubelet[1193]: can't store data at section "Global", variable "folder"

here is the vsphere.conf

[Global]
user="masked"
password="masked"
server="masked"
port="443"
insecure-flag="1"
datacenters="SDDC-Datacenter"
default-datastore="WorkloadDatastore"
folder="Workloads"

based on doc: https://vmware.github.io/vsphere-storage-for-kubernetes/documentation/existing.html

those variables are supported since i am using k8s 1.10

What you expected to happen:

vSphere cloud provider been initialized.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

divyenpatel commented 6 years ago

@figo

For 1.10 Can you use following format for vsphere.conf file?

[Global]
user = "Administrator1@vsphere.local"
password = "adminpassword"
port = "443"
insecure-flag = "1"
datacenters = "us-east"

[VirtualCenter "XX.XXX.XXX.XXX"]

[Workspace] 
server = "XX.XXX.XXX.XXX"
datacenter = "us-east"
default-datastore="sharedVmfs-0"
resourcepool-path="cls"
folder = "kubernetes"

[Disk]
scsicontrollertype = pvscsi

[Network]
public-network = "VM Network"
figo commented 6 years ago

@divyenpatel i found the following config works fine. cloud provider initialized.

[Global]
user="masked"
password="masked"
server="masked"
port="443"
insecure-flag="1"
datacenter="SDDC-Datacenter"
datastore="WorkloadDatastore"
working-dir="Workloads"

basically using the v1.8 variables based on the doc, is there anything to be worried here?