Bug #31132
closedMAC address should be normalized
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.
Updated by The Foreman Bot about 4 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/8095 added
Updated by Romuald Conty over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|e49da5764920b3810e1c33ea2517ec8c870362b8.