Skip to content

Commit a5593a7

Browse files
authored
Merge pull request #68463 from apinnick/CDIMultipleDefaultVirtStorageClasses-runbook
CNV- 35293: CDIMultipleDefaultVirtStorageClasses
2 parents b95b439 + 095f062 commit a5593a7

File tree

3 files changed

+54
-3
lines changed

3 files changed

+54
-3
lines changed

modules/virt-runbook-cdidatavolumeunusualrestartcount.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ these operations are unlikely to succeed. You must diagnose and resolve the issu
3030
+
3131
[source,terminal]
3232
----
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"}'
33+
$ oc get pods --all-namespaces -l app=containerized-data-importer -o=jsonpath='{range .items[?(@.status.containerStatuses[0].restartCount>3)]}{.metadata.name}{"/"}{.metadata.namespace}{"\n"}'
3534
----
3635

3736
. Obtain the details of the pods:
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Do not edit this module. It is generated with a script.
2+
// Do not reuse this module. The anchor IDs do not contain a context statement.
3+
// Module included in the following assemblies:
4+
//
5+
// * virt/monitoring/virt-runbooks.adoc
6+
7+
:_mod-docs-content-type: REFERENCE
8+
[id="virt-runbook-CDIMultipleDefaultVirtStorageClasses"]
9+
= CDIMultipleDefaultVirtStorageClasses
10+
11+
[discrete]
12+
[id="meaning-cdimultipledefaultvirtstorageclasses"]
13+
== Meaning
14+
15+
This alert fires when more than one storage class has the annotation
16+
`storageclass.kubevirt.io/is-default-virt-class: "true"`.
17+
18+
[discrete]
19+
[id="impact-cdimultipledefaultvirtstorageclasses"]
20+
== Impact
21+
22+
The `storageclass.kubevirt.io/is-default-virt-class: "true"` annotation
23+
defines a default {VirtProductName} storage class.
24+
25+
If more than one default {VirtProductName} storage class
26+
is defined, a data volume with no storage class specified
27+
receives the most recently created default storage class.
28+
29+
[discrete]
30+
[id="diagnosis-cdimultipledefaultvirtstorageclasses"]
31+
== Diagnosis
32+
33+
Obtain a list of default {VirtProductName} storage classes by running
34+
the following command:
35+
36+
[source,terminal]
37+
----
38+
$ oc get sc -o jsonpath='{.items[?(@.metadata.annotations.storageclass\.kubevirt\.io/is-default-virt-class=="true")].metadata.name}'
39+
----
40+
41+
[discrete]
42+
[id="mitigation-cdimultipledefaultvirtstorageclasses"]
43+
== Mitigation
44+
45+
Ensure that only one default {VirtProductName} storage class
46+
is defined by removing the annotation from the other storage classes.
47+
48+
If you cannot resolve the issue, log in to the
49+
link:https://access.redhat.com[Customer Portal] and open a support case, attaching
50+
the artifacts gathered during the diagnosis procedure.

virt/monitoring/virt-runbooks.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ You can use the procedures in these runbooks to diagnose and resolve issues that
1212

1313
{VirtProductName} alerts are displayed on the *Virtualization* -> *Overview* -> xref:../../virt/getting_started/virt-web-console-overview.adoc#overview-overview_virt-web-console-overview[*Overview* tab] in the web console.
1414

15+
1516
include::modules/virt-runbook-cdidataimportcronoutdated.adoc[leveloffset=+1]
1617

1718
include::modules/virt-runbook-cdidatavolumeunusualrestartcount.adoc[leveloffset=+1]
1819

20+
include::modules/virt-runbook-cdimultipledefaultvirtstorageclasses.adoc[leveloffset=+1]
21+
1922
include::modules/virt-runbook-cdinotready.adoc[leveloffset=+1]
2023

2124
include::modules/virt-runbook-cdioperatordown.adoc[leveloffset=+1]
@@ -115,4 +118,3 @@ include::modules/virt-runbook-virtoperatorresterrorshigh.adoc[leveloffset=+1]
115118
include::modules/virt-runbook-virtualmachinecrcerrors.adoc[leveloffset=+1]
116119

117120
include::modules/virt-runbook-vmcannotbeevicted.adoc[leveloffset=+1]
118-

0 commit comments

Comments
 (0)