ironic-python-agent/ironic_python_agent/extensions
Julia Kreger 4746f09b3d Prevent un-needed iscsi cleanup
When we added software raid support, we started calling bootloader
installation. As time went on, we ehnanced that code path for non
RAID cases in order to ensure that UEFI nvram was setup
for the instance to boot properly.

Somewhere in this process, we missed a possible failure case where
the iscsi client tgtadm may return failures. Obviously, the correct
path is to not call iscsi teardown if we don't need to.

Since it was always semi-opportunistic teardown, we can't blindly
catch any error, and if we started iSCSI and failed to tear the
connection down, we might want to still fail, so this change
moves the logic over to use a flag on the agent object which
one extension to set the flag and the other to read it and take
action based upon that.

Change-Id: Id3b1ae5e59282f4109f6246d5614d44c93aefa7c
Story: 2007937
Task: 40395
(cherry picked from commit 2a56ee03b6)
2020-07-28 07:23:46 +00:00
..
__init__.py Organize agent extensions 2014-04-14 15:09:12 -07:00
base.py Fix confusing logging when running asynchronous commands 2020-06-29 15:53:32 -07:00
clean.py Add an ability to run in-band deploy steps 2020-04-06 10:24:08 +02:00
deploy.py Add raid.apply_configuration deploy step 2020-04-20 12:50:14 +02:00
flow.py Update to hacking 0.12.0 and use new checks 2016-11-08 11:31:18 -08:00
image.py Prevent un-needed iscsi cleanup 2020-07-28 07:23:46 +00:00
iscsi.py Prevent un-needed iscsi cleanup 2020-07-28 07:23:46 +00:00
log.py Add a log extension 2016-06-28 17:02:11 +01:00
rescue.py Use crypt to generate salt 2020-03-19 15:16:00 +01:00
standby.py Fixes minor issues in the read() retries patch 2020-06-30 16:45:03 +00:00