Bug 1643938

Summary: Expose ConversionHost through API
Product: Red Hat CloudForms Management Engine Reporter: Fabien Dupont <fdupont>
Component: APIAssignee: Daniel Berger <dberger>
Status: CLOSED CURRENTRELEASE QA Contact: Yadnyawalk Tale <ytale>
Severity: high Docs Contact:
Priority: high    
Version: 5.10.0CC: bthurber, dberger, dmetzger, fdupont, obarenbo, simaishi, ytale
Target Milestone: GA   
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: v2v
Fixed In Version: 5.10.0.28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-12 16:49:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1622728, 1643558, 1650699, 1651543    

Description Fabien Dupont 2018-10-29 13:39:28 UTC
The ConversionHost model has been implemented in manageiq, but no API endpoint exist to manipulate it. At least, it would be useful to CRUD the object and associate it to Host or Vm.

Comment 2 Dave Johnson 2018-10-29 13:45:29 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 5 Daniel Berger 2018-12-04 03:31:14 UTC
Yes, we have basic CRUD now at least, plus tagging.

https://github.com/ManageIQ/manageiq-api/pull/513

I haven't added a resource subcollection to associate hosts or vms yet, so I'll leave this open for now.

Comment 6 Daniel Berger 2018-12-11 20:33:47 UTC
I decided against adding subcollections, since there's only one resource per conversion host. Instead, if you want access to the resource, you can point at /api/conversion_hosts/:id?attributes=resource&expand=resources.

Moving to POST.

Comment 10 Yadnyawalk Tale 2018-12-28 08:35:22 UTC
Tested it and conversion hosts APIs works well. I had few questions and I have asked that here on requirement doc.
https://docs.google.com/a/redhat.com/document/d/1L8oc5Uj-WM0RfRy7XaW5meGUZxHebsdQx09ZEF2zekA/edit?disco=AAAACd9crKU
https://docs.google.com/a/redhat.com/document/d/1L8oc5Uj-WM0RfRy7XaW5meGUZxHebsdQx09ZEF2zekA/edit?disco=AAAACd9crKY

Tested GET, PATCH, DELETE. All works well.
Verified on - 5.10.0.30.