Bug 1883468

Summary: Validation rules for disk bus fail
Product: Container Native Virtualization (CNV) Reporter: Andrej Krejcir <akrejcir>
Component: SSPAssignee: Andrej Krejcir <akrejcir>
Status: CLOSED ERRATA QA Contact: Sarah Bennert <sbennert>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 2.5.0CC: cnv-qe-bugs, ipinto, ksimon, oyahud, rnetser, tjelinek
Target Milestone: ---   
Target Release: 2.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kubevirt-ssp-operator-container-v2.5.0-50 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-17 13:24:55 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
Failing VM none

Description Andrej Krejcir 2020-09-29 10:28:12 UTC
Created attachment 1717491 [details]
Failing VM

Description of problem:
Validation rules fail when trying to create a VM from the attached YAML:

* .spec.domain.devices.disks[*].disk.bus: disk bus has to be either virtio or sata: Some of [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] are not in [virtio, sata]


Version-Release number of selected component (if applicable):
common-templates v0.12.1
kubevirt-template-validator v0.7.0

Comment 1 Andrej Krejcir 2020-10-01 09:04:28 UTC
The PR has been merged.

There is another problem related to this bug, but it is not urgent.
I will open a new bug for it.

Comment 2 Israel Pinto 2020-10-08 10:22:10 UTC
Verify with:  hyperconverged-cluster-operator-container-v2.5.0-43
Tested the following:
Case 1: Array
- disk:
   bus: [s,]
Output:
#oc process -f ~/cnv_yamls/fedora_test.yaml | oc create -f -                                                                           
The  "" is invalid: : spec.template.spec.domain.devices.disks.disk.bus in body must be of type string: "array"

Case 2: Null
- disk:
    bus: 
Output:
#oc process -f ~/cnv_yamls/fedora_test.yaml | oc create -f -                                                                              
The  "" is invalid: : spec.template.spec.domain.devices.disks.disk.bus in body must be of type string: "null"

Comment 5 errata-xmlrpc 2020-11-17 13:24:55 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 (OpenShift Virtualization 2.5.0 Images), 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/RHEA-2020:5127