diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-09-26 22:25:17 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-09-26 22:25:17 +0000 |
commit | 378197caee58ba9cd2ace9a6a1e8ea3194ac6b11 (patch) | |
tree | bb919fee5fe3d5de2c47466cb44eedd471c247aa | |
parent | 7dba81f20093f94dc01593aefef1abda4bfef117 (diff) | |
parent | cd70f514d6615d954dcc7e80c6438078a945b46e (diff) | |
download | ironic-python-agent-378197caee58ba9cd2ace9a6a1e8ea3194ac6b11.tar.gz |
Merge "Make the erase_devices clean step abortable"
-rw-r--r-- | ironic_python_agent/hardware.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ironic_python_agent/hardware.py b/ironic_python_agent/hardware.py index 0eb2fdcb..cd38fc43 100644 --- a/ironic_python_agent/hardware.py +++ b/ironic_python_agent/hardware.py @@ -268,6 +268,12 @@ class HardwareManager(object): 'reboot_requested': Whether the agent should request Ironic reboots the node via the power driver after the operation completes. + 'abortable': Boolean value. Whether the clean step can be + stopped by the operator or not. Some clean step may + cause non-reversible damage to a machine if interrupted + (i.e firmware update), for such steps this parameter + should be set to False. If no value is set for this + parameter, Ironic will consider False (non-abortable). } If multiple hardware managers return the same step name, the priority @@ -291,7 +297,8 @@ class HardwareManager(object): 'step': 'erase_devices', 'priority': 10, 'interface': 'deploy', - 'reboot_requested': False + 'reboot_requested': False, + 'abortable': True } ] |