Project

General

Profile

Bug #6382

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

Added by Justin Sherrill almost 5 years ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Category:
Network
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
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

Related to Foreman - Feature #5915: Support 64-bit MAC addressesClosed2014-05-23
Related to Discovery - Feature #6404: Support for 64bit MAC addressesDuplicate2014-06-26

Associated revisions

Revision 67c3b863 (diff)
Added by Justin Sherrill almost 5 years ago

fixes #6382 - revert name change of 48bit mac address regex to fix discovery

History

#1 Updated by Justin Sherrill almost 5 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)"

#3 Updated by Dominic Cleal almost 5 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
  • Legacy Backlogs Release (now unused) set to 10

#4 Updated by Dominic Cleal almost 5 years ago

#5 Updated by Lukas Zapletal almost 5 years ago

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

#6 Updated by Justin Sherrill almost 5 years ago

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

Also available in: Atom PDF