Bug 2128948
| Summary: | Cannot create DataSource from default YAML | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Container Native Virtualization (CNV) | Reporter: | Guohua Ouyang <gouyang> | ||||
| Component: | User Experience | Assignee: | Matan Schatzman <mschatzm> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Guohua Ouyang <gouyang> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 4.12.0 | CC: | gouyang, lkladnit, mschatzm | ||||
| Target Milestone: | --- | ||||||
| Target Release: | 4.12.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: | 2023-01-24 13:41:07 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: | |||||||
| Attachments: |
|
||||||
Tried to verify on v4.12.0-127 - nothing changed, the default YAML is the same, and DS still can't be created. Tried to verify on v4.12.0-127 - nothing changed, the default YAML is the same, and DS still can't be created. The default YAML is not sufficient, should be like:
```
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataSource
metadata:
name: ds-example
namespace: default
spec:
source:
pvc:
name: ds-example
namespace: default
```
Verified on v4.12.0-131 The name should probably be "ds-example", as in other YAML-generated entities. 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 (Important: OpenShift Virtualization 4.12.0 Images 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-2023:0408 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |
Created attachment 1913428 [details] error while creating DS from yaml Description of problem: Cannot create DataSource from default YAML. Default YAML content: apiVersion: cdi.kubevirt.io/v1beta1 kind: DataSource metadata: name: example namespace: default spec: {} Error on UI: Error "Required value" for field "spec.source". Version-Release number of selected component (if applicable): v4.12 How reproducible: Steps to Reproduce: 1. Create DataSource from YAML 2. 3. Actual results: Error "Required value" for field "spec.source" Expected results: provide an usable example YAML for dataSource Additional info: