Bug 1408184
| Summary: | foreman-rake hosts:scan_out_of_sync fails with "LoadError: cannot load such file -- ping" | |||
|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Ashish Humbe <ahumbe> | |
| Component: | Other | Assignee: | Daniel Lobato Garcia <dlobatog> | |
| Status: | CLOSED ERRATA | QA Contact: | jcallaha | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 6.2.5 | CC: | andrew.schofield, bbuckingham, bkearney, dlobatog, jcallaha, ohadlevy, oshtaier, zhunting | |
| Target Milestone: | Unspecified | Keywords: | Triaged | |
| Target Release: | Unused | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| URL: | http://projects.theforeman.org/issues/17837 | |||
| Whiteboard: | ||||
| Fixed In Version: | foreman-1.11.0.66-2 tfm-rubygem-net-ping-2.0.1-1 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1417127 (view as bug list) | Environment: | ||
| Last Closed: | 2017-03-06 15:12:26 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1417127 | |||
|
Description
Ashish Humbe
2016-12-22 12:10:55 UTC
Created redmine issue http://projects.theforeman.org/issues/17837 from this bug Submitted a PR upstream with https://github.com/theforeman/foreman/pull/4127 - the task is 100% broken right now. Marking as 6.2.z as cherry-picking the fix has no risk to the rest of the code at all, the code in the task is self contained. Upstream bug assigned to dlobatog Upstream bug assigned to dlobatog Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17837 has been resolved. Failed QA in Satellite 6.2.8 Snap 2. The error still persists in RHEL 6 and RHEL 7 systems. -bash-4.1# foreman-rake hosts:scan_out_of_sync /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.102/app/models/katello/ping.rb:7: warning: previous definition of PACKAGES was here rake aborted! LoadError: cannot load such file -- net/ping/external /opt/rh/rh-ror41/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require' /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `block in require' /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:232:in `load_dependency' /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `require' /usr/share/foreman/lib/tasks/hosts.rake:24:in `block (2 levels) in <top (required)>' Polyglot::PolyglotLoadError: Failed to load net/ping/external using extensions deface, rb /opt/rh/rh-ror41/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:55:in `load' /opt/rh/rh-ror41/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:68:in `rescue in require' /opt/rh/rh-ror41/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require' /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `block in require' /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:232:in `load_dependency' /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `require' /usr/share/foreman/lib/tasks/hosts.rake:24:in `block (2 levels) in <top (required)>' Tasks: TOP => hosts:scan_out_of_sync (See full trace by running task with --trace) I will submit a merge request to foreman-packaging with the missing package. Verified in Satellite 6.2.8 Snap 4 -bash-4.1# rpm -qa | grep net-ping tfm-rubygem-net-ping-2.0.1-1.el6sat.noarch -bash-4.1# foreman-rake hosts:scan_out_of_sync /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 Conflict IP address for shortname1.full.fqdn.com x. All out of sync hosts exist in DNS Found 1 offline hosts: Name Environment Last Report ******************************************************************************** shortname1.full.fqdn.com production 23 Feb 20:00 Found 1 online hosts which are not reporting back: Name Environment Last Report ******************************************************************************** ibm-x3550m3-12.lab.eng.brq.redhat.com production 28 Feb 20:21 -bash-4.2# foreman-rake hosts:scan_out_of_sync /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 ..Host ibm-x3550m3-09.lab.eng.brq.redhat.com does not have an IP in Foreman. It resolved to IP: '10.34.36.133' through DNS. Skipping... All out of sync hosts exist in DNS Found 2 online hosts which are not reporting back: Name Environment Last Report ******************************************************************************** hp-dl580pgen8-01.khw.lab.eng.bos.redhat.comproduction 17 Dec 17:22 sat-qe-1.rhq.lab.eng.bos.redhat.com production 28 Feb 20:31 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:0447 |