Skip to content

Commit 3ba8a5c

Browse files
committed
Merge pull request xapi-project#1675 from yunleid/CA-124981
CA-124981: Port the fix of HFX-1078 from clearwater-sp1-lcm to trunk
2 parents c880dc6 + 27e10d9 commit 3ba8a5c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ocaml/xapi/storage_impl.ml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,13 @@ module Wrapper = functor(Impl: Server_impl) -> struct
307307
in
308308
Sr.replace vdi new_vdi_t sr_t;
309309
new_vdi_t
310-
with e ->
310+
with
311+
| Storage_interface.Internal_error("Storage_access.No_VDI") as e
312+
when ( op == Vdi_automaton.Deactivate || op == Vdi_automaton.Detach ) ->
313+
error "Storage_impl: caught exception %s while doing %s . Continuing as if succesful, being optimistic"
314+
(Printexc.to_string e) (Vdi_automaton.string_of_op op);
315+
vdi_t
316+
| e ->
311317
error "Storage_impl: dp:%s sr:%s vdi:%s op:%s error:%s backtrace:%s" dp sr vdi
312318
(Vdi_automaton.string_of_op op) (Printexc.to_string e) (Printexc.get_backtrace ());
313319
raise e

0 commit comments

Comments
 (0)