Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

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

Open
figo opened this issue Jun 11, 2018 · 2 comments

Comments

@figo
Copy link

figo commented Jun 11, 2018

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:

  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@divyenpatel
Copy link

@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
Copy link
Author

figo commented Jun 11, 2018

@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?

figo added a commit to figo/cross-cloud that referenced this issue Jun 11, 2018
this will enable vsphere cloud provider on worker node,
although we could need further change from discussion:
vmware-archive/kubernetes-archived#490

this also fix several configuration issues on worker template.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants