Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1191277 - webui does not work with ruby193-rubygem-foreman_gutterball.noarch 0:0.0.1.6-1.el6_6sat
Summary: webui does not work with ruby193-rubygem-foreman_gutterball.noarch 0:0.0.1.6-...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Other
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Jason Montleon
QA Contact: Elyézer Rezende
URL:
Whiteboard:
Depends On:
Blocks: 1193969
TreeView+ depends on / blocked
 
Reported: 2015-02-10 22:08 UTC by Jason Montleon
Modified: 2017-02-23 20:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 16:02:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jason Montleon 2015-02-10 22:08:35 UTC
Description of problem:
The following trace is displayed when browsing to the web ui:
undefined method `[]' for nil:NilClass (NoMethodError)
  /opt/rh/ruby193/root/usr/share/gems/gems/foreman_gutterball-0.0.1/app/services/foreman_gutterball/gutterball_service.rb:6:in `<class:GutterballService>'
  /opt/rh/ruby193/root/usr/share/gems/gems/foreman_gutterball-0.0.1/app/services/foreman_gutterball/gutterball_service.rb:4:in `<module:ForemanGutterball>'
  /opt/rh/ruby193/root/usr/share/gems/gems/foreman_gutterball-0.0.1/app/services/foreman_gutterball/gutterball_service.rb:3:in `<top (required)>'
  /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
  /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
  /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require'
  /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
  /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
  /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:359:in `require_or_load'
  /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:313:in `depend_on'
  /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:225:in `require_dependency'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:438:in `each'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:438:in `block in eager_load!'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:436:in `each'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:436:in `eager_load!'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application/railties.rb:8:in `each'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application/railties.rb:8:in `all'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:434:in `eager_load!'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
  /usr/share/foreman/config/environment.rb:5:in `<top (required)>'
  /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
  /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
  config.ru:3:in `block in <main>'
  /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
  /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in `eval'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in `preload_app'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:150:in `<module:App>'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:28:in `<main>'

Version-Release number of selected component (if applicable):
ruby193-rubygem-foreman_gutterball.noarch 0:0.0.1.6-1.el6_6sat

How reproducible:
Always

Steps to Reproduce:
1. Install Satellite 6.1.0 Snap 2 
2. Update ruby193-rubygem-foreman_gutterball to 0.0.1.6-1
3. Run installer

Actual results:
The install takes an extremely long time and this error will be displayed in the web ui

Expected results:
installer finished and web ui is properly accessible

Additional info:

Comment 2 Jason Montleon 2015-02-11 00:49:10 UTC
On another host I saw this with the installer after waiting for a long time. The UI had the same error. Interestingly the page eventually loaded normally after the installer finished. 


 Could not set 'present' on ensure: 422 Unprocessable Entity at 12:/usr/share/katello-installer/modules/foreman_proxy/manifests/register.pp
 Could not set 'present' on ensure: 422 Unprocessable Entity at 12:/usr/share/katello-installer/modules/foreman_proxy/manifests/register.pp
 /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[el6-smoketest.sat6.lab.eng.bos.redhat.com]/ensure: change from absent to present failed: Could not set 'present' on ensure: 422 Unprocessable Entity at 12:/usr/share/katello-installer/modules/foreman_proxy/manifests/register.pp
 /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[el6-smoketest.sat6.lab.eng.bos.redhat.com]: Failed to call refresh: missing param 'id' in parameters
 /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[el6-smoketest.sat6.lab.eng.bos.redhat.com]: missing param 'id' in parameters
Installing             Done                                               [100%] [....................................................................................]
  Something went wrong! Check the log for ERROR-level output
  The full log is at /var/log/katello-installer/katello-installer.log

A subsequent run of the installer completed successfully:
Installing             Done                                               [100%] [....................................................................................]
  Success!
  * Katello is running at https://el6-smoketest.sat6.lab.eng.bos.redhat.com
      Initial credentials are admin / changeme
  * Capsule is running at https://el6-smoketest.sat6.lab.eng.bos.redhat.com:9090
  * To install additional capsule on separate machine continue by running:"

      capsule-certs-generate --capsule-fqdn "$CAPSULE" --certs-tar "~/$CAPSULE-certs.tar"

  The full log is at /var/log/katello-installer/katello-installer.log
[root@el6-smoketest ~]#

Comment 3 Corey Welton 2015-02-17 18:09:33 UTC
QE Notes: dev task, no qe required.

Comment 5 Elyézer Rezende 2015-07-15 20:18:40 UTC
Verified on: Snap 12

Steps to verify:

# yum install ruby193-rubygem-foreman_gutterball
Loaded plugins: product-id, subscription-manager
Package ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el7sat.noarch already installed and latest version
Nothing to do

# katello-service status
Output omitted

# echo $?
0

Then browsed some UI pages and no error was presented.

Comment 6 Bryan Kearney 2015-08-12 16:02:50 UTC
This bug was fixed in Satellite 6.1.1 which was delivered on 12 August, 2015.


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