Repository navigation
docs(repo): record known issues and refresh the quick-start run - #179
Conversation
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.
Two problems found after the 1.0.0 release are recorded as known issues in the changelog and README, with their workarounds: a gate whose --hub names a host waits on libcurl's own name lookup for every ticket-list download when the DNS server does not answer, and host-side scripts cannot write into the root-owned build/ and lab/runtime/ on Docker Engine for Linux. The README also says which DNS behaviour the hub_integration and hub_link_logs tests need. The quick-start output in both READMEs is replaced with a run from the current tree, which shows the gate's rejection diagnostic and the link checks the April run did not.
|
Yuki Tanaka · reviewer Why does the hub resolver not cover the ticket-list download? 为什么 hub 的解析进程管不到票单下载? |
|
Mateo Rossi · author The resolver keeps the address for hub requests, but the download hands the host name to libcurl, which resolves it itself on the scan loop. Until that changes, an IP address in 解析进程负责 hub 请求所用的地址,但下载时把主机名直接交给 libcurl,由它在扫码循环里自己解析。在改掉之前,给 |
|
Noah Williams · reviewer Is the 20-second figure a timeout we set? 20 秒是我们设置的超时吗? |
|
Mateo Rossi · author No. It is how long the system resolver takes to give up with two unresponsive name servers in the default 不是。那是默认 |
Why
Two problems found after 1.0.0 need to be written where operators look, with workarounds: a gate whose
--hubnames a host stalls on ticket-list downloads when DNS does not answer, and host-side scripts fail on root-owned files on Docker Engine for Linux. The quick-start sample output in the READMEs also no longer matched what the walk-through prints.What changed
CHANGELOG.mdand Chinese version, underUnreleased,Known issues: with a host name in--hub, the ticket-list download resolves it through libcurl on the scan loop, so an unresponsive DNS server stalls scans until the system resolver gives up (about 20 seconds with two unresponsive name servers), again with each 20-second download, and stopping the gate waits too; configure--hubwith an IP address. Root-ownedbuild/andlab/runtime/are fixed withsudo chown -R "$USER" build lab/runtime.hub_integrationandhub_link_logsneed name servers that answer or refuse; the host-side scripts affected by root-owned files are listed, and Docker Desktop is not affected.scripts/quick-start.pyfrom this tree. It now shows the south gate's ownreason=hub_rejectedline and connections from the once-a-second link check, and a new paragraph explains both.How to verify
Requires Docker. From the repository root:
Expect
north: ACCEPT,south: REJECT,north, hub stopped: ACCEPTand log lines of the same kinds as the README; timestamps, ports and the number of link-check connection lines differ between runs. Check that the English and Chinese READMEs and changelogs say the same. No code changes.背景
1.0.0 发布后发现两个问题,需要连同绕行办法写在运维人员会看的地方:
--hub写的是主机名时,DNS 不应答会让闸机下载票单时卡住;在 Linux 版 Docker Engine 上,宿主机脚本会碰到属于 root 的文件。README 里快速开始的示例输出也和演练脚本实际打印的不一样了。改动
CHANGELOG.md及中文版,在“未发布”下新增“已知问题”:--hub为主机名时,票单下载在扫码循环里由 libcurl 解析主机名,DNS 不应答就会让扫码一直等到系统解析器放弃(两个名字服务器都不应答时约 20 秒),每 20 秒一次的下载都会重演,停止闸机也要等;办法是给--hub配 IP 地址。build/和lab/runtime/属于 root 的问题,用sudo chown -R "$USER" build lab/runtime解决。hub_integration和hub_link_logs需要会应答或会拒绝的名字服务器;列出受 root 文件影响的宿主机脚本,并说明 Docker Desktop 不受影响。scripts/quick-start.py的结果。新的输出里有南门闸机自己的reason=hub_rejected一行,以及每秒一次连接检查产生的连接记录,新增一段解释这两点。怎么验证
需要 Docker。在仓库根目录运行:
应看到
north: ACCEPT、south: REJECT、north, hub stopped: ACCEPT,以及和 README 同类的日志行;时间戳、端口和连接检查产生的行数每次都不同。核对中英文 README 和更新记录内容一致。没有代码改动。