Project

General

Profile

Actions

Bug #2793

closed

Using eth0's MAC address for provisioning

Added by Mateusz Kisielewski almost 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.


Related issues 1 (0 open1 closed)

Has duplicate Discovery - Bug #5206: Discover image should report eth interface from BOOTIFResolvedLukas Zapletal04/15/2014Actions
Actions #1

Updated by Mateusz Kisielewski almost 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.

Actions #2

Updated by Greg Sutcliffe over 10 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 ;)

Actions #3

Updated by Lukas Zapletal almost 10 years ago

  • Has duplicate Bug #5206: Discover image should report eth interface from BOOTIF added
Actions #4

Updated by Lukas Zapletal almost 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.

Actions #5

Updated by Dominic Cleal almost 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 :)

Actions

Also available in: Atom PDF