Skip to content

Commit d02e3b5

Browse files
authored
CA-403851 stop management server in Pool.eject () (#6346)
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. Tested manually; running a BST now.
2 parents d24d122 + 9b1b8d4 commit d02e3b5

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)