ironic/ironic/common
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
..
glance_service Missing import of "_" 2018-05-25 11:55:16 +00:00
__init__.py Remove copyright from empty files 2014-01-07 21:05:01 +08:00
boot_devices.py Implementation for UEFI iSCSI boot for ILO 2018-01-25 06:33:21 +00:00
cinder.py Use adapters for cinderclient 2017-11-21 09:32:21 +02:00
config.py Enable OSProfiler support in Ironic 2017-07-07 15:58:28 -07:00
context.py Stop sending custom context values over RPC 2017-06-05 10:45:02 +00:00
dhcp_factory.py Change pxe dhcp options name to codes. 2017-10-13 12:50:58 +03:00
driver_factory.py Merge "Collect periodic tasks from all enabled hardware interfaces" into stable/queens 2018-04-30 15:55:35 +00:00
exception.py API: Node Traits API 2018-01-25 00:11:44 +00:00
fsm.py Removes unnecessary utf-8 encoding 2017-01-11 19:35:41 +05:30
grub_conf.template Fix for automated boot iso issue with IPA ramdisk 2015-04-10 09:09:53 -07:00
hash_ring.py Fixes a race condition in the hash ring code 2018-10-08 15:54:42 +02:00
i18n.py Merge "Update the documentation links - code comments" 2017-08-15 14:48:41 +00:00
image_service.py Rework keystone auth for glance 2017-11-17 11:40:14 -05:00
images.py Use jinja rendering from utils module 2017-10-20 18:20:03 +03:00
isolinux_config.template Add support for creating vfat and iso images 2014-08-26 21:18:11 +05:30
keystone.py Use adapters for neutronclient 2017-12-14 13:36:03 +02:00
network.py Update wording used in removal of VIFs 2018-05-08 21:27:15 +00:00
neutron.py Ensure we unbind flat network ports and clear BM mac addresses 2018-12-02 10:27:48 +00:00
policy.py API: Node Traits API 2018-01-25 00:11:44 +00:00
profiler.py Enable OSProfiler support in Ironic - follow-up 2017-08-18 14:41:44 +00:00
pxe_utils.py Agent rescue implementation 2018-01-25 13:26:33 -05:00
raid.py Add support for inband raid configuration agent ramdisk 2015-09-14 15:52:31 +00:00
release_mappings.py Add 10.1 and queens to the release mapping 2018-02-07 13:22:16 +01:00
rpc.py Enable OSProfiler support in Ironic 2017-07-07 15:58:28 -07:00
rpc_service.py Modifications for rolling upgrades 2017-07-13 12:16:30 -04:00
service.py Make config generator aware of 'default_log_levels' override 2017-04-13 16:51:03 +03:00
states.py Adds RPC calls for rescue interface 2018-01-15 23:50:39 -05:00
swift.py Auto-detect the defaults for [glance]swift_{account,temp_url_key,endpoint_url} 2017-12-12 11:48:06 +01:00
utils.py Simplify the logic of validate_network_port 2017-11-02 10:05:55 +08:00
wsgi_service.py Remove unused logging import 2017-02-17 08:28:28 +07:00