File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -1240,8 +1240,7 @@ module Forward = functor(Local: Custom_actions.CUSTOM_ACTIONS) -> struct
12401240 let local_fn = Local.VM. clean_shutdown ~vm in
12411241 with_vm_operation ~__context ~self: vm ~doc: " VM.clean_shutdown" ~op: `clean_shutdown
12421242 (fun () ->
1243- forward_vm_op ~local_fn ~__context ~vm (fun session_id rpc -> Client.VM. clean_shutdown rpc session_id vm);
1244- Xapi_vm_helpers. shutdown_delay ~__context ~vm
1243+ forward_vm_op ~local_fn ~__context ~vm (fun session_id rpc -> Client.VM. clean_shutdown rpc session_id vm)
12451244 );
12461245 let uuid = Db.VM. get_uuid ~__context ~self: vm in
12471246 let message_body =
@@ -1269,8 +1268,7 @@ module Forward = functor(Local: Custom_actions.CUSTOM_ACTIONS) -> struct
12691268 do_op_on ~__context ~local_fn: (Local.VM. hard_shutdown ~vm ) ~host: suitable_host (fun session_id rpc -> Client.VM. hard_shutdown rpc session_id vm)
12701269 end
12711270 else
1272- forward_vm_op ~local_fn ~__context ~vm (fun session_id rpc -> Client.VM. shutdown rpc session_id vm);
1273- Xapi_vm_helpers. shutdown_delay ~__context ~vm
1271+ forward_vm_op ~local_fn ~__context ~vm (fun session_id rpc -> Client.VM. shutdown rpc session_id vm)
12741272 );
12751273 update_vbd_operations ~__context ~vm ;
12761274 update_vif_operations ~__context ~vm ;
@@ -1349,8 +1347,7 @@ module Forward = functor(Local: Custom_actions.CUSTOM_ACTIONS) -> struct
13491347 else
13501348 (* if we're nt suspended then just forward to host that has vm running on it: *)
13511349 forward_vm_op ~vm in
1352- policy ~local_fn ~__context (fun session_id rpc -> Client.VM. hard_shutdown rpc session_id vm);
1353- Xapi_vm_helpers. shutdown_delay ~__context ~vm
1350+ policy ~local_fn ~__context (fun session_id rpc -> Client.VM. hard_shutdown rpc session_id vm)
13541351 );
13551352 let uuid = Db.VM. get_uuid ~__context ~self: vm in
13561353 let message_body =
Original file line number Diff line number Diff line change @@ -255,7 +255,8 @@ let hard_shutdown ~__context ~vm =
255255 Db.VM. set_suspend_VDI ~__context ~self: vm ~value: Ref. null;
256256 Xapi_vm_lifecycle. force_state_reset ~__context ~self: vm ~value: `Halted ;
257257 end else
258- Xapi_xenops. shutdown ~__context ~self: vm None
258+ Xapi_xenops. shutdown ~__context ~self: vm None ;
259+ Xapi_vm_helpers. shutdown_delay ~__context ~vm
259260
260261let clean_reboot ~__context ~vm =
261262 update_vm_virtual_hardware_platform_version ~__context ~vm ;
@@ -264,7 +265,8 @@ let clean_reboot ~__context ~vm =
264265let clean_shutdown_with_timeout ~__context ~vm timeout =
265266 Db.VM. set_ha_always_run ~__context ~self: vm ~value: false ;
266267 debug " Setting ha_always_run on vm=%s as false during VM.clean_shutdown" (Ref. string_of vm);
267- Xapi_xenops. shutdown ~__context ~self: vm (Some timeout)
268+ Xapi_xenops. shutdown ~__context ~self: vm (Some timeout);
269+ Xapi_vm_helpers. shutdown_delay ~__context ~vm
268270
269271let clean_shutdown ~__context ~vm =
270272 clean_shutdown_with_timeout ~__context ~vm ! Xapi_globs. domain_shutdown_total_timeout
You can’t perform that action at this time.
0 commit comments