Merge "Catch any exception for Cleaning"
This commit is contained in:
commit
f96b258709
@ -114,8 +114,9 @@ def do_node_clean(task, clean_steps=None, disable_ramdisk=False):
|
||||
try:
|
||||
conductor_steps.set_node_cleaning_steps(
|
||||
task, disable_ramdisk=disable_ramdisk)
|
||||
except (exception.InvalidParameterValue,
|
||||
exception.NodeCleaningFailure) as e:
|
||||
except Exception as e:
|
||||
# Catch all exceptions and follow the error handling
|
||||
# path so things are cleaned up properly.
|
||||
msg = (_('Cannot clean node %(node)s: %(msg)s')
|
||||
% {'node': node.uuid, 'msg': e})
|
||||
return utils.cleaning_error_handler(task, msg)
|
||||
|
@ -0,0 +1,8 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Fixes an issue where unexpected exceptions coming from the process to
|
||||
start cleaning would not trigger the cleaning_error_handler which
|
||||
performs the needful internal resets to permit cleaning to be retried
|
||||
again in the future. Now any error which is encountered during the
|
||||
launch of cleaning will trigger the error handler.
|
Loading…
x
Reference in New Issue
Block a user