Skip to content

Run ipfs/kubo v0.43.2 on every content and bootstrap node - #47

Merged
TakGN merged 1 commit into
mainfrom
kubo-v0.43.2
Nov 25, 2026
Merged

TakGN merged 1 commit into
mainfrom
kubo-v0.43.2

Conversation

@TakGN

@TakGN TakGN commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Part of libp2p/go-libp2p#3564. Closes the loop on ipfs/kubo#11480. Follows #41.

Why

kubo v0.43.2 (2026-11-24) is the release we asked for in ipfs/kubo#11480: v0.43.1 moved to go-libp2p v0.52.0, which fixes the inbound-slot leak. Its go.mod has no replace for go-libp2p any more, and the release notes describe our leak ("Nodes no longer stop accepting inbound connections").

Since #41 every content and bootstrap kubo has run our own rebuild of v0.43.1 on v0.52.0 (ghcr.io/ipni/kubo@sha256:71d7b748…, amd64, pushed by hand). At about 23 h on it (2026-11-18 10:14 UTC), all seven read 0–1 leaked slots. Before the fix, they leaked 270–470 a day on the bootstrappers and ~750 on content, at the same traffic, CPU and goroutines. This moves us back to the official image, so we no longer depend on a hand-built one.

What changes for the nodes

The same go-libp2p (v0.52.0), quic-go (0.64.1) and Go (1.26.5). Against our build, v0.43.2's go.mod also raises some indirect dependencies that our go mod tidy left alone. The largest are the pion WebRTC libraries (ice 4.0 → 4.4, dtls 3.1.5 → 3.1.16), behind webrtc-direct, which carries 0–40 connections per node. The rest are golang.org/x/* and small bumps. The kubo code is the same apart from tests and the changelog.

Change

  • roles/content/defaults/main.yml: content_kubo_image → ipfs/kubo v0.43.2, multi-arch index sha256:31b965f2…. The comment records what ran before it.
  • roles/bootstrap/defaults/main.yml: bootstrap_default_kubo_image → the same digest.
  • README.md: the Images note and the pinned-version note say v0.43.2.

Checked

  • The digest is the ipfs/kubo:v0.43.2 index on Docker Hub (amd64, arm64, arm/v7), from docker buildx imagetools inspect. The image was not pulled or run locally.
  • scripts/render-manifests.yml plus kubectl kustomize: both k8s/content and k8s/bootstrap render image: ipfs/kubo@sha256:31b965f2…. No kubo_image override is left in host_vars or group_vars.
  • --syntax-check on content.yml and bootstrap.yml, yamllint ., ansible-lint on both defaults files.

After merging

Merging deploys nothing; CI does not run content.yml or bootstrap.yml. Each run restarts that box's kubo(s). Both playbooks go one box at a time (production_rollout), so:

ansible-playbook content.yml --check --diff     # only the kubo image line, on each box
ansible-playbook content.yml
ansible-playbook bootstrap.yml --check --diff   # only the kubo image line, per instance
ansible-playbook bootstrap.yml

Then check with the hub Prometheus that every kubo is on the new image and the leak gauge stays at 0–1. The *InboundSlotsLeaking alerts in ipni/infra stay as a guard.

Rollback: set both defaults back to ghcr.io/ipni/kubo sha256:71d7b748… and re-run.

Not in this PR: the release notes say raised System.ConnsInbound limits can go. Ours (content 65536 from #10, bootstrap 262144 from #11) are left as they are; lowering them is a separate decision.

🤖 Generated with Claude Code

v0.43.2 is v0.43.1 on go-libp2p v0.52.0, which fixes the inbound-slot
leak. It replaces our own v0.43.1 rebuild on v0.52.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 25, 2026

Copy link
Copy Markdown

Claude review

This is a three-file change: it swaps the kubo image for content and bootstrap from the hand-built ghcr.io/ipni/kubo to ipfs/kubo v0.43.2, pinned by digest. It also updates comments and README text. I found no problems. k8s/content/kustomization.yaml.j2 and k8s/bootstrap/kustomization.yaml.j2 both take newName and digest from the two defaults you changed. The base manifests use the bare kubo image name, so the rename is picked up everywhere. scripts/recover-upstream-pinset.sh reads content_kubo_image from the same defaults. No other reference to the old image remains. The remaining mentions of v0.43.1 in roles/content/tasks/main.yml, roles/bootstrap/tasks/instance.yml and roles/bootstrap/defaults/main.yml describe history or the bundled peer list, so they are still accurate.

I did not verify that sha256:31b965f2… is the ipfs/kubo:v0.43.2 index on Docker Hub. The registry check needed approval that was not granted in this run. The PR says it was taken from docker buildx imagetools inspect, so a reviewer can re-run that against the digest.

No issues found.

claude-sonnet-5-5 at high effort · requested by TakGN · re-run with @claude review [sonnet|opus|fable] [low|medium|high|xhigh|max]

@TakGN
TakGN merged commit 81187b8 into main Nov 25, 2026
12 checks passed
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