ironic/ironic/drivers
Pavlo Shchelokovskyy 35cfc4a147 Fix take over for ACTIVE nodes in PXEBoot
when taking over an ACTIVE netboot-ed node with driver based on PXEBoot,
the `PXEBoot.prepare_instance` method fails as our current logic of
generating a 'service' mode PXE config relies on editing PXE env files
that must already exist on disk but are missing from the new conductor host
in this case.

This patch forces this method to first re-create the PXE env from scratch
for ACTIVE nodes when PXE config file is missing before attempting
to change it.
It does not try to re-download the deploy ramdisk and generate options for it
though.
It also does not try to re-set boot device for ACTIVE nodes as that
should have already have been set earlier before actual transition to
ACTIVE.

In order to make the logic cleaner, this patch also refactors private methods
for building pxe options to be deploy-vs-instance oriented instead of
pxe-vs-ipxe oriented.

Change-Id: I264d5477523f57552aadf2809021a9a63fee2730
Partial-Bug: #1646038
Closes-Bug: #1516816
(cherry picked from commit 035ad6a60b)
2017-01-25 11:00:45 +00:00
..
modules Fix take over for ACTIVE nodes in PXEBoot 2017-01-25 11:00:45 +00:00
__init__.py Remove copyright from empty files 2014-01-07 21:05:01 +08:00
agent.py Mark untested drivers as unsupported 2016-09-16 10:48:58 -04:00
base.py Update unit tests for neutron interface 2016-09-08 08:56:46 -07:00
drac.py DRAC: list unfinished jobs 2016-09-21 15:46:46 +01:00
fake.py Merge "Mark untested drivers as unsupported" 2016-09-16 17:37:50 +00:00
ilo.py Adds RAID interface for 'iscsi_ilo' 2016-05-09 08:26:57 +00:00
irmc.py Add hardware inspection module for iRMC driver 2016-02-12 11:28:38 +09:00
oneview.py Add Dynamic Allocation feature for the OneView drivers 2016-08-04 13:10:02 -03:00
pxe.py Mark untested drivers as unsupported 2016-09-16 10:48:58 -04:00
raid_config_schema.json RAID interface to support JBOD volumes 2016-05-04 14:28:48 +00:00
utils.py Merge "Pass swiftclient header values as strings" 2016-08-25 23:23:42 +00:00