Repository navigation
Description
What's the problem
The image-upgrade KVM phase failed at "pre-upgrade chain identities are readable" (tests/integration/lib/live-gates.sh:75-76 at 0cf8f02). The Monero read had succeeded, because the preceding check, which requires a valid Monero tip, passed. So the Tari block identity from tari_block_identity() (tests/integration/lib/live-upgrade-support.sh:410-412) was empty. The read runs a gRPC ListHeaders call inside the dashboard container, discards stderr (2>/dev/null) and does not retry. The failure detail therefore cannot say which chain failed or why. The upgrade was not attempted.
What it impacts
Any image-upgrade run with external chain nodes can fail with no usable diagnosis. The phase is required at the release gate (docs/dev/releasing.md), so one unexplained red blocks the gate until someone reruns and guesses. The KVM guest's remote-node-reachable stage (tests/os/image-upgrade-guest.sh) checks only the Monero ZMQ and RPC ports, so Tari reachability is never proven before the read.
How I found it
Job 378 on commit bdf2e2c (the pithead#4120 branch, head 0cf8f02) failed at this check. The guest system journal shows two dashboard exec calls in the window: Monero get_info (0.78s) and the Tari ListHeaders read (0.69s), with no third call. That rules out a timeout (the gRPC timeout is 8s). A fast error, an empty stream and an import or env error all fit. About 10 other image-upgrade runs with external nodes (11-10 to 11-17) passed this check, including two on the same bench and owner-payout branches, so the read logic works in general. The cause is not established.
How important is it
Normal priority, not a 2.0.4 release blocker on current evidence: one unreproduced failure among about 10 passes, on a proof run rather than a release gate. It becomes a blocker if an image-upgrade rerun at a commit carrying the #4118 fix fails at the same check. The diagnostics gap is worth closing either way.
Acceptance criteria
- A failure of the pre-upgrade identity check names which chain (Monero or Tari) could not be read and includes the captured error text, with no secrets.
- The Tari identity read retries a bounded number of times before the check fails.
- The guest remote-node-reachable stage proves the external Tari gRPC endpoint is reachable, or fails naming it.
- An image-upgrade run with external chain nodes passes the check, and a forced empty Tari read produces the chain-specific failure detail.
Possible solutions
- Retry
tari_block_identityand capture stderr into the failure detail (live-gates.sh:75-76, live-upgrade-support.sh:410-412). - Add a Tari gRPC reachability probe next to the Monero port checks in tests/os/image-upgrade-guest.sh.
- Treat an empty
ListHeadersstream (dashboard height ahead of the node tip) as a distinct, reported case. - Root cause is unknown: it may be the external Tari node or link rather than pithead. Rerun on the fix(test): KVM battery mines to the bench-supplied owner payouts (#4118) #4120 head first; a pass leaves only the diagnostics work.
Activity
pithead-developer commentedon Nov 20, 2026
Root cause found: the external Tari node refuses
ListHeadersUpdate: job 381 at 0cf8f02 failed identically at the same check (live-gates.sh:75-76), after job 378. Two failures in a row on the same lineage, so this is reproducible.
Cause (two verifiers agree, confirmed). The external Tari node a KVM bench hands the guest answers
GetVersion(6.2.0) andGetTipInfo(synced, LISTENING), but returnsPermissionDenied: ListHeaders method not made availablefor everyListHeaderscall.base_node.proto.ListHeadersis refused for from_height 0, tip-1, tip and tip+1, in both sort orders.GetBlocks,GetHeaderByHashandGetConstantsare refused too.tari_block_identity()(live-upgrade-support.sh:410-412) calls onlyListHeadersand sends stderr to/dev/null. The refusal becomes an empty read, which matches the ~0.7s exec in the guest journal. The cached dashboard sync state uses allowed calls, which is why "upgrade starts from synced chains" passes first.ListHeaders(not probed).Not caused by #4120. The failing call and target do not depend on it. No image-upgrade run exists on the external node without #4120, but a develop-tip run issues the same
ListHeadersto the same node. A rerun on the same node source will fail the same way.Fix (either one unblocks, independent):
list_headersto the external node's allowed gRPC methods. No code change.ListHeadersintari_block_identity(). Use an allowed call (GetTipInfogives tip height and hash, so the identity comparison would use the tip hash) and stop discarding stderr so aPermissionDeniedshows in the failure detail. Take this route if the allowlist is intentional hardening.The original diagnostics acceptance criteria (chain-specific failure detail, captured error text, Tari reachability probe in the guest) still stand and would have made this a one-look diagnosis.
Priority change. The earlier "not a blocker" call assumed one unreproduced failure. It is now deterministic for every image-upgrade run against that node, and the phase is required at the release gate, so I am moving this to v2.0.4 as a release blocker until fix 1 or 2 lands.
image-upgrade: tolerate stderr noise and report empty Tari reads; reg…
pithead-developer commentedon Nov 20, 2026
Blocked on #4118. Draft PR #4296 (head ec1c198) adds a three-attempt Tari identity read, a failure detail that names the chain and a masked gRPC error, a guest probe of the external Tari gRPC port, and a selftest (8 cases pass locally). It also updates the docs and the test inventory. The verifier's findings are fixed. The required tier4-kvm image-upgrade proof cannot run yet: the bench refuses image-upgrade jobs on commits that predate pithead#4120, and that PR (closing #4118) is still open. I posted this on the PR. Once #4118 closes, merge develop into the branch, submit the image-upgrade job, and add its evidence block. The GitHub tier 1-3 checks were still pending when I stopped. Not done: a
GetTipInfofallback for nodes that refuseListHeaders, because the post-upgrade identity check needs a hash at a past height. The release-blocking cause still needs the node owner to allowListHeaders, or an owner decision on that fallback.The runner resumes this issue when that one closes.
pithead-developer commentedon Nov 21, 2026
The image-upgrade gate passes at develop
b6f325161d24a84aa4e18e1b635cd50bbdf96f49: tier4-kvm job 383 on a KVM bench,phase image-upgrade: passedat 2026-11-21T02:32Z.The cause of the earlier failures was external. The remote Tari node used by the KVM benches refused
ListHeaders; it now allows it. A direct probe returned the header at height 391000, and its hash matches the public explorer.So this no longer blocks the 2.0.4 cut, and I removed
release-blocker. The diagnostic improvement in #4296 (name the chain and the error when the identity read fails) is still useful and can land when its proof is green, but the release does not wait for it.image-upgrade: test the identity failure detail and mask hostnames in…
image-upgrade: shfmt the Tari identity selftest (#4294)
image-upgrade: drop explanatory comments from the Tari identity lib (#…
pithead-developer commentedon Nov 21, 2026
Merged in #4296.
image-upgrade: name the chain and error when the pre-upgrade Tari ide…