Skip to content

Commit dc0d57d

Browse files
authored
Merge pull request #49682 from openshift/revert-49141-CNV-15574-troubleshooting-guide
Revert "CNV-15574: troubleshooting guide"
2 parents a2228c4 + ecf5664 commit dc0d57d

8 files changed

+116
-218
lines changed

_topic_maps/_topic_map.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3456,7 +3456,7 @@ Topics:
34563456
File: virt-exposing-custom-metrics-for-vms
34573457
- Name: OpenShift Virtualization critical alerts
34583458
File: virt-virtualization-alerts
3459-
- Name: Collecting data for Red Hat Support
3459+
- Name: Collecting OpenShift Virtualization data for Red Hat Support
34603460
File: virt-collecting-virt-data
34613461
Distros: openshift-enterprise
34623462
- Name: Backup and restore
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/logging_events_monitoring/virt-collecting-virt-data.adoc
4+
5+
//This file contains UI elements and/or package names that need to be updated.
6+
7+
:_content-type: CONCEPT
8+
[id="virt-about-collecting-virt-data_{context}"]
9+
= About collecting {VirtProductName} data
10+
11+
You can use the `oc adm must-gather` CLI command to collect information about your
12+
cluster, including features and objects associated with {VirtProductName}:
13+
14+
* The {VirtProductName} Operator namespaces (and child objects)
15+
* All {VirtProductName} custom resource definitions (CRDs)
16+
* All namespaces that contain virtual machines
17+
* Basic virtual machine definitions
18+
19+
To collect {VirtProductName} data with `must-gather`, you must specify the
20+
{VirtProductName} image:
21+
`--image=registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel8:v{HCOVersion}`.

modules/virt-collecting-data-about-vms.adoc

Lines changed: 0 additions & 24 deletions
This file was deleted.

modules/virt-collecting-data-about-your-environment.adoc

Lines changed: 0 additions & 22 deletions
This file was deleted.

modules/virt-must-gather-options.adoc

Lines changed: 0 additions & 106 deletions
This file was deleted.
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/logging_events_monitoring/virt-collecting-virt-data.adoc
4+
5+
[id="virt-must-gather-usage-targeted-vm-data_{context}"]
6+
= must-gather tool usage for targeted VM data
7+
8+
When you use the `must-gather` CLI tool to collect {VirtProductName} data, the virtual machine (VM) information collected by default is limited to `VirtualMachine` and `VirtualMachineInstance` custom resources (CRs). You can request additional or targeted data by including parameters when you run the `must-gather` command. These parameters include environment variables and scripts.
9+
10+
[discrete]
11+
[id="supported-parameters_{context}"]
12+
=== Supported parameters
13+
14+
.Environment variables
15+
16+
`NS=<namespace_name>`:: Gather virtual machine information, including `virt-launcher` pod details, from the namespace that you specify. The `VirtualMachine` and `VirtualMachineInstance` CR data is collected for all namespaces.
17+
18+
`VM=<vm_name>`:: Gather details about a particular virtual machine. To use this option, you must also specify a namespace by using the `NS` environment variable.
19+
20+
`PROS=<number_of_processes>`:: Modify the maximum number of parallel processes that the `must-gather` tool uses. By default, the tool uses no more than five parallel processes.
21+
+
22+
[IMPORTANT]
23+
====
24+
Using too many parallel processes can cause performance issues. Increasing the maximum number of parallel processes is not recommended.
25+
====
26+
27+
.Scripts
28+
29+
Each script is only compatible with certain variable combinations.
30+
31+
`gather_vms_details`:: Collect virtual machine log files, VM definitions, and namespaces (and their child objects) that belong to {VirtProductName} resources. If you use this parameter without specifying a namespace or VM, the `must-gather` tool collects this data for all VMs in the cluster. This script is compatible with all of the supported environment variables, but you must specify a namespace if you use the `VM` variable.
32+
33+
`gather`:: Use the default `must-gather` script, which collects cluster data from all namespaces and includes only basic VM information. This script is only compatible with the `PROS` variable.
34+
35+
`gather_images`:: Collect image and image stream custom resource information. This script is only compatible with the `PROS` variable.
36+
37+
[discrete]
38+
[id="usage_{context}"]
39+
=== Usage
40+
41+
To customize the data that `must-gather` collects, append a double dash (`--`) to the command, followed by one or more compatible parameters. If you use any environment variables, you must specify a script.
42+
43+
The following options are valid:
44+
45+
* You can specify one script without using any environment variables.
46+
* You can use one or more environment variables in any order, followed by one script.
47+
48+
.Syntax
49+
50+
[source,terminal,subs="attributes+"]
51+
----
52+
$ oc adm must-gather --image=registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel8:v{HCOVersion} \
53+
-- <environment_variable_1> <environment_variable_2> <script_name>
54+
----
55+
56+
.Examples
57+
58+
* The following command collects extensive VM details for the `my-vm` VM in the `mynamespace` namespace:
59+
+
60+
[source,terminal,subs="attributes+"]
61+
----
62+
$ oc adm must-gather --image=registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel8:v{HCOVersion} -- NS=mynamespace VM=my-vm gather_vms_details
63+
----
64+
+
65+
[IMPORTANT]
66+
====
67+
If you use the `VM` environment variable, you must also specify a namespace.
68+
====
69+
70+
* The following command collects default `must-gather` information by using a maximum of three parallel processes:
71+
+
72+
[source,terminal,subs="attributes+"]
73+
----
74+
$ oc adm must-gather --image=registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel8:v{HCOVersion} -- PROS=3 gather
75+
----
76+
77+
* The following command collects image and image stream information from the cluster:
78+
+
79+
[source,terminal,subs="attributes+"]
80+
----
81+
$ oc adm must-gather --image=registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel8:v{HCOVersion} -- gather_images
82+
----

modules/virt-using-virt-must-gather.adoc

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 12 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,25 @@
11
:_content-type: ASSEMBLY
22
include::_attributes/common-attributes.adoc[]
33
[id="virt-collecting-virt-data"]
4-
= Collecting data for Red Hat Support
4+
= Collecting {VirtProductName} data for Red Hat Support
55
:context: virt-collecting-virt-data
66

77
toc::[]
88

9-
When you submit a xref:../../support/getting-support.adoc#support-submitting-a-case_getting-support[support case] to Red Hat Support, it is helpful to provide debugging information for {product-title} and {VirtProductName} by using the following tools:
9+
When opening a support case, it is helpful to provide debugging
10+
information about your cluster to Red Hat Support.
1011

11-
must-gather tool::
12-
The `must-gather` tool collects diagnostic information, including resource definitions and service logs.
12+
The `must-gather` tool enables you to collect diagnostic information about your
13+
{product-title} cluster, including virtual machines and other data related to
14+
{VirtProductName}.
1315

14-
Prometheus::
15-
Prometheus is a time-series database and a rule evaluation engine for metrics. Prometheus sends alerts to Alertmanager for processing.
16+
For prompt support, supply diagnostic information for both {product-title}
17+
and {VirtProductName}.
1618

17-
Alertmanager::
18-
The Alertmanager service handles alerts received from Prometheus. The Alertmanager is also responsible for sending the alerts to external notification systems.
19+
include::modules/about-must-gather.adoc[leveloffset=+1]
1920

20-
include::modules/virt-collecting-data-about-your-environment.adoc[leveloffset=+1]
21+
include::modules/virt-about-collecting-virt-data.adoc[leveloffset=+1]
2122

22-
[id="additional-resources_collecting-data-about-your-environment"]
23-
[role="_additional-resources"]
24-
=== Additional resources
25-
* Configuring the xref:../../monitoring/configuring-the-monitoring-stack.adoc#modifying-retention-time-for-prometheus-metrics-data_configuring-the-monitoring-stack[retention time] for Prometheus metrics data
26-
* Configuring the Alertmanager to send xref:../../monitoring/managing-alerts.adoc#sending-notifications-to-external-systems_managing-alerts[alert notifications] to external systems
27-
* Collecting `must-gather` data for xref:../../support/gathering-cluster-data.adoc#support_gathering_data_gathering-cluster-data[{product-title}]
28-
* Collecting `must-gather` data for link:https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/4.10/html-single/troubleshooting_openshift_data_foundation/index#downloading-log-files-and-diagnostic-information_rhodf[{rh-storage-first}].
29-
* Collecting `must-gather` data for xref:../../virt/logging_events_monitoring/virt-collecting-virt-data.adoc#virt-using-virt-must-gather_virt-collecting-virt-data[{VirtProductName}]
30-
* Collecting Prometheus metrics for xref:../../monitoring/managing-metrics.adoc#querying-metrics-for-all-projects-as-an-administrator_managing-metrics[all projects] as a cluster administrator
23+
include::modules/gathering-data-specific-features.adoc[leveloffset=+1]
3124

32-
include::modules/virt-collecting-data-about-vms.adoc[leveloffset=+1]
33-
34-
[id="additional-resources_collecting-data-about-vms"]
35-
[role="_additional-resources"]
36-
=== Additional resources
37-
* Installing xref:../../virt/virtual_machines/virt-installing-qemu-guest-agent.adoc#virt-installing-virtio-drivers-existing-windows_virt-installing-qemu-guest-agent[VirtIO drivers] on Windows VMs
38-
* Downloading and installing link:https://access.redhat.com/solutions/6957701[VirtIO drivers] on Windows VMs without host access
39-
* Connecting to Windows VMs with RDP using the xref:../../virt/virtual_machines/virt-accessing-vm-consoles.adoc#virt-vm-rdp-console-web_virt-accessing-vm-consoles[web console] or the xref:../../virt/virtual_machines/virt-accessing-vm-consoles.adoc#virt-accessing-rdp-console_virt-accessing-vm-consoles[command line]
40-
* Collecting `must-gather` data about xref:../../virt/logging_events_monitoring/virt-collecting-virt-data.adoc#virt-must-gather-options_virt-collecting-virt-data[virtual machines]
41-
// * Collecting virtual machine memory dumps. [link TBD. CNV-20256]
42-
43-
include::modules/virt-using-virt-must-gather.adoc[leveloffset=+1]
44-
45-
include::modules/virt-must-gather-options.adoc[leveloffset=+2]
46-
47-
[id="additional-resources_must-gather-virt"]
48-
[role="_additional-resources"]
49-
=== Additional resources
50-
* xref:../../support/gathering-cluster-data.adoc#about-must-gather_gathering-cluster-data[About the `must-gather` tool]
25+
include::modules/virt-must-gather-usage-targeted-vm-data.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)