Skip to content

chore: deploy internal p2p bootnodes first#24220

Merged
alexghr merged 1 commit into
nextfrom
stack/chore-deploy-internal-p2p-bootnodes-first
Jun 23, 2026
Merged

chore: deploy internal p2p bootnodes first#24220
alexghr merged 1 commit into
nextfrom
stack/chore-deploy-internal-p2p-bootnodes-first

Conversation

@alexghr

@alexghr alexghr commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

.

@alexghr alexghr disabled auto-merge June 22, 2026 14:46
@alexghr

alexghr commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

Needs a rebase on top of next after #24225 lands

@alexghr alexghr changed the base branch from merge-train/spartan to next June 22, 2026 19:12
@alexghr alexghr added the claudebox Owned by claudebox. it can push to this PR. label Jun 22, 2026
@AztecBot AztecBot added the ci-draft Run CI on draft PRs. label Jun 22, 2026
@AztecBot AztecBot force-pushed the stack/chore-deploy-internal-p2p-bootnodes-first branch from ffb1a53 to 881f225 Compare June 22, 2026 19:16
@alexghr alexghr enabled auto-merge June 22, 2026 19:17
@alexghr alexghr added this pull request to the merge queue Jun 22, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 22, 2026
@alexghr alexghr added this pull request to the merge queue Jun 23, 2026
Merged via the queue into next with commit d69ab88 Jun 23, 2026
22 checks passed
@alexghr alexghr deleted the stack/chore-deploy-internal-p2p-bootnodes-first branch June 23, 2026 14:40
1sgtpepper pushed a commit to 1sgtpepper/aztec-packages that referenced this pull request Jun 26, 2026
)

## What

Adds a Terraform `moved` block so the p2p bootstrap helm release
refactor from AztecProtocol#24220 does not destroy and recreate the running bootstrap
node.

```hcl
moved {
  from = helm_release.releases["p2p_bootstrap"]
  to   = helm_release.p2p_bootstrap[0]
}
```

## Why

AztecProtocol#24220 ("deploy internal p2p bootnodes first") pulled `p2p_bootstrap`
out of the `helm_releases` map — where it was instantiated via
`helm_release.releases["p2p_bootstrap"]` — into its own
`helm_release.p2p_bootstrap` resource (with `count`, addressed as
`helm_release.p2p_bootstrap[0]`) so it could be applied before the rest
of the releases.

To Terraform those are two distinct resource addresses, so without a
`moved` block a `terraform apply` against an existing network plans to
destroy `helm_release.releases["p2p_bootstrap"]` and create
`helm_release.p2p_bootstrap[0]`, tearing down and recreating the live
bootstrap node. The `moved` block tells Terraform they are the same
release, so it updates in place instead.

The block is safe for networks deployed without an internal bootnode:
when `DEPLOY_INTERNAL_BOOTNODE` is false the source address never
existed in state and the `moved` is a no-op.

## Testing

- `terraform fmt -check` passes.
- `terraform init -backend=false` + `terraform validate` → `Success! The
configuration is valid.`

Refs AztecProtocol#24220

---
*Created by
[claudebox](https://claudebox.work/v2/sessions/8fa6b13b3bb222a6) ·
group: `slackbot`*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants