ironic-python-agent/ironic_python_agent/extensions
Julia Kreger 53d53290c3 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)
(cherry picked from commit 4746f09b3d)
2020-07-28 14:17:37 +00:00
..
__init__.py Organize agent extensions 2014-04-14 15:09:12 -07:00
base.py Replace use of functools.wraps() with six.wraps() 2018-02-01 15:15:00 -08:00
clean.py Fix a mis-formatted log message 2017-10-27 09:16:25 -07: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 14:17:37 +00:00
iscsi.py Prevent un-needed iscsi cleanup 2020-07-28 14:17:37 +00:00
log.py Add a log extension 2016-06-28 17:02:11 +01:00
rescue.py Rescue extension for CoreOS with DHCP tenant networks 2017-11-06 04:48:58 -05:00
standby.py Allow image checksum to be a URL 2019-02-25 14:28:09 +01:00