Skip to content

Commit 7d21730

Browse files
authored
Merge pull request #478 from randomvariable/troubleshooting-yaml-gen-fixup
Fix indentation for increasing log level
2 parents 076ec19 + 8b96a8e commit 7d21730

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

docs/troubleshooting.md

+28-28
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,32 @@
22

33
This is a guide on how to troubleshoot issues related to the Cluster API provider for vSphere (CAPV).
44

5-
* [Troubleshooting](#troubleshooting)
6-
* [Debugging issues](#debugging-issues)
7-
* [Bootstrapping with logging](#bootstrapping-with-logging)
8-
* [Adjusting log levels](#adjusting-log-levels)
9-
* [Adjusting the CAPI manager log level](#adjusting-the-capi-manager-log-level)
10-
* [Adjusting the CAPV manager log level](#adjusting-the-capv-manager-log-level)
11-
* [Adjusting the `clusterctl` log level](#adjusting-the-clusterctl-log-level)
12-
* [Accessing the logs in the bootstrap cluster](#accessing-the-logs-in-the-bootstrap-cluster)
13-
* [Exporting the kubeconfig](#exporting-the-kubeconfig)
14-
* [Following the CAPI manager logs](#following-the-capi-manager-logs)
15-
* [Following the CAPV manager logs](#following-the-capv-manager-logs)
16-
* [Following Kubernetes core component logs](#following-kubernetes-core-component-logs)
17-
* [The API server](#the-api-server)
18-
* [The controller manager](#the-controller-manager)
19-
* [The scheduler](#the-scheduler)
20-
* [Common issues](#common-issues)
21-
* [Ensure prerequisites are up to date](#ensure-prerequisites-are-up-to-date)
22-
* [`envvars.txt` is a directory](#envvarstxt-is-a-directory)
23-
* [Failed to retrieve kubeconfig secret](#failed-to-retrieve-kubeconfig-secret)
24-
* [Timed out while failing to retrieve kubeconfig secret](#timed-out-while-failing-to-retrieve-kubeconfig-secret)
25-
* [Cannot access the vSphere endpoint](#cannot-access-the-vsphere-endpoint)
26-
* [A VM with the same name already exists](#a-vm-with-the-same-name-already-exists)
27-
* [A static IP address must include the segment length](#a-static-ip-address-must-include-the-segment-length)
28-
* [Multiple networks](#multiple-networks)
29-
* [Multiple default routes](#multiple-default-routes)
30-
* [Preferring an IP address](#preferring-an-ip-address)
5+
- [Troubleshooting](#troubleshooting)
6+
- [Debugging issues](#debugging-issues)
7+
- [Bootstrapping with logging](#bootstrapping-with-logging)
8+
- [Adjusting log levels](#adjusting-log-levels)
9+
- [Adjusting the CAPI manager log level](#adjusting-the-capi-manager-log-level)
10+
- [Adjusting the CAPV manager log level](#adjusting-the-capv-manager-log-level)
11+
- [Adjusting the `clusterctl` log level](#adjusting-the-clusterctl-log-level)
12+
- [Accessing the logs in the bootstrap cluster](#accessing-the-logs-in-the-bootstrap-cluster)
13+
- [Exporting the kubeconfig](#exporting-the-kubeconfig)
14+
- [Following the CAPI manager logs](#following-the-capi-manager-logs)
15+
- [Following the CAPV manager logs](#following-the-capv-manager-logs)
16+
- [Following Kubernetes core component logs](#following-kubernetes-core-component-logs)
17+
- [The API server](#the-api-server)
18+
- [The controller manager](#the-controller-manager)
19+
- [The scheduler](#the-scheduler)
20+
- [Common issues](#common-issues)
21+
- [Ensure prerequisites are up to date](#ensure-prerequisites-are-up-to-date)
22+
- [`envvars.txt` is a directory](#envvarstxt-is-a-directory)
23+
- [Failed to retrieve kubeconfig secret](#failed-to-retrieve-kubeconfig-secret)
24+
- [Timed out while failing to retrieve kubeconfig secret](#timed-out-while-failing-to-retrieve-kubeconfig-secret)
25+
- [Cannot access the vSphere endpoint](#cannot-access-the-vsphere-endpoint)
26+
- [A VM with the same name already exists](#a-vm-with-the-same-name-already-exists)
27+
- [A static IP address must include the segment length](#a-static-ip-address-must-include-the-segment-length)
28+
- [Multiple networks](#multiple-networks)
29+
- [Multiple default routes](#multiple-default-routes)
30+
- [Preferring an IP address](#preferring-an-ip-address)
3131

3232
## Debugging issues
3333

@@ -55,7 +55,7 @@ The following steps may be used to adjust the CAPI manager's log level:
5555
- args:
5656
- --logtostderr
5757
- -v=6
58-
- command:
58+
command:
5959
- /manager
6060
image: us.gcr.io/k8s-artifacts-prod/cluster-api/cluster-api-controller:v0.1.7
6161
name: manager
@@ -210,7 +210,7 @@ Make sure the path to the `envvars.txt` file is correct before using it to gener
210210
When bootstrapping the management cluster, the vSphere manager log may emit errors similar to the following:
211211

212212
```shell
213-
E0726 17:12:54.812485 1 actuator.go:217] [cluster-actuator]/cluster.k8s.io/v1alpha1/default/v0.4.0-beta.2 "msg"="target cluster is not ready" "error"="unable to get client for target cluster: failed to retrieve kubeconfig secret for Cluster \"management-cluster\" in namespace \"default\": secret not found"
213+
E0726 17:12:54.812485 1 actuator.go:217] [cluster-actuator]/cluster.k8s.io/v1alpha1/default/v0.4.0-beta.2 "msg"="target cluster is not ready" "error"="unable to get client for target cluster: failed to retrieve kubeconfig secret for Cluster \"management-cluster\" in namespace \"default\": secret not found"
214214
```
215215

216216
The above error does not mean there is a problem. Kubernetes components operate in a reconciliation model -- a message loops attempts to reconcile the desired state over and over until it is achieved or a timeout occurs.

0 commit comments

Comments
 (0)