Bug 1583243

Summary: RHEV without Quota ID specified -> Traceback + Alert
Product: Red Hat Satellite Reporter: Lukáš Hellebrandt <lhellebr>
Component: Compute Resources - RHEVAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: inecas, lhellebr, orabin
Target Milestone: Unspecified   
Target Release: Unused   
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: 2018-06-18 11:52:31 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:
Bug Depends On: 1501927    
Bug Blocks:    

Description Lukáš Hellebrandt 2018-05-28 14:34:35 UTC
Description of problem:
When I create a RHEV Compute Resource without Quota ID (possible using Hammer, see also bug 1583242) and I open this CR in WebUI, I get an alert window saying

"""
DataTables warning: table id=DataTables_Table_5 - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1
"""

... and the attached traceback in production.log. Also, the Virtual Machines tab is not populated.

Version-Release number of selected component (if applicable):
Tested on Sat 6.4 snap 4

How reproducible:
Deterministic

Steps to Reproduce:
1. # hammer -u <satuser> -p <satpw> compute-resource create --provider ovirt --use-v4 <true_or_false> --url https://<url>/ovirt-engine/api --user <user> --password <password> --datacenter <datacenter> --name test-rhev
2. In WebUI: Infrastructure -> Compute Resources -> <resource>

Actual results:
Javascript alert() window with the above message and traceback.

Expected results:
Either this should work (and populate data) or (if Quota ID is required), the Satellite should both prevent this CR from being created and say some more user friendly message without traceback when the CR is open.

Comment 1 Brad Buckingham 2018-05-29 17:13:55 UTC
Hi Lukas,  Do you see the same on 6.3?

Comment 2 Lukáš Hellebrandt 2018-06-06 14:15:30 UTC
I haven't tested this on 6.3 yet but it seems to only happen when using RHEV API v3.

Comment 3 Lukáš Hellebrandt 2018-06-14 14:02:17 UTC
The same happens on 6.3.

Comment 4 orabin 2018-06-18 11:32:49 UTC
This is the same error seen in: https://bugzilla.redhat.com/show_bug.cgi?id=1501927.

This bug adds another way to reproduce the error.

Comment 5 orabin 2018-06-18 11:52:31 UTC
After testing with a possible fix for:  https://bugzilla.redhat.com/show_bug.cgi?id=1501927 It looks like the error is only due to the datacenter issue in 1501927.
Closing this as duplicate.

*** This bug has been marked as a duplicate of bug 1501927 ***