Bug 1469305 - Execute ansible tower job from button fails
Summary: Execute ansible tower job from button fails
Keywords:
Status: CLOSED DUPLICATE of bug 1460316
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: API
Version: 5.8.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: GA
: cfme-future
Assignee: Gregg Tanzillo
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-10 22:47 UTC by Ryan Spagnola
Modified: 2021-03-11 15:26 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-14 19:04:56 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 2 Chris Kacerguis 2017-07-11 00:00:11 UTC
Gregg - Can you please take a look here?  Not sure if it is the API or something we are sending.  Please feel free to kick it back if all is working on the API side.

Comment 3 Gregg Tanzillo 2017-07-11 14:54:22 UTC
We can take a look. Are there logs that we can look at? Specifically, we'd need to see the contents of the API request that is causing the error. Thanks,

Comment 6 Jillian Tullo 2017-07-14 19:04:56 UTC
This is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1460316

[----] I, [2017-06-27T11:35:09.444328 #12073:15910b8]  INFO -- : MIQ(Api::ServicesController.log_request) Request:        {:method=>:post, :action=>"Demo job template", :fullpath=>"/api/services/99000000000375", :url=>"https://192.168.20.5/api/services/99000000000375", :base=>"https://192.168.20.5", :path=>"/api/services/99000000000375", :prefix=>"/api", :version=>"2.4.0", :api_prefix=>"https://192.168.20.5/api", :collection=>"services", :c_suffix=>"99000000000375", :c_id=>99000000000375, :subcollection=>nil, :s_id=>nil}
[----] I, [2017-06-27T11:35:09.445100 #12073:15910b8]  INFO -- : MIQ(Api::ServicesController.log_request) Parameters:     {"action"=>"update", "controller"=>"api/services", "format"=>"json", "body"=>{"action"=>"Demo job template", "resource"=>{}}}

was able to verify this by looking through the attached logs. The POST call for action "Demo job template" is being made to /services/:id but should be to /vms/:id because it is an action on the VM, not the service.

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


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