Bug 1882983
Summary: | oVirt csi driver should refuse to provision RWX and ROX PV | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Qin Ping <piqin> |
Component: | Installer | Assignee: | Vojtech Juranek <vjuranek> |
Installer sub component: | OpenShift on RHV | QA Contact: | michal <mgold> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | low | CC: | aos-bugs, bzlotnik, emarcus, jpasztor, jsafrane, mburman, pelauter, vjuranek |
Version: | 4.6 | ||
Target Milestone: | --- | ||
Target Release: | 4.10.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Previously, the oVirt csi driver allowed selecting ROX and RWX access modes when creating a PVC from a config file.
In this release, an error message is displayed when trying to create a PVC with read/write many access mode, and the operation is not allowed.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2022-03-12 04:34:40 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Qin Ping
2020-09-27 07:58:31 UTC
This looks like CSI driver issue. BTW, dynamic provisioning of ROX volumes does not make much sense, since the volume is empty and read-only empty volume is not really useful. It may get useful with cloning or snapshot restore (if oVirt supports attaching a read-only volume to multiple nodes). See here how Kubernetes PVC.Spec.AccessMode is translated into CSI capabilities: https://github.com/kubernetes-csi/external-provisioner/blob/8b0707649212d770624008edbd127f312121aff9/pkg/controller/controller.go#L395 due to capacity constraints we will be revisiting this bug in the upcoming sprint need more time for this one We can add a warning in the CSI driver logs for an unsupported accessmode due to capacity constraints we will be revisiting this bug in the upcoming sprint due to capacity constraints we will be revisiting this bug in the upcoming sprint Benny do you know when are you planning on taking this? (In reply to Gal Zaidman from comment #6) > due to capacity constraints we will be revisiting this bug in the upcoming > sprint > > Benny do you know when are you planning on taking this? Not currently, depends on progress with my RHV work Do we still need this now that we have block support? (In reply to Gal Zaidman from comment #8) > Do we still need this now that we have block support? yes, we have to mark RWX volumes as "Shared" in RHV and ocp: 4.10.0-0.nightly-2022-01-11-065245 1) create pvc with Access mode - ReadWriteMany 2) look on log of pod controller - excpected error appear: unsupported access mode MULTI_NODE_MULTI_WRITER, currently only RWO is supported pvc stuck on pending state but it's different bug as Vojech said This bug has mistakenly been linked to two PRs: https://github.com/openshift/ovirt-csi-driver/pull/100 https://github.com/openshift/ovirt-csi-driver/pull/101 PR #100 was merged into 4.10, #101 was merged into 4.11. Cloning this issue to track the 4.11 bug. The bug for the failing error code is 2043035 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:0056 |