Bug 1814215 - [CNV&RHV] Adding new provider to engine fails after succesfull test
Summary: [CNV&RHV] Adding new provider to engine fails after succesfull test
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.4.0
Hardware: All
OS: All
medium
medium
Target Milestone: ovirt-4.4.1
: ---
Assignee: Piotr Kliczewski
QA Contact: Pavol Brilla
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-17 11:53 UTC by Pavol Brilla
Modified: 2020-08-04 13:22 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-04 13:21:58 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Engine test is fine but adding provider failes (26.82 KB, image/png)
2020-03-17 11:53 UTC, Pavol Brilla
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:3247 0 None None None 2020-08-04 13:22:36 UTC
oVirt gerrit 107781 0 None MERGED Update kubevirt api definition 2020-07-09 17:38:10 UTC

Description Pavol Brilla 2020-03-17 11:53:30 UTC
Created attachment 1670787 [details]
Engine test is fine but adding provider failes

Description of problem:
After connection to cnv provider was succesfully tested, clicking on OK will result in internal engine error check picture

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

How reproducible:
100%

Steps to Reproduce:
1. add provider to engine
2. test correctness of information in fields by test button
3. Click OK to actually add provider to the engine

Actual results:
Internal engine error

Expected results:
Add provider to engine properly

Additional info:
access to env was provided to dev

Comment 1 Moti Asayag 2020-03-17 12:15:56 UTC
Please add (or paste) the content of the exception thrown in engine.log (or maybe even in server.log) when the action fails.

Comment 4 Piotr Kliczewski 2020-03-18 14:53:20 UTC
The issue with the provider is that it fails to parse existing vm definition:

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at l
ine 1 column 977 path $.items[0].spec.dataVolumeTemplates[0].spec.pvc.accessModes[0]

There is a discrepancy between api definition in kubevirt and kubernetes. This issue needs to be fixed in kubevirt first and we need to regenerate java client later.

@Stu should we open kubevirt specific BZ or github issue?

Comment 5 Piotr Kliczewski 2020-03-18 15:33:55 UTC
This BZ is dependent on https://github.com/kubevirt/kubevirt/issues/3177 once it is fixed we need to regenerate the client.

Comment 6 Piotr Kliczewski 2020-03-19 15:16:03 UTC
Proposed patch workarounds the issue so we do not need to wait on Kubevirt to resolve issue #3177.

Comment 9 Pavol Brilla 2020-07-09 17:39:27 UTC
Software Version:4.4.1.5-0.17.el8ev

provider added normally

Comment 11 errata-xmlrpc 2020-08-04 13:21:58 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


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