diff --git a/docs/trouble_shooting.md b/docs/trouble_shooting.md index a6a59875cb..d2532daea8 100644 --- a/docs/trouble_shooting.md +++ b/docs/trouble_shooting.md @@ -4,6 +4,7 @@ - [Trouble shooting](#trouble-shooting) - [Get log of clusterapi-controllers containers](#get-log-of-clusterapi-controllers-containers) + - [Master failed to start with error: node xxxx not found](#master-failed-to-start-with-error-node-xxxx-not-found) @@ -27,3 +28,15 @@ This guide (based on minikube and others should be similar) explains general inf ``` # kubectl --kubeconfig minikube.kubeconfig log clusterapi-controllers-xxxxxxxxx-xxxxx -n openstack-provider-system ``` + +## Master failed to start with error: node xxxx not found + +Sometimes the master machine is created but failed to startup, take ubuntu as example, open `/var/log/messages` +and if you see something like +``` +Jul 10 00:07:58 openstack-master-5wgrw kubelet: E0710 00:07:58.444950 4340 kubelet.go:2248] node "openstack-master-5wgrw" not found +Jul 10 00:07:58 openstack-master-5wgrw kubelet: I0710 00:07:58.526091 4340 kubelet_node_status.go:72] Attempting to register node openstack-master-5wgrw +Jul 10 00:07:58 openstack-master-5wgrw kubelet: E0710 00:07:58.527398 4340 kubelet_node_status.go:94] Unable to register node "openstack-master-5wgrw" with API server: nodes "openstack-master-5wgrw" is forbidden: node "openstack-master-5wgrw.novalocal" is not allowed to modify node "openstack-master-5wgrw" +``` + +This might be caused by [This issue](https://github.com/kubernetes-sigs/cluster-api-provider-openstack/issues/391), try the method proposed there.