Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/trouble_shooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

Expand All @@ -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.