Project

General

Profile

Actions

Bug #25243

closed

DHCP ISC conf parser is unable to process interface-mtu option statement

Added by Lukas Zapletal over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
DHCP
Target version:
-
Difficulty:
medium
Triaged:
Yes
Found in Releases:

Description

The following block errors out:

subnet 10.0.0.0 netmask 255.255.255.0 {
    option interface-mtu 9000;
}

Exception is:

2018-10-19T08:51:41  [E] Couldn't enable 'dhcp_isc': undefined method `to_i' for [["9000"]]:Array
Did you mean?  to_s
               to_a
               to_h
2018-10-19T08:51:41  [D] /home/lzap/work/smart-proxy/modules/dhcp_common/subnet.rb:29:in `initialize'
/home/lzap/work/smart-proxy/modules/dhcp_common/isc/subnet_service_initialization.rb:78:in `new'
/home/lzap/work/smart-proxy/modules/dhcp_common/isc/subnet_service_initialization.rb:78:in `to_subnet'
/home/lzap/work/smart-proxy/modules/dhcp_common/isc/subnet_service_initialization.rb:22:in `block in update_subnet_service_with_subnet_records'
/home/lzap/work/smart-proxy/modules/dhcp_common/isc/subnet_service_initialization.rb:22:in `each'
/home/lzap/work/smart-proxy/modules/dhcp_common/isc/subnet_service_initialization.rb:22:in `update_subnet_service_with_subnet_records'
/home/lzap/work/smart-proxy/modules/dhcp_common/isc/subnet_service_initialization.rb:12:in `load_configuration_file'
/home/lzap/work/smart-proxy/modules/dhcp_isc/isc_state_changes_observer.rb:152:in `load_configuration_file'
/home/lzap/work/smart-proxy/modules/dhcp_isc/isc_state_changes_observer.rb:129:in `block in do_start'
/home/lzap/work/smart-proxy/modules/dhcp_common/subnet_service.rb:154:in `block in group_changes'
/home/lzap/.rbenv/versions/2.5.1/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/home/lzap/work/smart-proxy/modules/dhcp_common/subnet_service.rb:154:in `group_changes'
/home/lzap/work/smart-proxy/modules/dhcp_isc/isc_state_changes_observer.rb:128:in `do_start'
/home/lzap/work/smart-proxy/modules/dhcp_isc/isc_state_changes_observer.rb:80:in `start'
/home/lzap/work/smart-proxy/modules/dhcp_isc/inotify_leases_file_observer.rb:42:in `start'
/home/lzap/work/smart-proxy/lib/proxy/plugin_initializer.rb:238:in `block in start_services'
/home/lzap/work/smart-proxy/lib/proxy/plugin_initializer.rb:236:in `each'
/home/lzap/work/smart-proxy/lib/proxy/plugin_initializer.rb:236:in `start_services'
/home/lzap/work/smart-proxy/lib/proxy/plugin_initializer.rb:221:in `configure_plugin'
/home/lzap/work/smart-proxy/lib/proxy/plugin_initializer.rb:92:in `block in configure'
/home/lzap/work/smart-proxy/lib/proxy/plugin_initializer.rb:92:in `each'
/home/lzap/work/smart-proxy/lib/proxy/plugin_initializer.rb:92:in `configure'
/home/lzap/work/smart-proxy/lib/proxy/plugin_initializer.rb:170:in `block in initialize_plugins'
/home/lzap/work/smart-proxy/lib/proxy/plugin_initializer.rb:170:in `each'
/home/lzap/work/smart-proxy/lib/proxy/plugin_initializer.rb:170:in `initialize_plugins'
/home/lzap/work/smart-proxy/lib/launcher.rb:168:in `launch'
bin/smart-proxy:6:in `<top (required)>'
/home/lzap/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `load'
/home/lzap/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `kernel_load'
/home/lzap/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:28:in `run'
/home/lzap/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:424:in `exec'
/home/lzap/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/lzap/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/lzap/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/home/lzap/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:27:in `dispatch'
/home/lzap/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/home/lzap/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:18:in `start'
/home/lzap/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/exe/bundle:30:in `block in <top (required)>'
/home/lzap/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/friendly_errors.rb:122:in `with_friendly_errors'
/home/lzap/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/exe/bundle:22:in `<top (required)>'
/home/lzap/.rbenv/versions/2.5.1/bin/bundle:23:in `load'
/home/lzap/.rbenv/versions/2.5.1/bin/bundle:23:in `<main>'
Actions #1

Updated by Lukas Zapletal over 5 years ago

  • Bugzilla link set to 1640848
Actions #2

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/616 added
Actions #3

Updated by Anonymous over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Tomer Brisker over 5 years ago

  • Fixed in Releases 1.21.0 added
Actions #5

Updated by Tomer Brisker over 5 years ago

  • Fixed in Releases 1.20.1 added
Actions

Also available in: Atom PDF