Bug 1911617
| Summary: | [CNV][UI] Failure to add source to VM template when no default storage class is defined | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Chen Yosef <cyosef> |
| Component: | Console Kubevirt Plugin | Assignee: | Gilad Lekner <glekner> |
| Status: | CLOSED ERRATA | QA Contact: | Guohua Ouyang <gouyang> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.7 | CC: | aos-bugs, glekner, gouyang, yzamir |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | 4.7.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: | 2021-02-24 15:49:11 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
Chen Yosef
2020-12-30 12:01:09 UTC
It should be duplicated with https://bugzilla.redhat.com/show_bug.cgi?id=1908180. *** This bug has been marked as a duplicate of bug 1908180 *** re-opening: this bug is about a specific case when we have no default storage class, 1908180 fixes the case when we have a default storage class @yzamir Additional info. When I don't modify the storage class field, this is the request sent to the backend for creating the DV:
{"kind":"DataVolume","apiVersion":"cdi.kubevirt.io/v1alpha1","metadata":{"name":"rhel8","namespace":"openshift-virtualization-os-images"},"spec":{"pvc":{"resources":{"requests":{"storage":"3Gi"}},"accessModes":["ReadWriteOnce"],"volumeMode":"Filesystem"},"source":{"http":{"url":"https://download.fedoraproject.org/pub/fedora/linux/releases/33/Cloud/x86_64/images/Fedora-Cloud-Base-33-1.2.x86_64.raw.xz"}}}}
While if I explicitly select a storage class from the drop down list in the storage class field, you can see it is sent to the backend:
{"kind":"DataVolume","apiVersion":"cdi.kubevirt.io/v1alpha1","metadata":{"name":"fedora","namespace":"openshift-virtualization-os-images"},"spec":{"pvc":{"resources":{"requests":{"storage":"20Gi"}},"storageClassName":"standard","accessModes":["ReadWriteOnce"],"volumeMode":"Filesystem"},"source":{"http":{"url":"https://download.fedoraproject.org/pub/fedora/linux/releases/33/Cloud/x86_64/images/Fedora-Cloud-Base-33-1.2.x86_64.raw.xz"}}}}
verified on latest 4.7, when no default sc defined, the first SC in the list is used. In QE environment, the first SC on UI is ocs-storagecluster-ceph-rbd, and upload source for template is successful. 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.7.0 security, bug fix, and enhancement 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-2020:5633 |