Feature #17533
closed
Using a bonded interface as provision interface should provision DHCP for all child macs as well
Added by Timo Goebel about 8 years ago.
Updated over 6 years ago.
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 to Bug #9487: Unable to bond primary interface on provisioning added
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4129 added
- Related to Feature #17856: SmartProxy should support multiple dhcp reservations for the same ip address added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Translation missing: en.field_release set to 209
- Related to Feature #19279: Using a bonded bridge as provision interface should provision DHCP for all child macs as well added
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