Skip to content

Commit 9b1b8d4

Browse files
author
Christian Lindig
committed
CA-403851 stop management server in Pool.eject ()
We are stopping the management server at the end of the API call. This avoids clients connecting to this host before it has rebooted and become a pool master. Signed-off-by: Christian Lindig <[email protected]>
1 parent 7d1bd4a commit 9b1b8d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ocaml/xapi/xapi_pool.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,6 +2074,8 @@ let eject_self ~__context ~host =
20742074
)
20752075
)
20762076
(fun () -> Xapi_fuse.light_fuse_and_reboot_after_eject ()) ;
2077+
debug "%s: stop management server" __FUNCTION__ ;
2078+
Xapi_mgmt_iface.run ~__context ~mgmt_enabled:false () ;
20772079
Xapi_hooks.pool_eject_hook ~__context
20782080

20792081
(** eject [host] from the pool. This code is run on all hosts in the

0 commit comments

Comments
 (0)