Skip to content

Commit b9d7589

Browse files
authored
Merge pull request #76585 from ShaunaDiaz/OSDOCS-9597
OSDOCS-9597: update troubleshooting book MicroShift
2 parents f82d2a1 + 4539f71 commit b9d7589

12 files changed

+133
-49
lines changed

_topic_maps/_topic_map_ms.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -497,15 +497,17 @@ Name: Troubleshooting
497497
Dir: microshift_troubleshooting
498498
Distros: microshift
499499
Topics:
500-
- Name: Checking your version
500+
- Name: Check your version
501501
File: microshift-version
502-
- Name: Troubleshooting backup and restore
503-
File: microshift-troubleshoot-backup-restore
504502
- Name: Troubleshoot the cluster
505503
File: microshift-troubleshoot-cluster
504+
- Name: Troubleshoot backup and restore
505+
File: microshift-troubleshoot-backup-restore
506506
- Name: Troubleshoot updates
507507
File: microshift-troubleshoot-updates
508-
- Name: Checking audit logs
508+
- Name: Check the audit logs
509509
File: microshift-audit-logs
510+
- Name: Troubleshoot etcd
511+
File: microshift-etcd-troubleshoot
510512
- Name: Additional information
511513
File: microshift-things-to-know

microshift_support/microshift-etcd.adoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ include::_attributes/attributes-microshift.adoc[]
66

77
toc::[]
88

9-
[role="_abstract"]
109
The etcd service is delivered as part of the {product-title} RPM. The etcd service is run as a separate process and the etcd lifecycle is managed automatically by {microshift-short}.
1110

1211
include::modules/microshift-observe-debug-etcd-server.adoc[leveloffset=+1]
1312

14-
include::modules/microshift-config-etcd.adoc[leveloffset=+1]
15-
1613
include::modules/microshift-etcd-version.adoc[leveloffset=+1]
14+
15+
[id="microshift-troubleshooting-etcd_{context}"]
16+
== Troubleshooting etcd
17+
18+
To troubleshoot etcd and improve performance, configure the memory allowance for the service.
19+
20+
include::modules/microshift-config-etcd.adoc[leveloffset=+1]

microshift_support/microshift-getting-support.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ toc::[]
88

99
Use the following information to get more help with {op-system-bundle}, including {product-title} or {op-system-ostree-first}.
1010

11+
//OCP module
1112
include::modules/support.adoc[leveloffset=+1]
1213

1314
include::modules/microshift-provide-feedback-jira-link.adoc[leveloffset=+1]
1415

16+
//OCP module
1517
include::modules/support-knowledgebase-about.adoc[leveloffset=+1]
1618

19+
//OCP module
1720
include::modules/support-knowledgebase-search.adoc[leveloffset=+1]
1821

1922
include::modules/microshift-submitting-a-case.adoc[leveloffset=+1]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
[id="microshift-etcd-troubleshoot"]
3+
= Troubleshoot etcd
4+
include::_attributes/attributes-microshift.adoc[]
5+
:context: microshift-etcd-troubleshoot
6+
7+
toc::[]
8+
9+
To troubleshoot etcd and improve performance, configure the memory allowance for the service.
10+
11+
include::modules/microshift-config-etcd.adoc[leveloffset=+1]

microshift_troubleshooting/microshift-troubleshoot-cluster.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ include::_attributes/attributes-microshift.adoc[]
66

77
toc::[]
88

9-
To begin troubleshooting a {product-title} cluster, first access the cluster status.
9+
To begin troubleshooting a {microshift-short} cluster, first access the cluster status.
1010

1111
include::modules/microshift-check-cluster-status.adoc[leveloffset=+1]

microshift_troubleshooting/microshift-troubleshoot-updates.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ toc::[]
88

99
To troubleshoot {microshift-short} updates, use the following guide.
1010

11-
[IMPORTANT]
12-
====
13-
You can only update {microshift-short} from one minor version to the next in sequence. For example, you must update 4.14 to 4.15.
14-
====
11+
//[IMPORTANT]
12+
//====
13+
//You can only update {microshift-short} from one minor version to the next in sequence. For example, you must update 4.14 to 4.15.
14+
//====
1515

1616
include::modules/microshift-updates-troubleshooting.adoc[leveloffset=+1]
1717

modules/microshift-check-cluster-status.adoc

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,50 @@
66
[id="microshift-check-cluster-status_{context}"]
77
= Checking the status of a cluster
88

9-
You can check the status of a {microshift-short} cluster or see active pods by running a simple command. Given in the following procedure are three commands you can use to check cluster status. You can choose to run one, two, or all commands to help you retrieve the information you need to troubleshoot the cluster.
9+
You can check the status of a {microshift-short} cluster or see active pods. Given in the following procedure are three different commands you can use to check cluster status. You can choose to run one, two, or all commands to help you get the information you need to troubleshoot the cluster.
1010

1111
.Procedure
12-
* You can check the system status, which returns the cluster status, by running the following command:
12+
* Check the system status, which returns the cluster status, by running the following command:
1313
+
1414
[source,terminal]
1515
----
1616
$ sudo systemctl status microshift
1717
----
1818
+
19-
If {microshift-short} is failing to start, this command returns the logs from the previous run.
19+
If {microshift-short} fails to start, this command returns the logs from the previous run.
20+
+
21+
.Example healthy output
22+
[source,text]
23+
----
24+
● microshift.service - MicroShift
25+
Loaded: loaded (/usr/lib/systemd/system/microshift.service; enabled; preset: disabled)
26+
Active: active (running) since <day> <date> 12:39:06 UTC; 47min ago
27+
Main PID: 20926 (microshift)
28+
Tasks: 14 (limit: 48063)
29+
Memory: 542.9M
30+
CPU: 2min 41.185s
31+
CGroup: /system.slice/microshift.service
32+
└─20926 microshift run
33+
34+
<Month-Day> 13:23:06 i-06166fbb376f14a8b.<hostname> microshift[20926]: kube-apiserver I0528 13:23:06.876001 20926 controll>
35+
<Month-Day> 13:23:06 i-06166fbb376f14a8b.<hostname> microshift[20926]: kube-apiserver I0528 13:23:06.876574 20926 controll>
36+
# ...
37+
----
2038

21-
* Optional: You can view the logs by running the following command:
39+
* Optional: Get comprehensive logs by running the following command:
2240
+
2341
[source,terminal]
2442
----
2543
$ sudo journalctl -u microshift
2644
----
27-
45+
+
2846
[NOTE]
2947
====
3048
The default configuration of the `systemd` journal service stores data in a volatile directory. To persist system logs across system starts and restarts, enable log persistence and set limits on the maximum journal data size.
3149
====
3250
33-
* Optional: If {microshift-short} is running, you can see active pods by entering the following command:
51+
* Optional: If {microshift-short} is running, check the status of active pods by entering the following command:
3452
+
35-
[source,terminal]
36-
----
37-
$ oc get pods -A
38-
----
53+
--
54+
include::snippets/microshift-healthy-pods-snip.adoc[leveloffset=+1]
55+
--

modules/microshift-check-journal-logs-updates.adoc

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The default configuration of the `systemd` journal service stores data in a vola
1515

1616
.Procedure
1717

18-
* Check the {microshift-short} journal logs by running the following command:
18+
* Get comprehensive {microshift-short} journal logs by running the following command:
1919
+
2020
[source,terminal]
2121
----
@@ -29,25 +29,36 @@ $ sudo journalctl -u microshift
2929
$ sudo journalctl -u greenboot-healthcheck
3030
----
3131
32-
* Check the journal logs for a boot of a specific service by running the following command:
32+
* Examining the comprehensive logs of a specific boot uses three steps. First list the boots, then select the one you want from the list you obtained:
33+
34+
** List the boots present in the journal logs by running the following command:
3335
+
3436
[source,terminal]
3537
----
36-
$ sudo journalctl --boot <boot> -u <service-name>
38+
$ sudo journalctl --list-boots
39+
----
40+
+
41+
.Example output
42+
[source,text]
43+
----
44+
IDX BOOT ID FIRST ENTRY LAST ENTRY
45+
0 681ece6f5c3047e183e9d43268c5527f <Day> <Date> 12:27:58 UTC <Day> <Date>> 13:39:41 UTC
46+
#....
3747
----
3848

39-
* Examining the comprehensive logs of a specific boot uses two steps. First list the boots, then select the one you want from the list you obtained:
40-
41-
** List the boots present in the journal logs by running the following command:
49+
** Check the journal logs for the specific boot you want by running the following command:
4250
+
4351
[source,terminal]
4452
----
45-
$ sudo journalctl --list-boots
53+
$ sudo journalctl --boot <-my_boot_ID> <1>
4654
----
55+
<1> Replace _<-my-boot-ID>_ with the number assigned to the specific boot that you want to check.
4756

48-
** Check the journal logs for the boot you want by running the following command:
57+
** Check the journal logs for the boot of a specific service by running the following command:
4958
+
5059
[source,terminal]
5160
----
52-
$ sudo journalctl --boot <-my-boot-number>
61+
$ sudo journalctl --boot <-my_boot_ID> -u <service_name> <1> <2>
5362
----
63+
<1> Replace _<-my-boot-ID>_ with the number assigned to the specific boot that you want to check.
64+
<2> Replace _<service_name>_ with the name of the service that you want to check.

modules/microshift-config-etcd.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[id="microshift-config-etcd_{context}"]
77
= Configuring the memoryLimitMB value to set parameters for the etcd server
88

9-
By default, etcd will use as much memory as necessary to handle the load on the system. In some memory constrained systems, it might be necessary to limit the amount of memory etcd is allowed to use at a given time.
9+
By default, etcd uses as much memory as necessary to handle the load on the system. In memory-constrained systems, you might need to limit the amount of memory etcd uses.
1010

1111
.Procedure
1212

@@ -20,7 +20,7 @@ etcd:
2020
+
2121
[NOTE]
2222
====
23-
The minimum permissible value for `memoryLimitMB` on {microshift-short} is 128 MB. Values close to the minimum value are more likely to impact etcd performance. The lower the limit, the longer etcd takes to respond to queries. If the limit is too low or the etcd usage is high, queries time out.
23+
The minimum required value for `memoryLimitMB` on {microshift-short} is 128 MB. Values close to the minimum value are more likely to impact etcd performance. The lower the limit, the longer etcd takes to respond to queries. If the limit is too low or the etcd usage is high, queries time out.
2424
====
2525
2626
.Verification

modules/microshift-etcd-version.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[id="microshift-version-etcd_{context}"]
88
= Checking the etcd version
99

10-
You can get the version information for the etcd database included with your {microshift-short}.
10+
You can get the version information for the etcd database included with your {microshift-short} by using one or both of the following methods, depending on the level of information that you need.
1111

1212
.Procedure
1313

@@ -21,8 +21,8 @@ $ microshift-etcd version
2121
.Example output
2222
[source,terminal,subs="attributes+"]
2323
----
24-
microshift-etcd Version: 4.16.1
25-
Base etcd Version: 3.5.10
24+
microshift-etcd Version: 4.16.0
25+
Base etcd Version: 3.5.13
2626
----
2727
2828
* To display the full database version information, run the following command:
@@ -37,15 +37,15 @@ $ microshift-etcd version -o json
3737
----
3838
{
3939
"major": "4",
40-
"minor": "15",
41-
"gitVersion": "4.16.1",
42-
"gitCommit": "2e182312718cc9d267ec71f37dc2fbe2eed01ee2",
40+
"minor": "16",
41+
"gitVersion": "4.16.0~rc.1",
42+
"gitCommit": "140777711962eb4e0b765c39dfd325fb0abb3622",
4343
"gitTreeState": "clean",
44-
"buildDate": "2024-01-09T06:51:40Z",
45-
"goVersion": "go1.20.10",
44+
"buildDate": "2024-05-10T16:37:53Z",
45+
"goVersion": "go1.21.9"
4646
"compiler": "gc",
4747
"platform": "linux/amd64",
4848
"patch": "",
49-
"etcdVersion": "3.5.10"
49+
"etcdVersion": "3.5.13"
5050
}
5151
----

0 commit comments

Comments
 (0)