Project

General

Profile

Feature #17533

Using a bonded interface as provision interface should provision DHCP for all child macs as well

Added by Timo Goebel over 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
DHCP
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

The intention is to be able to set a bond as a provision interface and provision a host. A dhcp record should be set for all mac addresses so that whatever physical interface the host tried to pxe boot from, the host installs correctly.


Related issues

Related to Foreman - Bug #9487: Unable to bond primary interface on provisioningResolved2015-02-20
Related to Smart Proxy - Feature #17856: SmartProxy should support multiple dhcp reservations for the same ip addressClosed2016-12-27
Related to Foreman - Feature #19279: Using a bonded bridge as provision interface should provision DHCP for all child macs as wellNew2017-04-16

Associated revisions

Revision f6c313fb (diff)
Added by Timo Goebel over 2 years ago

fixes #17533 - provision dhcp for bond child macs

History

#1 Updated by Timo Goebel over 2 years ago

  • Related to Bug #9487: Unable to bond primary interface on provisioning added

#2 Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4129 added

#3 Updated by Timo Goebel over 2 years ago

  • Related to Feature #17856: SmartProxy should support multiple dhcp reservations for the same ip address added

#4 Updated by Timo Goebel over 2 years ago

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

#5 Updated by Dominic Cleal over 2 years ago

  • Legacy Backlogs Release (now unused) set to 209

#6 Updated by Dominic Cleal over 2 years ago

  • Related to Feature #19279: Using a bonded bridge as provision interface should provision DHCP for all child macs as well added

#7 Updated by Lukas Zapletal about 1 year ago

  • Triaged set to No

Just for the record, this change appears to break older smart-proxy versions with MS DHCP provider. For googlers, symptoms are::

I, [2018-08-09T18:48:22.772187 #13384]  INFO -- : Added DHCP reservation for myserver1.example.com (10.90.56.166 / 00:0a:f7:dd:11:42)
D, [2018-08-09T18:48:22.772187 #13384] DEBUG -- : key: :hostname
D, [2018-08-09T18:48:22.772187 #13384] DEBUG -- : executing: c:\windows\sysnative\cmd.exe /c c:\Windows\System32\netsh.exe -c dhcp server 127.0.0.1 scope 10.90.56.0 set reservedoptionvalue 10.90.56.166 12 String "myserver1.example.com" 
D, [2018-08-09T18:48:22.850310 #13384] DEBUG -- : key: "nextServer" 
D, [2018-08-09T18:48:22.850310 #13384] DEBUG -- : executing: c:\windows\sysnative\cmd.exe /c c:\Windows\System32\netsh.exe -c dhcp server 127.0.0.1 scope 10.90.56.0 set reservedoptionvalue 10.90.56.166 66 String "10.90.4.100" 
D, [2018-08-09T18:48:22.912817 #13384] DEBUG -- : key: "related_macs" 
E, [2018-08-09T18:48:22.912817 #13384] ERROR -- : undefined method `[]' for nil:NilClass
D, [2018-08-09T18:48:22.912817 #13384] DEBUG -- : C:/SmartProxy/modules/dhcp/providers/server/native_ms.rb:57:in `addRecord'
C:/SmartProxy/modules/dhcp/providers/server/native_ms.rb:44:in `each'
C:/SmartProxy/modules/dhcp/providers/server/native_ms.rb:44:in `addRecord'
C:/SmartProxy/modules/dhcp/dhcp_api.rb:96:in `POST /:network'

https://community.theforeman.org/t/unable-to-add-host-via-dhcp/10717/2

Also available in: Atom PDF