Bug 1816654

Summary: [CNV&RHV] adding provider with already created vm failed
Product: Red Hat Enterprise Virtualization Manager Reporter: Pavol Brilla <pbrilla>
Component: java-client-kubevirtAssignee: Piotr Kliczewski <pkliczew>
Status: CLOSED ERRATA QA Contact: Pavol Brilla <pbrilla>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4.0CC: lleistne, lsurette, mhicks, mperina, mtessun, srevivo
Target Milestone: ovirt-4.4.1   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: rhv-4.4.1-3 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-04 13:22:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavol Brilla 2020-03-24 13:26:38 UTC
Description of problem:
Adding cnv provider to rhv with existing vm failed

Version-Release number of selected component (if applicable):
4.4.0-26

How reproducible:
100

Steps to Reproduce:
1. create vm in cnv  
2. add cnv provider to rhv
3. 

Actual results:
adding provider failed

Expected results:
adding provider should succeded

Additional info:
2020-03-24 14:18:47,639+01 ERROR [org.ovirt.engine.core.bll.provider.AddProviderCommand] (default task-6) [50c1926] Command 'org.ovirt.engine.core.bll.provider.AddProviderCommand' failed: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1297 path $.items[0].spec.dataVolumeTemplates[0].spec.pvc.volumeMode
2020-03-24 14:18:47,639+01 ERROR [org.ovirt.engine.core.bll.provider.AddProviderCommand] (default task-6) [50c1926] Exception: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1297 path $.items[0].spec.dataVolumeTemplates[0].spec.pvc.volumeMode


will add also vm definition

Comment 5 Pavol Brilla 2020-07-09 17:41:51 UTC
Software Version:4.4.1.5-0.17.el8ev


provider with existing vm added succesfully

Comment 7 errata-xmlrpc 2020-08-04 13:22:04 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 (Important: RHV Manager (ovirt-engine) 4.4 security, bug fix, and enhancement update), 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/RHSA-2020:3247