Skip to content

Commit 91ef27f

Browse files
authored
Merge pull request #63536 from apinnick/CNV-32025
CNV- 32025: Update CDIDataVolumeUnusualRestartCount
2 parents 694ba12 + 022bd75 commit 91ef27f

File tree

1 file changed

+11
-22
lines changed

1 file changed

+11
-22
lines changed

modules/virt-runbook-cdidatavolumeunusualrestartcount.adoc

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,26 @@
1212
[id="meaning-cdidatavolumeunusualrestartcount"]
1313
== Meaning
1414

15-
This alert fires when a `DataVolume` object restarts more than three
16-
times.
15+
This alert fires when a `DataVolume` object restarts more than three times.
1716

1817
[discrete]
1918
[id="impact-cdidatavolumeunusualrestartcount"]
2019
== Impact
2120

22-
Data volumes are responsible for importing and creating a virtual
23-
machine disk on a persistent volume claim. If a data volume restarts
24-
more than three times, these operations are unlikely to succeed. You
25-
must diagnose and resolve the issue.
21+
Data volumes are responsible for importing and creating a virtual machine disk
22+
on a persistent volume claim. If a data volume restarts more than three times,
23+
these operations are unlikely to succeed. You must diagnose and resolve the issue.
2624

2725
[discrete]
2826
[id="diagnosis-cdidatavolumeunusualrestartcount"]
2927
== Diagnosis
3028

31-
. Obtain the name and namespace of the data volume:
29+
. Find Containerized Data Importer (CDI) pods with more than three restarts:
3230
+
3331
[source,terminal]
3432
----
35-
$ oc get dv -A -o json | jq -r '.items[] | \
36-
select(.status.restartCount>3)' | jq '.metadata.name, .metadata.namespace'
37-
----
38-
39-
. Check the status of the pods associated with the data volume:
40-
+
41-
[source,terminal]
42-
----
43-
$ oc get pods -n <namespace> -o json | jq -r '.items[] | \
44-
select(.metadata.ownerReferences[] | \
45-
select(.name=="<dv_name>")).metadata.name'
33+
$ oc get pods --all-namespaces -l app=containerized-data-importer \
34+
-o=jsonpath='{range .items[?(@.status.containerStatuses[0].restartCount>3)]}{.metadata.name}{"/"}{.metadata.namespace}{"\n"}'
4635
----
4736

4837
. Obtain the details of the pods:
@@ -56,7 +45,7 @@ $ oc -n <namespace> describe pods <pod>
5645
+
5746
[source,terminal]
5847
----
59-
$ oc -n <namespace> describe logs <pod>
48+
$ oc -n <namespace> logs <pod>
6049
----
6150

6251
[discrete]
@@ -65,6 +54,6 @@ $ oc -n <namespace> describe logs <pod>
6554

6655
Delete the data volume, resolve the issue, and create a new data volume.
6756

68-
If you cannot resolve the issue, log in to the link:https://access.redhat.com[Customer
69-
Portal] and open a support case,
70-
attaching the artifacts gathered during the diagnosis procedure.
57+
If you cannot resolve the issue, log in to the
58+
link:https://access.redhat.com[Customer Portal] and open a support case,
59+
attaching the artifacts gathered during the Diagnosis procedure.

0 commit comments

Comments
 (0)