Bug #2793
closedUsing eth0's MAC address for provisioning
Description
Foreman Discovery uses eth0's MAC address from facts for provisioning, so while booting from different NIC you've to manually change the MAC address.
app/models/host/discovered.rb#L49 --- h.mac = values["macaddress_eth0"].downcase
On irc Ohad mentioned about using IPAPPEND 2 -> (BOOTIF=<hardware-address-of-boot-interface>) like Anaconda does, if it's possible of course.
Updated by Mateusz Kisielewski over 11 years ago
I think it might be possible to use MAC address from /proc/cmdline after PXE booting with IPAPPEND 2 and then send it via custom fact to foreman.
Updated by Greg Sutcliffe over 11 years ago
- Status changed from New to Assigned
- Assignee set to Greg Sutcliffe
If I remember correctly, IPAPPEND causes the kernel cmdline to contain the appropriate mac. The issue will be that we don't send the MAC to Foreman, it's a pull of the facts from the client rather than a push to Foreman. I can probably figure out a way to do it though ;)
Updated by Lukas Zapletal over 10 years ago
- Has duplicate Bug #5206: Discover image should report eth interface from BOOTIF added
Updated by Lukas Zapletal over 10 years ago
- Description updated (diff)
- Status changed from Assigned to Closed
Oh setting "Duplicated by" does not actually close the issue! Damn. I may have forgetten few others today and in the past.
Updated by Dominic Cleal over 10 years ago
Lukas Zapletal wrote:
Oh setting "Duplicated by" does not actually close the issue! Damn. I may have forgetten few others today and in the past.
Don't worry, I noticed one already :)