Bug 1523251

Summary: hammer compute-resource create missing 'quote-id' for ovirt resource
Product: Red Hat Satellite Reporter: David Sirrine <dsirrine>
Component: Compute Resources - RHEVAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.3.0CC: akarsale, dhlavacd, inecas, kgaikwad, mshira, orabin, rabajaj, tstrachota
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-10 13:58:26 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:    
Bug Blocks: 1115190    
Attachments:
Description Flags
.tar.gz containing all logs and screenshots none

Description David Sirrine 2017-12-07 14:20:02 UTC
Description of problem:
When creating rhv compute resource via hammer cli, UI throws warnings and does not show all resources available within compute resource until quota id is set manually. 

Version-Release number of selected component (if applicable):
tfm-rubygem-hammer_cli_katello-0.11.3.1-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.12-1.fm1_15.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_admin-0.0.7-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.6-2.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_remote_execution-0.0.6-1.fm1_15.el7sat.noarch
tfm-rubygem-hammer_cli-0.11.0.1-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3.3-2.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_openscap-0.1.5-1.fm1_15.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_discovery-1.0.0-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman-0.11.0.3-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_virt_who_configure-0.0.3-1.el7sat.noarch
tfm-rubygem-hammer_cli_csv-2.3.0-1.el7sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create compute resource with the following:

hammer compute-resource create \
     --datacenter $rhv_datacenter \
     --locations $sat_location \
     --name rhvm \
     --organizations $sat_org \
     --password $ovirt_password \
     --provider Ovirt \
     --url https://rhvm.example.com/ovirt-engine/api/v3 \
     --user $ovirt_user

2. Browse to Infrastructure -> Compute resources

3. Click on newly created resource name (in this case, rhvm)

Actual results:
Throws warning:

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

Doesn't display Virtual Machines


Expected results:
No warnings and displays all resources as expected. 

Additional info:
See attached logs, screenshots, and foreman-debug

Comment 1 David Sirrine 2017-12-07 14:21:48 UTC
Correction: You have to "Test connection" before you can set the quota id

Comment 2 David Sirrine 2017-12-07 14:25:18 UTC
Created attachment 1364335 [details]
.tar.gz containing all logs and screenshots