Skip to content

Commit 3b00f5c

Browse files
committed
CNV- 36240: CDINoDefaultStorageClass added
Signed-off-by: Avital Pinnick <[email protected]>
1 parent 7fedffb commit 3b00f5c

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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-CDINoDefaultStorageClass"]
9+
= CDINoDefaultStorageClass
10+
11+
[discrete]
12+
[id="meaning-cdinodefaultstorageclass"]
13+
== Meaning
14+
15+
This alert fires when no default {product-title} or
16+
{VirtProductName} storage class is defined.
17+
18+
[discrete]
19+
[id="impact-cdinodefaultstorageclass"]
20+
== Impact
21+
22+
If no default {product-title} or {VirtProductName} storage
23+
class is defined, a data volume requesting a default storage class (the storage
24+
class is not specified), remains in a "pending" state.
25+
26+
[discrete]
27+
[id="diagnosis-cdinodefaultstorageclass"]
28+
== Diagnosis
29+
30+
. Check for a default {product-title} storage class by running
31+
the following command:
32+
+
33+
[source,terminal]
34+
----
35+
$ oc get sc -o jsonpath='{.items[?(@.metadata.annotations.storageclass\.kubevirt\.io/is-default-class=="true")].metadata.name}'
36+
----
37+
38+
. Check for a default {VirtProductName} storage class by running
39+
the following command:
40+
+
41+
[source,terminal]
42+
----
43+
$ oc get sc -o jsonpath='{.items[?(@.metadata.annotations.storageclass\.kubevirt\.io/is-default-virt-class=="true")].metadata.name}'
44+
----
45+
46+
[discrete]
47+
[id="mitigation-cdinodefaultstorageclass"]
48+
== Mitigation
49+
50+
Create a default storage class for either {product-title} or
51+
{VirtProductName} or for both.
52+
53+
A default {VirtProductName} storage class has precedence over a default
54+
{product-title} storage class for creating a virtual machine disk image.
55+
56+
* Create a default {product-title} storage class by running
57+
the following command:
58+
+
59+
[source,terminal]
60+
----
61+
$ oc patch storageclass <storage-class-name> -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
62+
----
63+
64+
* Create a default {VirtProductName} storage class by running
65+
the following command:
66+
+
67+
[source,terminal]
68+
----
69+
$ oc patch storageclass <storage-class-name> -p '{"metadata": {"annotations":{"storageclass.kubevirt.io/is-default-virt-class":"true"}}}'
70+
----
71+
72+
If you cannot resolve the issue, log in to the
73+
link:https://access.redhat.com[Customer Portal] and open a support case,
74+
attaching the artifacts gathered during the diagnosis procedure.

virt/monitoring/virt-runbooks.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ include::modules/virt-runbook-cdidatavolumeunusualrestartcount.adoc[leveloffset=
1919

2020
include::modules/virt-runbook-cdimultipledefaultvirtstorageclasses.adoc[leveloffset=+1]
2121

22+
include::modules/virt-runbook-cdinodefaultstorageclass.adoc[leveloffset=+1]
23+
2224
include::modules/virt-runbook-cdinotready.adoc[leveloffset=+1]
2325

2426
include::modules/virt-runbook-cdioperatordown.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)