Skip to content

Commit

Permalink
OSDOCS-5179:Retroacitve default SC assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisa Pettyjohn committed Apr 5, 2023
1 parent 7b27f20 commit a88c65b
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions modules/persistent-storage-csi-sc-multiple-none.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// Module included in the following assemblies:
//
// persistent-storage-csi-sc-manage
//
:_content-type: PROCEDURE
[id="persistent-storage-csi-sc-multiple-none_{context}"]
= Absent or multiple default storage classes

== Multiple default storage classes
Multiple default storage classes can occur if you mark a non-default storage class as default and do not unset the existing default storage class, or you create a default storage class when a default storage class is already present. With multiple default storage classes present, any persistent volume claim (PVC) requesting the default storage class (`pvc.spec.storageClassName`=nil) gets the most recently created default storage class, regardless of the default status of that storage class, and the administrator receives an alert in the alerts dashboard that there are multiple default storage classes, `MultipleDefaultStorageClasses`.

== Absent default storage class
There are two possible scenarios where PVCs can attempt to use a non-existent default storage class:

* An administrator removes the default storage class or marks it as non-default, and then a user creates a PVC requesting the default storage class.

* During installation, the installer creates a PVC requesting the default storage class, which has not yet been created.

In the preceding scenarios, the PVCs remain in pending state indefinitely.

{product-title} provides a feature to retroactively assign the default storage class to PVCs, so that they do not remain in the pending state. With this feature enabled, PVCs requesting the default storage class that are created when no default storage classes exists, remain in the pending state until a default storage class is created, or one of the existing storage classes is declared the default. As soon as the default storage class is created or declared, the PVC gets the new default storage class.

:FeatureName: Retroactive default storage class assignment
include::snippets/technology-preview.adoc[leveloffset=+1]

=== Procedure

To enable retroactive default storage class assignment:

. Enable feature gates (see _Nodes_ → _Working with clusters_ → _Enabling features using feature gates_).
+
[IMPORTANT]
====
After turning on Technology Preview features using feature gates, they cannot be turned off. As a result, cluster upgrades are prevented.
====
+
The following configuration example enables retroactive default storage class assignment, and all other Technology Preview features:
+
[source, yaml]
----
apiVersion: config.openshift.io/v1
kind: FeatureGate
metadata:
name: cluster
spec:
featureSet: TechPreviewNoUpgrade <1>
...
----
<1> Enables retroactive default storage class assignment.

0 comments on commit a88c65b

Please sign in to comment.