mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
CNV- 36240: CDINoDefaultStorageClass added
Signed-off-by: Avital Pinnick <apinnick@redhat.com>
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
6aac53bc91
commit
dff4ffd738
74
modules/virt-runbook-cdinodefaultstorageclass.adoc
Normal file
74
modules/virt-runbook-cdinodefaultstorageclass.adoc
Normal file
@@ -0,0 +1,74 @@
|
||||
// Do not edit this module. It is generated with a script.
|
||||
// Do not reuse this module. The anchor IDs do not contain a context statement.
|
||||
// Module included in the following assemblies:
|
||||
//
|
||||
// * virt/monitoring/virt-runbooks.adoc
|
||||
|
||||
:_mod-docs-content-type: REFERENCE
|
||||
[id="virt-runbook-CDINoDefaultStorageClass"]
|
||||
= CDINoDefaultStorageClass
|
||||
|
||||
[discrete]
|
||||
[id="meaning-cdinodefaultstorageclass"]
|
||||
== Meaning
|
||||
|
||||
This alert fires when no default {product-title} or
|
||||
{VirtProductName} storage class is defined.
|
||||
|
||||
[discrete]
|
||||
[id="impact-cdinodefaultstorageclass"]
|
||||
== Impact
|
||||
|
||||
If no default {product-title} or {VirtProductName} storage
|
||||
class is defined, a data volume requesting a default storage class (the storage
|
||||
class is not specified), remains in a "pending" state.
|
||||
|
||||
[discrete]
|
||||
[id="diagnosis-cdinodefaultstorageclass"]
|
||||
== Diagnosis
|
||||
|
||||
. Check for a default {product-title} storage class by running
|
||||
the following command:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc get sc -o jsonpath='{.items[?(@.metadata.annotations.storageclass\.kubevirt\.io/is-default-class=="true")].metadata.name}'
|
||||
----
|
||||
|
||||
. Check for a default {VirtProductName} storage class by running
|
||||
the following command:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc get sc -o jsonpath='{.items[?(@.metadata.annotations.storageclass\.kubevirt\.io/is-default-virt-class=="true")].metadata.name}'
|
||||
----
|
||||
|
||||
[discrete]
|
||||
[id="mitigation-cdinodefaultstorageclass"]
|
||||
== Mitigation
|
||||
|
||||
Create a default storage class for either {product-title} or
|
||||
{VirtProductName} or for both.
|
||||
|
||||
A default {VirtProductName} storage class has precedence over a default
|
||||
{product-title} storage class for creating a virtual machine disk image.
|
||||
|
||||
* Create a default {product-title} storage class by running
|
||||
the following command:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc patch storageclass <storage-class-name> -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
|
||||
----
|
||||
|
||||
* Create a default {VirtProductName} storage class by running
|
||||
the following command:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc patch storageclass <storage-class-name> -p '{"metadata": {"annotations":{"storageclass.kubevirt.io/is-default-virt-class":"true"}}}'
|
||||
----
|
||||
|
||||
If you cannot resolve the issue, log in to the
|
||||
link:https://access.redhat.com[Customer Portal] and open a support case,
|
||||
attaching the artifacts gathered during the diagnosis procedure.
|
||||
@@ -17,6 +17,8 @@ include::modules/virt-runbook-cdidatavolumeunusualrestartcount.adoc[leveloffset=
|
||||
|
||||
include::modules/virt-runbook-cdimultipledefaultvirtstorageclasses.adoc[leveloffset=+1]
|
||||
|
||||
include::modules/virt-runbook-cdinodefaultstorageclass.adoc[leveloffset=+1]
|
||||
|
||||
include::modules/virt-runbook-cdinotready.adoc[leveloffset=+1]
|
||||
|
||||
include::modules/virt-runbook-cdioperatordown.adoc[leveloffset=+1]
|
||||
|
||||
Reference in New Issue
Block a user