Bug 2128948 - Cannot create DataSource from default YAML
Summary: Cannot create DataSource from default YAML
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.12.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.12.0
Assignee: Matan Schatzman
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-22 04:38 UTC by Guohua Ouyang
Modified: 2023-09-19 04:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-24 13:41:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
error while creating DS from yaml (193.85 KB, image/png)
2022-09-22 04:38 UTC, Guohua Ouyang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt-ui kubevirt-plugin pull 895 0 None Merged Bug 2128948: Missing source at datasource yaml 2022-09-28 16:50:39 UTC
Red Hat Issue Tracker CNV-21403 0 None None None 2023-01-24 12:51:23 UTC
Red Hat Product Errata RHSA-2023:0408 0 None None None 2023-01-24 13:41:16 UTC

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


Note You need to log in before you can comment on or make changes to this bug.