Bug 1097124

Summary: Page remains in "Loading.." state while performing bulk actions on content host
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Brad Buckingham <bbuckingham>
Status: CLOSED CURRENTRELEASE QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: bbuckingham, jmontleo
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/5743
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-02 14:06:17 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
complete stacktrace from production.log
none
Content Host -->select hosts --> Bulk Actions --> Host Collection --> Loading
none
Firebug raises 400 Bad request error
none
host-collection page was loaded on selecting content-host's -->bulk-action none

Description Sachin Ghai 2014-05-13 08:05:15 UTC
Created attachment 895032 [details]
complete stacktrace from production.log

Description of problem:
I was trying to perform bulk actions on selected hosts. So I clicked on 'Bulk Actions' --> Host collections Tab

on clicking Host collections, Page keep on Loading..

And production.log says:
===================
/opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
Completed 400 Bad Request in 40ms (Views: 0.3ms | ActiveRecord: 0.3ms)
Processing by Katello::Api::V2::HostCollectionsController#index as JSON
  Parameters: {"offset"=>"0", "organization_id"=>"ACME_Corporation", "page"=>"1", "paged"=>"true", "search"=>"", "sort_by"=>"name", "sort_order"=>"ASC", "api_version"=>"v2"}
Processing by Katello::Api::V2::SystemsController#show as JSON
  Parameters: {"fields"=>"full", "api_version"=>"v2", "id"=>"bulk-actions"}
exception when talking to a remote client: Katello::Resources::Candlepin::Consumer: 404 Resource Not Found {"displayMessage":"Consumer with id bulk-actions could not be found.","requestUuid":"2364709e-1c6d-4a20-b091-ca097b428541"} (GET /candlepin/consumers/bulk-actions) RestClient::ResourceNotFound: Katello::Resources::Candlepin::Consumer: 404 Resource Not Found {"displayMessage":"Consumer with id bulk-actions could not be found.","requestUuid":"2364709e-1c6d-4a20-b091-ca097b428541"} (GET /candlepin/consumers/bulk-actions)
Body: {"displayMessage":"Consumer with id bulk-actions could not be found.","requestUuid":"2364709e-1c6d-4a20-b091-ca097b428541"}
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:48:in `return!'
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:220:in `process_result'



Version-Release number of selected component (if applicable):
Satellite 6 Beta Snap 4

Satellite-6.0.3-RHEL-6-20140508.1

How reproducible:
always 

Steps to Reproduce:
1. select two hosts
2. click on 'Bulk Actions' from content host page
3. select Host Collections tab

Actual results:
Page remains in "Loading.." state while performing bulk actions on content host
from host collections tab

Expected results:
Host collection tab should be loaded properly and no error should be thrown in production.log

Additional info:

Comment 1 Sachin Ghai 2014-05-13 08:08:04 UTC
Created attachment 895033 [details]
Content Host -->select hosts --> Bulk Actions --> Host Collection --> Loading

Comment 2 RHEL Program Management 2014-05-13 08:25:15 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Brad Buckingham 2014-05-15 17:28:38 UTC
Created redmine issue http://projects.theforeman.org/issues/5743 from this bug

Comment 5 Sachin Ghai 2014-05-16 07:16:31 UTC
Created attachment 896217 [details]
Firebug raises 400 Bad request error

Comment 6 Brad Buckingham 2014-06-04 21:36:23 UTC
fix included with katello PR: 

https://github.com/Katello/katello/pull/4217

Comment 9 Sachin Ghai 2014-06-13 06:40:06 UTC
Verified with sat6 beta snap9 compose2 (Satellite-6.0.3-RHEL-6-20140612.1)

Host collection tab under bulk actions was loaded properly and didn't see any error in production.log

Comment 10 Sachin Ghai 2014-06-13 06:41:33 UTC
Created attachment 908380 [details]
host-collection page was loaded on selecting content-host's -->bulk-action

Comment 11 Bryan Kearney 2014-07-02 14:06:17 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.