File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ public static enum PoolType {
4545 public enum HeartBeatAction {
4646 HARDRESET ("hardreset" , "-c" ),
4747 DESTROYVMS ("destroyvms" , "-d" ),
48+ NOACTION ("noaction" , "-n" ),
4849 STOPAGENT ("stopagent" , "-s" );
4950
5051 String _action ;
Original file line number Diff line number Diff line change @@ -171,6 +171,11 @@ private void check() {
171171 // Perform action if can't write to heartbeat file.
172172 // This will raise an alert on the mgmt server
173173 s_logger .warn ("write heartbeat failed: " + result );
174+ if (HeartBeatAction .NOACTION .equals (s_heartBeatFailureAction )) {
175+ s_logger .warn ("No action will be performed on storage pool: " + primaryStoragePool ._poolUUID );
176+ _storagePoolCheckStatus .remove (primaryStoragePool ._poolUUID );
177+ return true ;
178+ }
174179
175180 performAction (primaryStoragePool );
176181 _storagePoolCheckStatus .put (primaryStoragePool ._poolUUID , STATUS_TERMINATED );
You can’t perform that action at this time.
0 commit comments