Skip to content

fix(lab): wait for gate lists without the monitoring password - #178

Merged
TN019 merged 13 commits into
mainfrom
fix/monitoring-check-password
Dec 1, 2026
Merged

TN019 merged 13 commits into
mainfrom
fix/monitoring-check-password

Conversation

@TN019

@TN019 TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Why

lab/monitoring-check.sh generates a temporary Grafana password when GATEPOST_GRAFANA_ADMIN_PASSWORD is unset, but only after it has waited for every gate to install its ticket list. That wait ran docker compose exec through lab/monitoring.yaml, which refuses to load without the password, so every attempt failed and the check reported that a gate had not installed its list.

What changed

  • The ticket-list wait uses docker compose -f lab/compose.yaml exec instead of the monitoring compose files; the gates are venue services.
  • CHANGELOG.md and CHANGELOG.zh-CN.md gain an Unreleased section with this fix.

How to verify

Requires Docker. From the repository root, with the password unset:

./scripts/dev.sh build-image
sh lab/keys.sh
docker compose -f lab/compose.yaml up -d --build
unset GATEPOST_GRAFANA_ADMIN_PASSWORD
sh lab/monitoring-check.sh
docker compose -f lab/compose.yaml down -v

The check should get past the ticket-list wait, print that it generated a temporary Grafana administrator password, and go on to the dashboard checks instead of stopping with a monitored gate has not installed its ticket list.


背景

GATEPOST_GRAFANA_ADMIN_PASSWORD 未设置时,lab/monitoring-check.sh 会生成一个临时的 Grafana 密码,但要等所有闸机装好票单之后才生成。这段等待通过 lab/monitoring.yaml 执行 docker compose exec,而没有密码时这个文件拒绝加载,于是每次尝试都失败,检查就报告有闸机没装好票单。

改动

  • 等待票单时改用 docker compose -f lab/compose.yaml exec,不再带上监控的 compose 文件;闸机本来就是场馆服务。
  • CHANGELOG.md 和 CHANGELOG.zh-CN.md 新增“未发布”一节,记下这个修复。

怎么验证

需要 Docker。在仓库根目录、未设置密码的情况下运行:

./scripts/dev.sh build-image
sh lab/keys.sh
docker compose -f lab/compose.yaml up -d --build
unset GATEPOST_GRAFANA_ADMIN_PASSWORD
sh lab/monitoring-check.sh
docker compose -f lab/compose.yaml down -v

检查应能通过票单等待,打印已生成临时 Grafana 管理员密码,并继续做仪表板检查,而不是以 a monitored gate has not installed its ticket list 停下。

Ingrid Larsen and others added 13 commits October 30, 2026 15:50
The hub now mails when the data centre is unreachable or the uplink watcher stops.
This review covers the north entrance ticket list failure, the lab reproductions, recovery work, and remaining limitations.
Clarify when extra tickets are needed to reproduce the sender hold.
This decision preserves path-MTU feedback and makes each gate's installed list visible. It also aligns the hub's served and decision lists and bounds the TLS status listener.

Co-authored-by: Yuki Tanaka <yuki.tanaka@elsworne.example>
Add the north entrance session and update the device TLS outputs and the
offline-report session from the release code, so the committed outputs match
1.0.0.
monitoring-check.sh generates a temporary Grafana password when none is
set, but only after waiting for every gate to install its ticket list.
That wait ran docker compose exec through lab/monitoring.yaml, which
refuses to load without the password, so every attempt failed and the
check reported that a gate had not installed its list. Wait through the
venue compose file instead; the gates are venue services.
@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Wang Hao · reviewer

Does anything else in the check use lab/monitoring.yaml before the temporary password exists?


在临时密码生成之前,检查里还有别处用到 lab/monitoring.yaml 吗?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Noah Williams · author

Only the earlier ps that looks for running monitoring services, and it already passes a placeholder password for that one command. The ticket-list wait was the only other call before the password is set.


只有前面查看监控服务是否在运行的那次 ps,它已经为这一条命令单独传了占位密码。在设置密码之前,另外只有票单等待这一处。

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Wang Hao · reviewer

Does the fix change what the check does when a password is set?


设置了密码时,这个修复会改变检查的行为吗?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Noah Williams · author

No. The same gates are polled for tickets.txt.etag for up to 90 seconds; only the compose files on that command changed.


不会。仍然最多用 90 秒轮询同样几台闸机的 tickets.txt.etag,只是那条命令用的 compose 文件变了。

@TN019
TN019 merged commit eeabf3b into main Dec 1, 2026
11 of 15 checks passed
@TN019
TN019 deleted the fix/monitoring-check-password branch December 1, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant