1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/querying-bootstrap-node-journal-logs.adoc
2023-10-30 10:13:25 -04:00

36 lines
1.4 KiB
Plaintext

// Module included in the following assemblies:
//
// * support/gathering-cluster-data.adoc
:_mod-docs-content-type: PROCEDURE
[id="querying-bootstrap-node-journal-logs_{context}"]
= Querying bootstrap node journal logs
If you experience bootstrap-related issues, you can gather `bootkube.service` `journald` unit logs and container logs from the bootstrap node.
.Prerequisites
* You have SSH access to your bootstrap node.
* You have the fully qualified domain name of the bootstrap node.
.Procedure
. Query `bootkube.service` `journald` unit logs from a bootstrap node during {product-title} installation. Replace `<bootstrap_fqdn>` with the bootstrap node's fully qualified domain name:
+
[source,terminal]
----
$ ssh core@<bootstrap_fqdn> journalctl -b -f -u bootkube.service
----
+
[NOTE]
====
The `bootkube.service` log on the bootstrap node outputs etcd `connection refused` errors, indicating that the bootstrap server is unable to connect to etcd on control plane nodes. After etcd has started on each control plane node and the nodes have joined the cluster, the errors should stop.
====
+
. Collect logs from the bootstrap node containers using `podman` on the bootstrap node. Replace `<bootstrap_fqdn>` with the bootstrap node's fully qualified domain name:
+
[source,terminal]
----
$ ssh core@<bootstrap_fqdn> 'for pod in $(sudo podman ps -a -q); do sudo podman logs $pod; done'
----