Skip to content

Commit 6295f0e

Browse files
committed
CA-156264: Starting SMAPIv1 proxies on master just after SMAPIv1 plugins are registered and Starting SMAPIv1 proxies on slave after database connections are done to find SM objects.
Signed-off-by: Sharad Yadav <[email protected]>
1 parent b1bfa34 commit 6295f0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ocaml/xapi/xapi.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ let server_init() =
799799
"Initialising random number generator", [], random_setup;
800800
"Running startup check", [], startup_check;
801801
"Registering SMAPIv1 plugins", [Startup.OnlyMaster], Sm.register;
802+
"Starting SMAPIv1 proxies", [Startup.OnlyMaster], Storage_access.start_smapiv1_servers;
802803
"Initialising SM state", [], Storage_impl.initialise;
803804
"Starting SM internal event service", [], Storage_task.Updates.Scheduler.start;
804805
"Starting SM service", [], Storage_access.start;
@@ -883,7 +884,7 @@ let server_init() =
883884

884885
Server_helpers.exec_with_new_task "server_init" ~task_in_database:true (fun __context ->
885886
Startup.run ~__context [
886-
"Starting SMAPIv1 proxies", [], Storage_access.start_smapiv1_servers;
887+
"Starting SMAPIv1 proxies", [Startup.OnlySlave], Storage_access.start_smapiv1_servers;
887888
"Checking emergency network reset", [], check_network_reset;
888889
"Upgrade bonds to Boston", [Startup.NoExnRaising], Sync_networking.fix_bonds ~__context;
889890
"Synchronising bonds on slave with master", [Startup.OnlySlave; Startup.NoExnRaising], Sync_networking.copy_bonds_from_master ~__context;

0 commit comments

Comments
 (0)