Skip to content

Commit d3fcf07

Browse files
authored
Merge pull request #35268 from bgaydosrh/CNV-13252
CNV-13252: BZ1987068 Adding Prereqs warning of provider limitations
2 parents 1c39596 + f055583 commit d3fcf07

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

modules/virt-customizing-storage-profile.adoc

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66

77
= Customizing the storage profile
88

9-
You can customize any storage profile. Use the `spec` section of the storage profile to provide specific attributes when creating an underlying persistent volume claim (PVC) for a data volume.
9+
You can specify default parameters by editing the `StorageProfile` object for the provisioner's storage class. These default parameters only apply to the persistent volume claim (PVC) if they are not configured in the `DataVolume` object.
10+
11+
.Prerequisites
12+
* Ensure that your planned configuration is supported by the storage class and its provider. Specifying an incompatible configuration in a storage profile causes volume provisioning to fail.
1013

1114
[NOTE]
1215
====
@@ -19,21 +22,21 @@ If you create a data volume and omit YAML attributes and these attributes are no
1922
====
2023

2124
.Procedure
22-
. Edit the storage profile. In this example, the provisioner is not recognized by the CDI:
25+
. Edit the storage profile. In this example, the provisioner is not recognized by CDI:
2326
+
2427
[source,terminal]
2528
----
2629
$ oc edit -n openshift-cnv storageprofile <storage_class>
2730
----
2831
+
29-
.Example output
30-
[source,terminal]
32+
.Example storage profile
33+
[source,yaml]
3134
----
3235
apiVersion: cdi.kubevirt.io/v1beta1
3336
kind: StorageProfile
3437
metadata:
3538
name: <some_unknown_provisioner_class>
36-
...
39+
# ...
3740
spec: {}
3841
status:
3942
provisioner: <some_unknown_provisioner>
@@ -42,25 +45,25 @@ status:
4245
+
4346
. Provide the needed attribute values in the storage profile:
4447
+
45-
.Example output
46-
[source,terminal]
48+
.Example storage profile
49+
[source,yaml]
4750
----
4851
apiVersion: cdi.kubevirt.io/v1beta1
4952
kind: StorageProfile
5053
metadata:
5154
name: <some_unknown_provisioner_class>
52-
...
55+
# ...
5356
spec:
5457
claimPropertySets:
5558
- accessModes:
56-
- ReadWriteOnce <1>
59+
- ReadWriteOnce <1>
5760
volumeMode:
5861
Filesystem <2>
5962
status:
6063
provisioner: <some_unknown_provisioner>
6164
storageClass: <some_unknown_provisioner_class>
6265
----
6366
<1> The `accessModes` that you select.
64-
<2> The `volmumeMode` that you select.
67+
<2> The `volumeMode` that you select.
6568
+
6669
After you save your changes, the selected values appear in the storage profile `status` element.

0 commit comments

Comments
 (0)