Bug 2042274
| Summary: | Storage API should be used when creating a PVC | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Ruth Netser <rnetser> |
| Component: | Console Kubevirt Plugin | Assignee: | Aviv Turgeman <aturgema> |
| Status: | CLOSED ERRATA | QA Contact: | Guohua Ouyang <gouyang> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.10 | CC: | aos-bugs, aturgema, gouyang, rr.ave.n.xre.y.es |
| Target Milestone: | --- | ||
| Target Release: | 4.10.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-03-12 04:41:03 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: | |||
(very) nice to have, not a blocker verified on 4.10.0-0.nightly-2022-01-25-023600 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 When creating a Persistent Volume Claim (PVC), Storage APIs should be used to ensure that the correct amount of storage is provisioned in a Kubernetes-supported storage platform. Storage APIs allow users to specify the size of the PVC, as well as other parameters such as the access mode. By using Storage APIs to create a PVC, users can ensure that the requested storage is available and that the requester has the correct permissions to access it from this https://yttarps.com/ link. |
Description of problem: When creating a PVC from the UI, the created DV is using the PVC API (and not the storage API). Version-Release number of selected component (if applicable): CNV 4.10.0, OCP 4.10.0-fc.0 How reproducible: Steps to Reproduce: 1. From the UI, upload a PVC 2. 3. Actual results: The created DV is using the PVC API (and not the storage API). Expected results: Storage API should be used Additional info: Name: centos8 Namespace: default Labels: kubevirt.ui/cdrom=false Annotations: cdi.kubevirt.io/storage.bind.immediate.requested: true API Version: cdi.kubevirt.io/v1beta1 Kind: DataVolume Metadata: Creation Timestamp: 2022-01-18T10:42:26Z Generation: 66 Managed Fields: API Version: cdi.kubevirt.io/v1beta1 Fields Type: FieldsV1 fieldsV1: f:metadata: f:annotations: .: f:cdi.kubevirt.io/storage.bind.immediate.requested: f:labels: .: f:kubevirt.ui/cdrom: f:spec: .: f:pvc: .: f:accessModes: f:resources: .: f:requests: .: f:storage: f:storageClassName: f:volumeMode: f:source: .: f:upload: Manager: Mozilla Operation: Update Time: 2022-01-18T10:42:26Z API Version: cdi.kubevirt.io/v1beta1 Fields Type: FieldsV1 fieldsV1: f:status: .: f:conditions: f:phase: f:progress: Manager: virt-cdi-controller Operation: Update Time: 2022-01-18T10:42:26Z Resource Version: 4366120 UID: 5d3e5ba8-b854-4421-96a2-1601f1e2f31b Spec: Pvc: Access Modes: ReadWriteOnce Resources: Requests: Storage: 20Gi Storage Class Name: hostpath-provisioner Volume Mode: Filesystem Source: Upload: