Browse files

CA-91927: Xapi_xenops event thread should update VM.allowed_operation…

…s on master instead of localhost.

Signed-off-by: John Else <>
  • Loading branch information...
1 parent e6a4b29 commit a52f64b2d71b04045fbee2eda56233a7f714df57 @johnelse johnelse committed with jonludlam Sep 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 ocaml/xapi/
@@ -998,7 +998,8 @@ let update_vm ~__context id =
Xenops_cache.update_vm id ( snd info);
if !should_update_allowed_operations then
- Xapi_vm_lifecycle.update_allowed_operations ~__context ~self;
+ Helpers.call_api_functions ~__context
+ (fun rpc session_id -> XenAPI.VM.update_allowed_operations ~rpc ~session_id ~self);
with e ->
error "xenopsd event: Caught %s while updating VM: has this VM been removed while this host is offline?" (string_of_exn e)

0 comments on commit a52f64b

Please sign in to comment.