Bug 1883468 - Validation rules for disk bus fail
Summary: Validation rules for disk bus fail
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: SSP
Version: 2.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 2.5.0
Assignee: Andrej Krejcir
QA Contact: Sarah Bennert
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-29 10:28 UTC by Andrej Krejcir
Modified: 2020-11-17 13:25 UTC (History)
6 users (show)

Fixed In Version: kubevirt-ssp-operator-container-v2.5.0-50
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-17 13:24:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Failing VM (2.58 KB, text/plain)
2020-09-29 10:28 UTC, Andrej Krejcir
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt common-templates pull 235 0 None closed Fix validation for disks 2020-11-17 16:24:45 UTC
Red Hat Product Errata RHEA-2020:5127 0 None None None 2020-11-17 13:25:06 UTC

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


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