Bug #2793
closed
Using eth0's MAC address for provisioning
Added by Mateusz Kisielewski over 11 years ago.
Updated over 10 years ago.
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.
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.
- 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 ;)
- Has duplicate Bug #5206: Discover image should report eth interface from BOOTIF added
- 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.
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 :)
Also available in: Atom
PDF