-
Bug
-
Resolution: Done
-
None
-
Incidents & Support
-
0.42
-
False
-
-
False
-
NEW
-
-
-
Important
-
None
Description of problem:
Virtual machines => Create => From template => Select a template => Customize virtual machine => boot from CD => PVC (clone PVC) and select a PVC and create a VM.
The VM creation is failing with the error below:
~~~
4s Warning FailedDataVolumeCreate virtualmachine/windows-bn7fwu Error creating DataVolume windows-bn7fwu-installation-cdrom: admission webhook "datavolume-validate.cdi.kubevirt.io" denied the request: Missing Data volume PVC
~~~
It is not populating the "storage" definitions for the new cdrom PVC:
~~~
oc get vm windows-bn7fwu -o yaml|yq '.spec.dataVolumeTemplates'
- apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
annotations:
cdi.kubevirt.io/storage.bind.immediate.requested: "true"
creationTimestamp: null
name: windows-bn7fwu
spec:
source:
blank: {}
storage:
resources:
requests:
storage: 60Gi - metadata:
creationTimestamp: null
name: windows-bn7fwu-installation-cdrom <== no "storage" def for cdrom
spec:
source:
pvc:
name: windows-k8qslpihockyrr3r
namespace: default
~~~
Version-Release number of selected component (if applicable):
OpenShift Virtualization 4.13.3
How reproducible:
100%
Steps to Reproduce:
1.
Virtual machines => Create => From template => Select a template => Customize virtual machine => boot from CD => PVC (clone PVC) and select a PVC and create a VM.
Actual results:
Boot from CD with CD source "PVC (clone PVC)" not failing with error Missing Data volume PVC"
Expected results:
Boot from CD with CD source "PVC (clone PVC)" should work
Additional info:
- external trackers
- links to
- mentioned on