Bug 1660850

Summary: Cannot create virtualmachine from provision source URL
Product: Container Native Virtualization (CNV) Reporter: Guohua Ouyang <gouyang>
Component: User ExperienceAssignee: Tomas Jelinek <tjelinek>
Status: CLOSED DUPLICATE QA Contact: Guohua Ouyang <gouyang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.4CC: cnv-qe-bugs, gouyang, qixuan.wang, rawagner
Target Milestone: ---   
Target Release: ---   
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: 2019-01-04 08:15:52 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 Guohua Ouyang 2018-12-19 11:35:42 UTC
Description of problem:
Cannot create virtualmachine from provision source URL, the error on the confirm page is 'Error "spec.dataVolumeTemplates.status in body is required" for field "undefined"'.

Didn't see this issue with kubevirt-web-ui:v1.4.0-5 + kubevirt v0.11.0

Version-Release number of selected component (if applicable):
kubevirt-web-ui:v1.4.0-7 
kubevirt v0.11.0

How reproducible:


Steps to Reproduce:
1. 
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Guohua Ouyang 2018-12-20 07:33:40 UTC
If create a template with URL as the source, and create vm from the template, it also meet this error.

Comment 3 Rastislav Wagner 2019-01-03 15:12:42 UTC
Just to make sure, can you try CLI oc create on 

apiVersion: kubevirt.io/v1alpha2
kind: VirtualMachine
metadata:
  labels:
    kubevirt.io/vm: vm-alpine-datavolume
  name: vm-alpine-datavolume
spec:
  running: false
  template:
    metadata:
      labels:
        kubevirt.io/vm: vm-alpine-datavolume
    spec:
      domain:
        devices:
          disks:
          - disk:
              bus: virtio
            name: datavolumedisk1
            volumeName: datavolumevolume1
        resources:
          requests:
            memory: 64M
      volumes:
      - dataVolume:
          name: alpine-dv
        name: datavolumevolume1
  dataVolumeTemplates:
  - metadata:
      name: alpine-dv
    spec:
      pvc:
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 2Gi
      source:
        http:
          url: http://cdi-http-import-server.kubevirt/images/alpine.iso

if it still fails then It is the same issue as https://bugzilla.redhat.com/show_bug.cgi?id=1663238

Comment 4 Guohua Ouyang 2019-01-04 00:58:51 UTC
Create VM from above example meet error 'The  "" is invalid: : spec.dataVolumeTemplates.status in body is required'.
Feel free to close the bug if it's the same bug with 1663238

Comment 5 Tomas Jelinek 2019-01-04 08:15:52 UTC

*** This bug has been marked as a duplicate of bug 1663238 ***