Bug 1695924

Summary: The ConversionHost#enable_queue method is looking for the wrong parameter
Product: Red Hat CloudForms Management Engine Reporter: Daniel Berger <dberger>
Component: V2VAssignee: Fabien Dupont <fdupont>
Status: CLOSED CURRENTRELEASE QA Contact: Shveta <sshveta>
Severity: urgent Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.10.2CC: bthurber, simaishi, sshveta
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/ManageIQ/manageiq/pull/18419
Whiteboard:
Fixed In Version: 5.11.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1702021 (view as bug list) Environment:
Last Closed: 2019-12-13 15:16:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: V2V Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1702021    

Description Daniel Berger 2019-04-03 22:34:20 UTC
The manageiq-api code was changed to send a "resource" parameter instead of "resource_id" and "resource_type" separately. For the code to work properly, it needs to look for "resource".

The resource_id and resource_type are then parsed out and passed along to the task as args.

Current behavior: the enable_queue method will fail.

Expected behavior: the enable_queue method will work, and the resource_id and resource_type methods will be set properly.

To duplicate: attempt to create a conversion host without a resource param.

Comment 4 Shveta 2019-05-20 20:57:37 UTC
Resource is sent as parameter.
Configuring a conversion_host: operation=enable resource=(name: env-rhv43-01.cfme2.lab.eng.rdu2.redhat.com type: ManageIQ::Providers::Redhat::InfraManager::Host id: 3)
Verified in 5.11.0.4.20190514210444_0c91ee1