Bug 1461939

Summary: Unable to retrieve list of services
Product: Red Hat CloudForms Management Engine Reporter: Chris Hale <chhale>
Component: APIAssignee: Jillian Tullo <jtullo>
Status: CLOSED ERRATA QA Contact: Martin Kourim <mkourim>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.8.0CC: akarol, awight, jhardy, jtullo, nachandr, obarenbo, rbabyuk, simaishi
Target Milestone: GA   
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-01 13:13:38 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:

Description Chris Hale 2017-06-15 16:36:39 UTC
Description of problem:


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


How reproducible:
If you run an API request like 

http://localhost:3001/api/services?expand=resources&attributes=picture%2Cpicture.image_href%2Cchargeback_report%2Cevm_owner.userid%2Cmiq_group.description%2Cv_total_vms%2Cpower_state%2Cpower_states%2Cpower_status%2Call_service_children%2Call_vms%2Ccustom_actions%2Cservice_resources%2Ctags&filter[]=ancestry%3Dnull&limit=20&offset=0&sort_by=created_at&sort_order=desc

Steps to Reproduce:
1. 
2.
3.

Actual results:
{"error":{"kind":"internal_server_error","message":"undefined method `id' for \"on\":String","klass":"NoMethodError"}}

Expected results:


Additional info:

Comment 2 Allen W 2017-06-15 16:41:40 UTC
Looks to be the result of the attribute `power_states` if ya run this
``` GET http://localhost:3001/api/services?expand=resources&attributes=power_states ```
FAILURE!!

remove `power_states` and success! 

So is it a stale attribute? or maybe some how borked?

Comment 3 Allen W 2017-06-15 16:41:47 UTC
Looks to be the result of the attribute `power_states` if ya run this
``` GET http://localhost:3001/api/services?expand=resources&attributes=power_states ```
FAILURE!!

remove `power_states` and success! 

So is it a stale attribute? or maybe some how borked?

Comment 4 Jillian Tullo 2017-06-15 18:51:57 UTC
PR: https://github.com/ManageIQ/manageiq/pull/15387

Comment 5 Ruslana Babyuk 2017-06-27 14:58:57 UTC
*** Bug 1465379 has been marked as a duplicate of this bug. ***

Comment 6 Jillian Tullo 2017-07-05 17:18:47 UTC
*** Bug 1467538 has been marked as a duplicate of this bug. ***

Comment 7 Martin Kourim 2018-01-29 10:47:20 UTC
Verified on 5.9.0.17 that
GET /api/services?expand=resources&attributes=power_states
succeeds.

Comment 10 errata-xmlrpc 2018-03-01 13:13:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0380