Skip to content

Commit 78281cf

Browse files
committed
OSDOCS-12713 Module for changing CVO log levels
1 parent 666dad7 commit 78281cf

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

modules/changing-cvo-log-level.adoc

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * updating/troubleshooting_updates/gathering-data-cluster-update.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="changing-log-data_{context}"]
7+
= Changing CVO log level
8+
9+
The Cluster Version Operator (CVO) log level verbosity can be changed by the cluster administrator. There are four log levels.
10+
11+
* `Normal` - The default log level. Contains working log information when everything is fine. Provides helpful notices for auditing or common operations.
12+
* `Debug` - Used when something goes wrong. Expect a higher quantity of notices.
13+
* `Trace` - Increases the verbosity of the logs. Used to diagnose errors.
14+
// rephrase traceall
15+
* `TraceAll` - Used when something is broken at the level of API content/decoding. It will dump complete body content. If turned on in a production cluster prepare for widespread performance issues and very large log files.
16+
17+
.Prerequisites
18+
* You have access to the cluster as a user with the `cluster-admin` role.
19+
* You have installed the {oc-first}.
20+
* You have the TechPreviewNoUpgrade feature set enabled.
21+
22+
.Procedure
23+
24+
. Enter the following command into the CLI.
25+
26+
[source,terminal]
27+
----
28+
$ oc patch clusterversionoperator/cluster --type=merge --patch '{"spec":{"operatorLogLevel":"<log_level>"}}'
29+
----
30+
+
31+
.Example output
32+
[source,terminal]
33+
----
34+
TBD
35+
----

updating/troubleshooting_updates/gathering-data-cluster-update.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ endif::openshift-origin[]
1515

1616
include::modules/gathering-log-data.adoc[leveloffset=+1]
1717

18+
include::modules/changing-cvo-log-level.adoc[leveloffset=+1]
19+
1820
include::modules/update-upgrading-oc-adm-upgrade-status.adoc[leveloffset=+1]
1921

2022
include::modules/gathering-clusterversion-history.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)