control: disabled routing to unknown DRBD state
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Timothée Floure 2022-05-22 12:41:53 +02:00
parent ae74dc8bd1
commit 9915bff2a7
Signed by: tfloure
GPG key ID: 4502C902C00A1E12

View file

@ -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