control: disabled routing to unknown DRBD state
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ae74dc8bd1
commit
9915bff2a7
1 changed files with 11 additions and 1 deletions
|
@ -154,7 +154,17 @@ defmodule HAHandler.Control do
|
||||||
)
|
)
|
||||||
|
|
||||||
unknown ->
|
unknown ->
|
||||||
Logger.warning("Unhandled DRBD/HAProxy state: #{inspect(unknown)}")
|
Logger.warning("Unknown DRBD/HAProxy state: #{inspect(unknown)}")
|
||||||
|
Logger.info(
|
||||||
|
"Disabling routing SSHFS to (likely) failed #{drbd_instance.haproxy_server}."
|
||||||
|
)
|
||||||
|
|
||||||
|
HAProxy.set_server(
|
||||||
|
@haproxy_drbd_backend,
|
||||||
|
drbd_instance.haproxy_server,
|
||||||
|
"state",
|
||||||
|
"maint"
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue