give openbao's own start the container's long timeout
This commit is contained in:
parent
567cd12300
commit
8d31f0ad27
1 changed files with 51 additions and 30 deletions
|
|
@ -853,10 +853,19 @@ let
|
|||
) names;
|
||||
}
|
||||
{
|
||||
# The container is `Type=notify`: its start job lasts as long as
|
||||
# OpenBao's first start, which a 1min limit cuts off mid-open.
|
||||
name = "the store's container is given five minutes to start";
|
||||
ok = lib.hasInfix "TimeoutStartSec=5min" allLocal.systemd.units."container@swarm-bao.service".text;
|
||||
# The container is `Type=notify`: its start job spans OpenBao's first
|
||||
# start, so OpenBao's own limit is raised too and sits a minute below
|
||||
# the container's. `Restart=` comes from upstream, so it shows the
|
||||
# lookup reaches the real unit.
|
||||
name = "openbao's start limit is raised and stays below its container's";
|
||||
ok =
|
||||
let
|
||||
inner = allLocal.containers.swarm-bao.config.systemd.services.openbao.serviceConfig;
|
||||
unit = allLocal.systemd.units."container@swarm-bao.service".text;
|
||||
in
|
||||
inner.Restart == "on-failure"
|
||||
&& inner.TimeoutStartSec == 240
|
||||
&& lib.hasInfix "TimeoutStartSec=300s" unit;
|
||||
}
|
||||
{
|
||||
name = "hive-priv is told the cache's address by the host's configuration";
|
||||
|
|
|
|||
Loading…
Reference in a new issue