Project

General

Profile

Actions

Bug #6382

closed

foreman_discovery fails to load "uninitialized constant Net::Validations::MAC_REGEXP (NameError)"

Added by Justin Sherrill over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Network
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

This commit:
https://github.com/theforeman/foreman/commit/e42aa400f4a03450520b87bf6ea200bc101af740#diff-f931fc066ae7973420792a69ab1fbfcbL5

appears to have broken discovery in nightly:

as that constant is used here: https://github.com/theforeman/foreman/commit/e42aa400f4a03450520b87bf6ea200bc101af740#diff-f931fc066ae7973420792a69ab1fbfcbL5

We noticed this in katello on installation:

/opt/rh/ruby193/root/usr/share/gems/gems/foreman_hooks-0.3.7/lib/foreman_hooks.rb:83:in `load_missing_constant_with_hooks': uninitialized constant Net::Validations::MAC_REGEXP (NameError)
from /opt/rh/ruby193/root/usr/share/gems/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in `const_missing'
from /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.3.0/app/models/host/discovered.rb:10:in `<class:Discovered>'
from /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.3.0/app/models/host/discovered.rb:3:in `<top (required)>'
from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'


Related issues 2 (0 open2 closed)

Related to Foreman - Feature #5915: Support 64-bit MAC addressesClosedTrey Dockendorf05/23/2014Actions
Related to Discovery - Feature #6404: Support for 64bit MAC addressesDuplicate06/26/2014Actions
Actions

Also available in: Atom PDF