Bug 1769303

Summary: Creation of a VM with in-page VM Wizard fails due to mutatevirtualmachines.example.com request denial
Product: OpenShift Container Platform Reporter: Radim Hrazdil <rhrazdil>
Component: Console Kubevirt PluginAssignee: Marek Libra <mlibra>
Status: CLOSED ERRATA QA Contact: Radim Hrazdil <rhrazdil>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: aos-bugs, mlibra
Target Milestone: ---   
Target Release: 4.3.0   
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: 2020-01-23 11:11:16 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:
Attachments:
Description Flags
VM YAML none

Description Radim Hrazdil 2019-11-06 11:00:58 UTC
Created attachment 1633244 [details]
VM YAML

Description of problem:
Creation of a VM with in-page VM Wizard fails due to the following error:

admission webhook "mutatevirtualmachines.example.com" denied the request: v1.VirtualMachine.Spec: v1.VirtualMachineSpec.DataVolumeTemplates: []v1alpha1.DataVolume: v1alpha1.DataVolume.Spec: v1alpha1.DataVolumeSpec.PVC: v1.PersistentVolumeClaimSpec.AccessModes: []v1.PersistentVolumeAccessMode: decode slice: expect [ or n, but found ", error found in #10 byte of ...|ssModes":"ReadWriteM|..., bigger context ...|"testurl-rootdisk"},"spec":{"pvc":{"accessModes":"ReadWriteMany","resources":{"requests":{"storage":|...



Version-Release number of selected component (if applicable):
cluster with version 4.3.0-0.nightly-2019-10-29-140935
UI running locally from current openshift/console master branch

How reproducible:
100%

Steps to Reproduce:
1. Create a VM via VM Wizard, for exact config see the attached VM yaml
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Marek Libra 2019-11-06 11:50:02 UTC
How to fix: after redesign of the wizard, the DV/PVC accessModes is provided with just a single value instead of wrapping it into an array ("[]").

Comment 3 Radim Hrazdil 2019-11-29 10:14:51 UTC
Verified 4.3.0-0.nightly-2019-11-21-122827

Comment 5 errata-xmlrpc 2020-01-23 11:11:16 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, 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/RHBA-2020:0062