Skip to content

fix(cluster-templates): derive recipe base from slot-derived build VMID#10

Open
gabbelitoV2 wants to merge 1 commit into
ConvoyPanel:mainfrom
gabbelitoV2:fix/cluster-templates-slot-vmid
Open

fix(cluster-templates): derive recipe base from slot-derived build VMID#10
gabbelitoV2 wants to merge 1 commit into
ConvoyPanel:mainfrom
gabbelitoV2:fix/cluster-templates-slot-vmid

Conversation

@gabbelitoV2

Copy link
Copy Markdown
Contributor

cf now builds each VM under a slot-derived id (recipe base * 100 + slot index) so parallel builds don't collide. The post-processor passes that large id as CF_BUILT_VMID, but this script used it directly as the per-node template base and its >= OFFSET guard then aborted with exit 1 -- which, under set -e in vzdump-and-cleanup.sh, killed the post-processor before the sidecar was written, so the whole build was reported as "no artifacts created" despite a good .vma.zst.

Recover the recipe base (RAW / 100 when >= OFFSET) before computing per-node VMIDs. A plain non-slot build still passes the base directly.

cf now builds each VM under a slot-derived id (recipe base * 100 + slot
index) so parallel builds don't collide. The post-processor passes that
large id as CF_BUILT_VMID, but this script used it directly as the
per-node template base and its `>= OFFSET` guard then aborted with
exit 1 -- which, under `set -e` in vzdump-and-cleanup.sh, killed the
post-processor before the sidecar was written, so the whole build was
reported as "no artifacts created" despite a good .vma.zst.

Recover the recipe base (RAW / 100 when >= OFFSET) before computing
per-node VMIDs. A plain non-slot build still passes the base directly.
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