12
12
[id="meaning-cdidatavolumeunusualrestartcount"]
13
13
== Meaning
14
14
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.
17
16
18
17
[discrete]
19
18
[id="impact-cdidatavolumeunusualrestartcount"]
20
19
== Impact
21
20
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.
26
24
27
25
[discrete]
28
26
[id="diagnosis-cdidatavolumeunusualrestartcount"]
29
27
== Diagnosis
30
28
31
- . Obtain the name and namespace of the data volume :
29
+ . Find Containerized Data Importer (CDI) pods with more than three restarts :
32
30
+
33
31
[source,terminal]
34
32
----
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"}'
46
35
----
47
36
48
37
. Obtain the details of the pods:
@@ -56,7 +45,7 @@ $ oc -n <namespace> describe pods <pod>
56
45
+
57
46
[source,terminal]
58
47
----
59
- $ oc -n <namespace> describe logs <pod>
48
+ $ oc -n <namespace> logs <pod>
60
49
----
61
50
62
51
[discrete]
@@ -65,6 +54,6 @@ $ oc -n <namespace> describe logs <pod>
65
54
66
55
Delete the data volume, resolve the issue, and create a new data volume.
67
56
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