Bug 1429418
Summary: | foreman-rake gives warning: already initialized constant Katello::Ping::PACKAGES when running jobs | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Martijn ten Heuvel <mtenheuv> | |
Component: | Branding | Assignee: | satellite6-bugs <satellite6-bugs> | |
Status: | CLOSED ERRATA | QA Contact: | Roman Plevka <rplevka> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 6.2.8 | CC: | asahni, bbuckingham, bkearney, cdonnell, dhawke, egolov, fgarciad, hajek, h.teunis, inecas, jan.gerrit, jcallaha, kdixon, mmccune, nitthoma, pieter.vandewygaert, pmoravec, rplevka, sshtein, zhunting | |
Target Milestone: | Unspecified | Keywords: | PrioBumpGSS, Regression, Triaged | |
Target Release: | Unused | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | rubygem-foreman_theme_satellite-0.1.45-1 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1463804 (view as bug list) | Environment: | ||
Last Closed: | 2017-08-10 17:02:29 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: |
Description
Martijn ten Heuvel
2017-03-06 11:03:41 UTC
Starting console also gives warning. [root@satellite62 ~]# foreman-rake console /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_theme_satellite-0.1.41/app/models/concerns/satellite_packages.rb:4: warning: already initialized constant Katello::Ping::PACKAGES /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/app/models/katello/ping.rb:7: warning: previous definition of PACKAGES was here /usr/share/foreman/lib/tasks/console.rake:4: warning: already initialized constant ARGV Loading production environment (Rails 4.1.5) irb(main):001:0> This is also seen during .7→.8 upgrade: Upgrade Step: migrate_foreman... /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_theme_satellite-0.1.41/app/models/concerns/satellite_packages.rb:4: warning: already initialized constant Katello::Ping::PACKAGES /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/app/models/katello/ping.rb:7: warning: previous definition of PACKAGES was here true /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_theme_satellite-0.1.41/app/models/concerns/satellite_packages.rb:4: warning: already initialized constant Katello::Ping::PACKAGES /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/app/models/katello/ping.rb:7: warning: previous definition of PACKAGES was here /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_theme_satellite-0.1.41/app/models/concerns/satellite_packages.rb:4: warning: already initialized constant Katello::Ping::PACKAGES /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/app/models/katello/ping.rb:7: warning: previous definition of PACKAGES was here false The definitions that is complaining about are as follows (slightly different): /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/app/models/katello/ping.rb:7 -> 7 PACKAGES = %w(katello candlepin pulp qpid foreman tfm hammer) /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_theme_satellite-0.1.41/app/models/concerns/satellite_packages.rb:4 -> 4 self.const_set(:PACKAGES, %w(katello candlepin pulp qpid foreman tfm ham mer satellite)) So they are different by a single package definition (satellite). Starting foreman-rake console gives also the mentioned error for me: foreman-rake console /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_theme_satellite-0.1.41/app/models/concerns/satellite_packages.rb:4: warning: already initialized constant Katello::Ping::PACKAGES /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/app/models/katello/ping.rb:7: warning: previous definition of PACKAGES was here /usr/share/foreman/lib/tasks/console.rake:4: warning: already initialized constant ARGV Loading production environment (Rails 4.1.5) This is a regression from https://bugzilla.redhat.com/show_bug.cgi?id=1329689, it's not fatal, but I agree the red herring messages are not nice. *** Bug 1427673 has been marked as a duplicate of this bug. *** Red Hat Knowledge Base (Solution) 2980231 does not take into account that Trend Monitoring jobs are filling up root's mailbox with mails containing the messages: /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_theme_satellite-0.1.41/app/models/concerns/satellite_packages.rb:4: warning: already initialized constant Katello::Ping::PACKAGES /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/app/models/katello/ping.rb:7: warning: previous definition of PACKAGES was here true It simply states to ignore the messages in system and application logs. Logs are rotate, root's mailbox has to be cleared manually. Every 30 minutes I get an email from the trend analysis task with the same message. Still after upgrading to 6.2.9 VERIFIED on 6.2.11-2 yet, there's still the warning regarding the ARGV constant. B [root@dell-per320-01 environments]# foreman-rake console /usr/share/foreman/lib/tasks/console.rake:4: warning: already initialized constant ARGV Loading production environment (Rails 4.1.5) irb(main):001:0> opened a new BZ for the other warning: https://bugzilla.redhat.com/show_bug.cgi?id=1474796 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/RHBA-2017:2466 |