Bug 2128948

Summary: Cannot create DataSource from default YAML
Product: Container Native Virtualization (CNV) Reporter: Guohua Ouyang <gouyang>
Component: User ExperienceAssignee: Matan Schatzman <mschatzm>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.12.0CC: 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:
Description Flags
error while creating DS from yaml none

Description Guohua Ouyang 2022-09-22 04:38:05 UTC
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:

Comment 1 Leon Kladnitsky 2022-09-28 17:06:37 UTC
Tried to verify on v4.12.0-127 - nothing changed, the default YAML is the same, and DS still can't be created.

Comment 2 Leon Kladnitsky 2022-09-28 18:04:01 UTC
Tried to verify on v4.12.0-127 - nothing changed, the default YAML is the same, and DS still can't be created.

Comment 3 Leon Kladnitsky 2022-09-29 15:14:29 UTC
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
```

Comment 4 Leon Kladnitsky 2022-10-06 00:15:35 UTC
Verified on v4.12.0-131

Comment 6 Leon Kladnitsky 2022-10-06 07:04:56 UTC
The name should probably be "ds-example", as in other YAML-generated entities.

Comment 9 errata-xmlrpc 2023-01-24 13:41:07 UTC
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

Comment 10 Red Hat Bugzilla 2023-09-19 04:26:50 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days