Bug 1466114
| Summary: | SSUI : "Error loading Services" when clicked on "My Services" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Shveta <sshveta> | ||||
| Component: | API | Assignee: | Jillian Tullo <jtullo> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Shveta <sshveta> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 5.8.0 | CC: | cpelland, dajohnso, dclarizi, jhardy, obarenbo | ||||
| Target Milestone: | GA | Keywords: | TestOnly, ZStream | ||||
| Target Release: | 5.9.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | ssui:api:service | ||||||
| Fixed In Version: | 5.9.0.1 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1468294 (view as bug list) | Environment: | |||||
| Last Closed: | 2018-03-06 15:38:37 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | CFME Core | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1468294 | ||||||
| Attachments: |
|
||||||
Appliance : https://10.8.198.31/ui/service Getting a 500 error on the following API call:
/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
Returning the following:
{
"error": {
"kind": "internal_server_error",
"message": "undefined method `id' for \"on\":String",
"klass": "NoMethodError"
}
}
Based on this, sending to API team for review.
Fixed by: https://github.com/ManageIQ/manageiq/pull/15387 - added backport label to PR. Fixed. Verified in 5.9.0.2.20171010190026_0413a06 |
Created attachment 1292787 [details] error Description of problem: Version-Release number of selected component (if applicable): 5.8.1.0.20170623170756_3ed4411 How reproducible: Steps to Reproduce: 1. Create few services. Login in SSUI. 2. Click on "My Services" . Services are not loaded . "Error loading service" is displayed . 3. Actual results: Expected results: Additional info: Production log =========================== [----] I, [2017-06-29T01:44:04.634911 #3028:1ced118] INFO -- : Started GET "/api/services?filter[]=ancestry%3Dnull" for 127.0.0.1 at 2017-06-29 01:44:04 -0400 [----] I, [2017-06-29T01:44:04.636893 #3028:1ced118] INFO -- : Processing by Api::ServicesController#index as JSON [----] I, [2017-06-29T01:44:04.636958 #3028:1ced118] INFO -- : Parameters: {"filter"=>["ancestry=null"]} [----] I, [2017-06-29T01:44:04.658775 #3028:1ced118] INFO -- : Completed 200 OK in 22ms (Views: 0.1ms | ActiveRecord: 2.7ms) [----] I, [2017-06-29T01:44:04.770533 #3028:1ced118] INFO -- : Started GET "/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" for 127.0.0.1 at 2017-06-29 01:44:04 -0400 [----] I, [2017-06-29T01:44:04.772347 #3028:1ced118] INFO -- : Processing by Api::ServicesController#index as JSON [----] I, [2017-06-29T01:44:04.772413 #3028:1ced118] INFO -- : Parameters: {"expand"=>"resources", "attributes"=>"picture,picture.image_href,chargeback_report,evm_owner.userid,miq_group.description,v_total_vms,power_state,power_states,power_status,all_service_children,all_vms,custom_actions,service_resources,tags", "filter"=>["ancestry=null"], "limit"=>"20", "offset"=>"0", "sort_by"=>"created_at", "sort_order"=>"desc"} [----] I, [2017-06-29T01:44:04.821054 #3028:1ced118] INFO -- : Completed 500 Internal Server Error in 49ms (Views: 0.2ms | ActiveRecord: 5.2ms) [----] I, [2017-06-29T01:44:08.680013 #3028:1cec218] INFO -- : Started GET "/api/service_orders?filter[]=state%3Dordered&hide=resources" for 127.0.0.1 at 2017-06-29 01:44:08 -0400 [----] I, [2017-06-29T01:44:08.682148 #3028:1cec218] INFO -- : Processing by Api::ServiceOrdersController#index as JSON [----] I, [2017-06-29T01:44:08.682206 #3028:1cec218] INFO -- : Parameters: {"filter"=>["state=ordered"], "hide"=>"resources"} [----] I, [2017-06-29T01:44:08.682939 #3028:1cf0f70] INFO -- : Started GET "/api/service_templates?filter[]=display%3Dtrue&hide=resources" for 127.0.0.1 at 2017-06-29 01:44:08 -0400 [----] I, [2017-06-29T01:44:08.683991 #3028:1cf0f70] INFO -- : Processing by Api::ServiceTemplatesController#index as JSON [----] I, [2017-06-29T01:44:08.684083 #3028:1cf0f70] INFO -- : Parameters: {"filter"=>["display=true"], "hide"=>"resources"} [----] I, [2017-06-29T01:44:08.685092 #3028:1cf0840] INFO -- : Started GET "/api/services?filter[]=ancestry%3Dnull&hide=resources" for 127.0.0.1 at 2017-06-29 01:44:08 -0400 [----] I, [2017-06-29T01:44:08.686709 #3028:1cf0840] INFO -- : Processing by Api::ServicesController#index as JSON [----] I, [2017-06-29T01:44:08.686822 #3028:1cf0840] INFO -- : Parameters: {"filter"=>["ancestry=null"], "hide"=>"resources"} [----] I, [2017-06-29T01:44:08.714624 #3028:1cec218] INFO -- : Completed 200 OK in 32ms (Views: 0.1ms | ActiveRecord: 11.3ms) [----] I, [2017-06-29T01:44:08.734250 #3028:1cf0f70] INFO -- : Completed 200 OK in 49ms (Views: 0.1ms | ActiveRecord: 28.8ms) [----] I, [2017-06-29T01:44:08.743590 #3028:1cf0840] INFO -- : Completed 200 OK in 57ms (Views: 0.1ms | ActiveRecord: 29.2ms) [----] I, [2017-06-29T01:44:14.622501 #3028:1cf17b8] INFO -- : Started GET "/api/services?filter[]=ancestry%3Dnull" for 127.0.0.1 at 2017-06-29 01:44:14 -0400 [----] I, [2017-06-29T01:44:14.624456 #3028:1cf17b8] INFO -- : Processing by Api::ServicesController#index as JSON [----] I, [2017-06-29T01:44:14.624535 #3028:1cf17b8] INFO -- : Parameters: {"filter"=>["ancestry=null"]} [----] I, [2017-06-29T01:44:14.645330 #3028:1cf17b8] INFO -- : Completed 200 OK in 21ms (Views: 0.1ms | ActiveRecord: 2.3ms) [----] I, [2017-06-29T01:44:14.751511 #3028:1cf17b8] INFO -- : Started GET "/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" for 127.0.0.1 at 2017-06-29 01:44:14 -0400 [----] I, [2017-06-29T01:44:14.753263 #3028:1cf17b8] INFO -- : Processing by Api::ServicesController#index as JSON [----] I, [2017-06-29T01:44:14.753331 #3028:1cf17b8] INFO -- : Parameters: {"expand"=>"resources", "attributes"=>"picture,picture.image_href,chargeback_report,evm_owner.userid,miq_group.description,v_total_vms,power_state,power_states,power_status,all_service_children,all_vms,custom_actions,service_resources,tags", "filter"=>["ancestry=null"], "limit"=>"20", "offset"=>"0", "sort_by"=>"created_at", "sort_order"=>"desc"} [----] I, [2017-06-29T01:44:14.801261 #3028:1cf17b8] INFO -- : Completed 500 Internal Server Error in 48ms (Views: 0.2ms | ActiveRecord: 5.0ms) [----] I, [2017-06-29T01:44:18.679109 #3028:1ced118] INFO -- : Started GET "/api/services?filter[]=ancestry%3Dnull&hide=resources" for 127.0.0.1 at 2017-06-29 01:44:18 -0400 [----] I, [2017-06-29T01:44:18.681177 #3028:1ced118] INFO -- : Processing by Api::ServicesController#index as JSON [----] I, [2017-06-29T01:44:18.681259 #3028:1ced118] INFO -- : Parameters: {"filter"=>["ancestry=null"], "hide"=>"resources"} [----] I, [2017-06-29T01:44:18.684706 #3028:1cec218] INFO -- : Started GET "/api/service_orders?filter[]=state%3Dordered&hide=resources" for 127.0.0.1 at 2017-06-29 01:44:18 -0400 [----] I, [2017-06-29T01:44:18.687140 #3028:1cec218] INFO -- : Processing by Api::ServiceOrdersController#index as JSON [----] I, [2017-06-29T01:44:18.687264 #3028:1cec218] INFO -- : Parameters: {"filter"=>["state=ordered"], "hide"=>"resources"} [----] I, [2017-06-29T01:44:18.704005 #3028:1cf0f70] INFO -- : Started GET "/api/service_templates?filter[]=display%3Dtrue&hide=resources" for 127.0.0.1 at 2017-06-29 01:44:18 -0400 [----] I, [2017-06-29T01:44:18.705893 #3028:1cf0f70] INFO -- : Processing by Api::ServiceTemplatesController#index as JSON [----] I, [2017-06-29T01:44:18.705999 #3028:1cf0f70] INFO -- : Parameters: {"filter"=>["display=true"], "hide"=>"resources"} [----] I, [2017-06-29T01:44:18.724229 #3028:1ced118] INFO -- : Completed 200 OK in 43ms (Views: 0.1ms | ActiveRecord: 23.6ms) [----] I, [2017-06-29T01:44:18.726574 #3028:1cec218] INFO -- : Completed 200 OK in 39ms (Views: 0.1ms | ActiveRecord: 20.4ms) [----] I, [2017-06-29T01:44:18.749792 #3028:1cf0f70] INFO -- : Completed 200 OK in 44ms (Views: 0.1ms | ActiveRecord: 16.2ms)