ironic/ironic
Sam Betts 7586681d23 Ensure we unbind flat network ports and clear BM mac addresses
This patch fixes a bug in the ironic nova neutron interaction triangle,
where a port in a flat network can be left with bound and with the mac
address of a baremetal server if it is not deleted after a deployment or
deployment failure. The fix is to ensure that the network interfaces
reset the mac address to a random mac address when it unbinds the port
in the unconfigure step for provisioning and tenant networks, and then
rebind and set the mac address for the configure steps.

Co-Authored-By: Harald Jensås <hjensas@redhat.com>
Story: #2004428
Task: #28087
Change-Id: I11fff92e0a58ac68e795c003c14a336bceba6d89
(cherry picked from commit db16984b47)
2018-12-02 10:27:48 +00:00
..
api Missing import of "_" 2018-05-25 11:55:16 +00:00
cmd Migration step to update objects to latest version 2018-10-26 14:06:51 +02:00
common Ensure we unbind flat network ports and clear BM mac addresses 2018-12-02 10:27:48 +00:00
conductor Don't fail when node is in CLEANFAIL state 2018-11-26 16:21:26 +00:00
conf Fixes a race condition in the hash ring code 2018-10-08 15:54:42 +02:00
db Migration step to update objects to latest version 2018-10-26 14:06:51 +02:00
dhcp correct referenced url in comments 2018-02-02 15:24:22 +08:00
drivers Ensure we unbind flat network ports and clear BM mac addresses 2018-12-02 10:27:48 +00:00
locale/ja/LC_MESSAGES Imported Translations from Zanata 2017-11-21 06:16:45 +00:00
objects Support nested objects and object lists in as_dict 2018-02-22 09:41:51 +00:00
tests Ensure we unbind flat network ports and clear BM mac addresses 2018-12-02 10:27:48 +00:00
__init__.py Move eventlet monkey patch code 2017-03-02 13:48:18 +02:00
version.py Correct version.py and update current version string 2014-03-21 13:50:05 -07:00