Project

General

Profile

Actions

Bug #31132

closed

MAC address should be normalized

Added by Romuald Conty over 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Host creation
Target version:
-
Difficulty:
trivial
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

I would like to contribute a patch for Foreman to fix an issue I have.

I need to provide some context: we use Foreman with Proxmox plugin.
This plugin fill the Foreman host with an upper-cased MAC address.

The MAC address is used by "Preseed finish template" (more precisely by 'preseed_networking_setup' snippet) to fill /etc/network/interfaces under Debian.

Unfortunately Debian requires a down-cased MAC address in this file.
So I modified this part to down-case @host.mac.

But it raises another issue: during provisioning MAC address changed (from upcase to downcase) so the final built request trig a DHCP reservation deletetion with the upcased MAC then create a new reservation using the downcased one, which raise an conflict error.

To fix theses issues, I made a patch to downcase mac address, so this address will be stable and usable directly by finish template.

Actions #1

Updated by The Foreman Bot over 3 years ago

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

Updated by The Foreman Bot almost 3 years ago

  • Fixed in Releases 3.0.0 added
Actions #3

Updated by Romuald Conty almost 3 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF