storagecapabilities: add OpenEBS Replicated PV Mayastor #4286
Hi @krishnaGajabi. Thanks for your PR.
PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.
I understand the commands that are listed here.
<details>
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
</details>
/test all

coverage: 49.8% (-0.01%) from 49.812% — krishnaGajabi:openebs-mayastor-storageprofile into kubevirt:main
/test pull-containerized-data-importer-e2e-nfs
nit: I don't think there's need to duplicate this comment.
Thanks @krishnaGajabi.
Dropped the duplicate, Thanks @Acedus !!
Approved these changes.
looks good thanks! I think it's just worth to sanity check some of these old discussions around the repo about mayastor. The most interesting one was about a missing CSIDriver resource: https://github.com/kubevirt/containerized-data-importer/pull/3585#discussion_r1908375618
I just want to make sure it really starts clicking after the profile addition, if my memory serves me right, there were a couple of more issues with it.
looks good thanks! I think it's just worth to sanity check some of these old discussions around the repo about mayastor. The most interesting one was about a missing CSIDriver resource: #3585 (comment)
> I just want to make sure it really starts clicking after the profile addition, if my memory serves me right, there were a couple of more issues with it.
Mayastor still doesn't ship a CSIDriver object. Confirmed on my 2.11.1 cluster:kubectl get csidriver io.openebs.csi-mayastor returns NotFound, and there's no such template in
the chart. The other OpenEBS engines (LVM, ZFS, rawfile) all have one.
What that means for CDI:
looks for a
CSIDriver matching the storage class provisioner.doc/external-dv-population.md) is rejected for the same reason, unless the
source is a snapshot.
CSIDriver object.
So this PR doesn't depend on any of that. It just fills in the access modes and volume modes, and
makes RWX block classes usable. But you're right that it isn't the whole story — populators stay
off until Mayastor ships a CSIDriver.
That's an upstream fix and I'll take care of it, I'm an OpenEBS contributor.
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/kubevirt/containerized-data-importer/pull/4286#issuecomment-5855432582" title="Approved">akalenyu</a>
The full list of commands accepted by this bot can be found here.
The pull request process is described here
<details >
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
</details>
<!-- META={"approvers":[]} -->
Acedus
krishnaGajabi
What this PR does / why we need it:
Adds storage profile defaults for OpenEBS Replicated PV Mayastor (
io.openebs.csi-mayastor). It hadno entry, so its StorageClasses got an empty StorageProfile and
UnrecognizedProvisioner.Which issue(s) this PR fixes:
NONE
Special notes for your reviewer:
Mayastor accepts RWX only for Block volumes, and only when the StorageClass sets
rwxBlock(OpenEBS v4.5.0+, added for KubeVirt live migration); otherwise
CreateVolumerejects the accessmode (controller.rs,
context.rs).
So the capabilities are keyed off that parameter via
storageClassToProvisionerKeyMapper, asdriver.longhorn.io/migratablealready does.No clone strategy advised: the driver reports no
CLONE_VOLUMEbut does support snapshots, which iswhat the existing default already picks when a VolumeSnapshotClass is present.
Release note:
``
release-note
``Add StorageProfile defaults for the OpenEBS Replicated PV Mayastor provisioner, including RWX block volumes for StorageClasses with rwxBlock enabled