Bug 1470129

Summary: Error trying to execute an ansible playbook through self_service portal “My Services->VM Instance->”
Product: Red Hat CloudForms Management Engine Reporter: Sandeep Dhar <sdhar>
Component: APIAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.8.0CC: bascar, ckacergu, jhardy, jtullo, kmorey, lavenel, obarenbo, sacpatil, sdhar
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-14 19:11:01 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:
Attachments:
Description Flags
screenshot of button none

Description Sandeep Dhar 2017-07-12 12:30:37 UTC
Created attachment 1296943 [details]
screenshot of button

Description of problem: When user is logged to CFME (Compute->Infrastructure-> Virtual Machine) then they can run template for specific VM without any issue, but if they want to run the same in self_service portal then they  get error:
“Action not able to submit.”
 
Evm.log:
[----] E, [2017-07-10T09:54:51.445394 #5843:1782638] ERROR -- : <API> MIQ(Api::ServicesController.api_error) API Error
[----] E, [2017-07-10T09:54:51.445541 #5843:1782638] ERROR -- : <API> MIQ(Api::ServicesController.api_error) Api::BadRequestError: Unsupported Custom Action docker.yaml for the services resource specified


Version-Release number of selected component (if applicable):5.8.0


How reproducible:


Steps to Reproduce:
1. Create a button to execute an ansible playbook
2. Execute the playbook from the admin portal Compute->VMs->Button - It is successfull
3. Try to execute the same through the self_service portal - Error

Actual results: “Action not able to submit.”
 
Evm.log:
[----] E, [2017-07-10T09:54:51.445394 #5843:1782638] ERROR -- : <API> MIQ(Api::ServicesController.api_error) API Error
[----] E, [2017-07-10T09:54:51.445541 #5843:1782638] ERROR -- : <API> MIQ(Api::ServicesController.api_error) Api::BadRequestError: Unsupported Custom Action docker.yaml for the services resource specified


Expected results: Should execute successfully


Additional info:

Comment 5 Jillian Tullo 2017-07-14 19:11:01 UTC
Able to tell from the error message "for the service resource specified" that this is a duplicate of another bug. The SUI should have been making the call to /api/vms instead of /api/services.

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