File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2045,6 +2045,19 @@ let eject_self ~__context ~host =
2045
2045
control_domains_to_destroy
2046
2046
with _ -> ()
2047
2047
) ;
2048
+ ( try
2049
+ (* Restore console idle timeout *)
2050
+ Xapi_host. set_console_idle_timeout ~__context ~self: host
2051
+ ~value: 0L ;
2052
+ (* Restore SSH service to default state *)
2053
+ Xapi_host. set_ssh_enabled_timeout ~__context ~self: host
2054
+ ~value: 0L ;
2055
+ Xapi_host. enable_ssh ~__context ~self: host
2056
+ with e ->
2057
+ warn " Caught %s while restoring ssh service. Ignoring"
2058
+ (Printexc. to_string e)
2059
+ ) ;
2060
+
2048
2061
debug " Pool.eject: setting our role to be master" ;
2049
2062
Xapi_pool_transition. set_role Pool_role. Master ;
2050
2063
debug " Pool.eject: forgetting pool secret" ;
You can’t perform that action at this time.
0 commit comments