theforeman / smart_proxy_dhcp_dnsmasq

dnsmasq DHCP plugin for Foreman smart-proxy
GNU General Public License v3.0
7 stars 7 forks source link

ERROR: No Subnets configured #19

Open manditri opened 9 months ago

manditri commented 9 months ago

I have created a subnet in foreman. Dnsmasq is serving DHCP, DNS and TFTP. But PXE boot fails. When I turn on a machine on the same subnet it gets an IP successfully but I get an error from smart-proxy afterwards. See below error captured from the UI.

No subnets configured: /usr/lib/ruby/vendor_ruby/smart_proxy_dhcp_dnsmasq/dhcp_dnsmasq_subnet_service.rb:286:in load_leases' /usr/lib/ruby/vendor_ruby/smart_proxy_dhcp_dnsmasq/dhcp_dnsmasq_subnet_service.rb:45:inblock in watch_leases' /usr/lib/ruby/vendor_ruby/rb-inotify/watcher.rb:41:in callback!' /usr/lib/ruby/vendor_ruby/rb-inotify/event.rb:128:incallback!' /usr/lib/ruby/vendor_ruby/rb-inotify/notifier.rb:243:in block in process' /usr/lib/ruby/vendor_ruby/rb-inotify/notifier.rb:242:ineach' /usr/lib/ruby/vendor_ruby/rb-inotify/notifier.rb:242:in process' /usr/lib/ruby/vendor_ruby/rb-inotify/notifier.rb:225:inrun' /usr/lib/ruby/vendor_ruby/smart_proxy_dhcp_dnsmasq/dhcp_dnsmasq_subnet_service.rb:60:in watch_leases' /usr/lib/ruby/vendor_ruby/smart_proxy_dhcp_dnsmasq/dhcp_dnsmasq_subnet_service.rb:70:inblock in start' /usr/lib/ruby/vendor_ruby/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'