Currently…
kubectl get storageclass
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
csi-cinder-classic cinder.csi.openstack.org Delete Immediate true 244d
csi-cinder-high-speed (default) cinder.csi.openstack.org Delete Immediate true 244d
kubectl get volumesnapshotclass
NAME DRIVER DELETIONPOLICY AGE
csi-cinder-snapclass cinder.csi.openstack.org Delete 245d
csi-cinder-snapclass-in-use-v1 cinder.csi.openstack.org Delete 162d
csi-cinder-snapclass-v1 cinder.csi.openstack.org Delete 162d
k10-clone-csi-cinder-snapclass-in-use-v1 cinder.csi.openstack.org Retain 16d
kubectl get volumesnapshotclass csi-cinder-snapclass-v1 -o json
{
"apiVersion": "snapshot.storage.k8s.io/v1",
"deletionPolicy": "Delete",
"driver": "cinder.csi.openstack.org",
"kind": "VolumeSnapshotClass",
"metadata": {
"annotations": {
"k10.kasten.io/is-snapshot-class": "true"
},
"creationTimestamp": "2022-06-07T11:25:02Z",
"generation": 1,
"name": "csi-cinder-snapclass-v1",
"resourceVersion": "4744139956",
"uid": "c1b3f9a2-940b-4c6a-be6b-fd4c32f32664"
}
kubectl get volumesnapshotclass csi-cinder-snapclass-in-use-v1 -o json
{
"apiVersion": "snapshot.storage.k8s.io/v1",
"deletionPolicy": "Delete",
"driver": "cinder.csi.openstack.org",
"kind": "VolumeSnapshotClass",
"metadata": {
"annotations": {
"k10.kasten.io/is-snapshot-class": "true"
},
"creationTimestamp": "2022-06-07T11:25:03Z",
"generation": 1,
"name": "csi-cinder-snapclass-in-use-v1",
"resourceVersion": "5052736106",
"uid": "722f2170-0799-4458-a803-9055737ca308"
},
"parameters": {
"force-create": "true"
}
}
The above mentioned annotations work fine for me so far. BUT the kasten10 docs state that only one storageclass should have the annotation. But i need them for -v1 AND -v1-in-use class for snapshots to work. Is my setup still correct or do i just need to annotate csi-cinder-highspeed and dont annotate the snapclasses ? *confused*
And what is k10-clone-csi-cinder-snapclass-in-use-v1 for? It has been created by k10… do i really need it ?
Thx in advance..