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:
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?
PR: https://github.com/ManageIQ/manageiq/pull/15387
*** Bug 1465379 has been marked as a duplicate of this bug. ***
*** Bug 1467538 has been marked as a duplicate of this bug. ***
Verified on 5.9.0.17 that GET /api/services?expand=resources&attributes=power_states succeeds.
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