Bug 1461939 - Unable to retrieve list of services
Summary: Unable to retrieve list of services
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: API
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: GA
: 5.9.0
Assignee: Jillian Tullo
QA Contact: Martin Kourim
URL:
Whiteboard:
: 1465379 1467538 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-15 16:36 UTC by Chris Hale
Modified: 2018-03-14 15:41 UTC (History)
8 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-01 13:13:38 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0380 0 normal SHIPPED_LIVE Moderate: Red Hat CloudForms security, bug fix, and enhancement update 2018-03-01 18:37:12 UTC

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


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