Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CCM unable to get node info #28

Closed
deitch opened this issue Nov 12, 2019 · 5 comments
Closed

CCM unable to get node info #28

deitch opened this issue Nov 12, 2019 · 5 comments

Comments

@deitch
Copy link
Contributor

deitch commented Nov 12, 2019

When running, it complains about getting node info.

In k3s:

I1112 14:43:00.227384       1 controllermanager.go:244] Started "cloud-node-lifecycle"
E1112 14:43:00.239786       1 node_controller.go:140] provider name from providerID should be packet: k3s://ccm01
E1112 14:43:00.983278       1 node_controller.go:140] provider name from providerID should be packet: k3s://ccm02

In k8s:

I1112 15:17:52.834928       1 controllermanager.go:244] Started "cloud-node-lifecycle"
E1112 15:17:53.263606       1 node_controller.go:140] unexpected providerID format: ef6660bc-6578-490c-9d49-3ddadb2c483e, format should be: packet://device-id
E1112 15:17:54.178116       1 node_controller.go:140] unexpected providerID format: e197e6a0-4a2b-4256-9b7a-c1ea510579d4, format should be: packet://device-id

In all cases, it appears it doesn't send anything consistent.

@deitch
Copy link
Contributor Author

deitch commented Nov 12, 2019

Defer on fixing these until #26 is in at least

@deitch
Copy link
Contributor Author

deitch commented Nov 12, 2019

The k3s one appears to be a k3s bug, see this issue

The k8s one might be that we need to return the entire URI as packet://<id> instead of just <id> from InstanceID(). Still checking.

@deitch
Copy link
Contributor Author

deitch commented Nov 12, 2019

Nope, we are doing the right thing for InstanceID(). So it isn't that. The error message is being returned from here

@deitch
Copy link
Contributor Author

deitch commented Nov 13, 2019

The k3s issue is not a bug, but rather missing documentation on, "how to run k3s with an external CCM". It is being addressed in the referenced k3s issue.

@deitch
Copy link
Contributor Author

deitch commented Nov 13, 2019

The k8s one also is not an issue. If you start the node kubelet without --cloud-provider=external, the node cannot get it again. You need to clear it completely via:

  • stop the kubelet, e.g. systemctl stop kubelet (adjust to your system)
  • delete the node kubectl delete node <name>
  • add the --cloud-provider=external flag to the kubelet parameters
  • start the kubelet, e.g. systemctl start kubelet (adjust to your system)

@deitch deitch closed this as completed Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant