Bug #6382
closedforeman_discovery fails to load "uninitialized constant Net::Validations::MAC_REGEXP (NameError)"
Description
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'
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)"
Updated by Justin Sherrill over 10 years ago
apologies, meant to say, that the constant is used here: https://github.com/theforeman/foreman_discovery/blob/develop/app/models/host/discovered.rb#L10
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
Updated by Dominic Cleal over 10 years ago
- Related to Feature #5915: Support 64-bit MAC addresses added
Updated by Lukas Zapletal over 10 years ago
- Related to Feature #6404: Support for 64bit MAC addresses added
Updated by Justin Sherrill over 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 67c3b863d785ed772063f3023301e0737a3a910d.