Project

General

Profile

Bug #31132

MAC address should be normalized

Added by Romuald Conty about 1 year ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Host creation
Target version:
-
Difficulty:
trivial
Triaged:
No
Bugzilla link:
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.

Associated revisions

Revision e49da576 (diff)
Added by Romuald Conty 5 months ago

Fixes #31132 - Downcase MAC addresses

History

#1 Updated by The Foreman Bot about 1 year ago

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

#2 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases 3.0.0 added

#3 Updated by Romuald Conty 5 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF