Bug 1660850 - Cannot create virtualmachine from provision source URL
Summary: Cannot create virtualmachine from provision source URL
Keywords:
Status: CLOSED DUPLICATE of bug 1663238
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 1.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Tomas Jelinek
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-19 11:35 UTC by Guohua Ouyang
Modified: 2019-01-04 08:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-04 08:15:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


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