Comment 5 for bug 1768690

Revision history for this message
Harald Jensås (harald-jensas) wrote : Re: [RFE] Regenerate mac address of a port

@Brian,

When the two ports are initially created, they do not get the same MAC address.

What happens is that Ironic changes[1] the MAC address of the port when it is attaching the port.

Ironic needs to do this to ensure that neutrons DHCP server responds to the DHCP request from the baremetal servers network interface.

The problem arises when the Ironic instance is later deleted, and then I try to create a new Ironic instance using a different port in the same network. If the new instance is scheduled onto the same baremetal server, Ironic attempts to change the MAC address of the latter port to match the servers network interface. Neutron refuses because the prior port is still there with the MAC address of the baremetal server.

[1] https://github.com/openstack/ironic/blob/master/ironic/common/neutron.py#L133