Repository navigation
fix(lab): wait for gate lists without the monitoring password - #178
Merged
Merged
Conversation
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.
Contributor
Author
|
Wang Hao · reviewer Does anything else in the check use 在临时密码生成之前,检查里还有别处用到 |
Contributor
Author
|
Noah Williams · author Only the earlier 只有前面查看监控服务是否在运行的那次 |
Contributor
Author
|
Wang Hao · reviewer Does the fix change what the check does when a password is set? 设置了密码时,这个修复会改变检查的行为吗? |
Contributor
Author
|
Noah Williams · author No. The same gates are polled for 不会。仍然最多用 90 秒轮询同样几台闸机的 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
lab/monitoring-check.shgenerates a temporary Grafana password whenGATEPOST_GRAFANA_ADMIN_PASSWORDis unset, but only after it has waited for every gate to install its ticket list. That wait randocker compose execthroughlab/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
docker compose -f lab/compose.yaml execinstead of the monitoring compose files; the gates are venue services.CHANGELOG.mdandCHANGELOG.zh-CN.mdgain anUnreleasedsection 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 -vThe 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停下。