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 #1

Updated by Justin Sherrill over 10 years ago

  • Subject changed from foreman_discovery fails to load uninitialized constant Net::Validations::MAC_REGEXP (NameError) to foreman_discovery fails to load "uninitialized constant Net::Validations::MAC_REGEXP (NameError)"
Actions #3

Updated by Dominic Cleal over 10 years ago

  • Project changed from Discovery to Foreman
  • Category changed from Discovery plugin to Network
  • Status changed from New to Ready For Testing
  • Assignee set to Justin Sherrill
  • Target version set to 1.8.1
  • Translation missing: en.field_release set to 10
Actions #4

Updated by Dominic Cleal over 10 years ago

Actions #5

Updated by Lukas Zapletal over 10 years ago

  • Related to Feature #6404: Support for 64bit MAC addresses added
Actions #6

Updated by Justin Sherrill over 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF