ProviderID Prefix to vsphere-paravirtual
which doesn't match CAPV providerID Prefix
#447
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
When deployed with CAPV using the
vsphere-paravirtual
CP, providerID in machine spec is likeproviderID: vsphere://421fddb7-1f54-b972-1b97-528b55613b94
, but on the node specvsphere-paravirtual://421cae04-e91b-f502-03a4-e9b4e4690115
, which set by the paravirtual provider.Because
ProviderID
is constructed using theProviderName
https://github.com/kubernetes/cloud-provider/blob/2c911671bd3eeff09ec2e093a5544ed56dd7f06f/cloud.go#L114
Then control plane and worker nodes will be stuck creating, because machine_controller can't find corresponding k8s node by using the providerID
What you expected to happen:
Either CAPI side set providerID prefix to
vsphere-paravirtual
as well, or we change the providerID in paravirtual tovsphere
as wellHow to reproduce it (as minimally and precisely as possible):
Deploy TKGs with this vsphere-paravirtual cloud-provider
Environment:
uname -a
): Linux 421cf7cfe1f42f446eb75e2a4ebbd34e 4.19.164-3.ph3-esx Create a SECURITY_CONTACTS file. #1-photon SMP Wed Jan 20 02:17:01 UTC 2021 x86_64 GNU/LinuxThe text was updated successfully, but these errors were encountered: