The adopted Guest leaves its template file alone (THE-122) #11
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-media!11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "paperclip/THE-122-adopted-template"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The import reads the template file's identity and leaves its
urlempty. The provider'soverwritedefault is on, so the first plan after the import proposesoverwrite = true; the apply sets it, and the next refreshing plan asks the empty URL for the file:That is one apply and then no plan, which is exactly the state the ten adopted media Guests are in after their imports.
overwrite = falsestill fetches a template that is absent and leaves the shared file alone when it is there. It is the same residue THE-65 answered for 117.This is a follow-up to #10. Merge it before the deploy's refreshing plan walks the ten imported Guests; with it, the guest step applies
overwrite = falseandtimeout_startonce and then plans clean.Review started (round 1/5) on
06988a0910— reading the diff now.olympus/infra-media#11 · head
06988a0· round 1/5 · verdict mergeRecommendation: merge
One hunk, seven lines:
overwrite = falseonproxmox_download_file.debian_13_base(modules/guest/container.tf:14-19). Spec source: the PR body. The linked work itempaperclip:THE-122is the W1.4 envelope (deploy-on-merge plus the W1 exit carry-overs) and this PR is the follow-up to #10 inside it; the defect statement lives in the body, so the body is the contract I judged.Spec
Every claim in the body, driven against the provider version this repository locks — bpg/proxmox 0.125.0, read from
tofu providers schema -json(the lock's own version) and from the tagged source, not from the registry docs:urlemptyread()sets onlySizefrom the datastore listing (fwprovider/nodes/resource_download_file.go:534-561); url/checksum come from config/state aloneoverwrite = trueDefault: booldefault.StaticBool(true)(:335-344)state.Overwrite(:600-613), and the plan modifier gates its check onplan.Overwrite(:113)overwrite = falsestill fetches a template that is absentDownloadFileByURLwithout consultingOverwrite(:419-445), so an absent file is fetched as beforeoverwrite: true -> false; every later refresh skips both size checksFindings:
modules/guest/container.tf:14-18— the comment says the empty-URL plan "dies there"; at this version it does not. The plan modifier answers withresp.Diagnostics.AddWarning(...)and returns (resource_download_file.go:128-137), and the Read-side failure is atflog.Warn(:601-608), so the plan completes resource-clean and carries that warning on every run. What the hunk actually buys is the end of the warning and the disarming of the replace path (RequiresReplaceat :140-153, live whenever aurl_sizewas readable), not the unblocking of a failing plan. The fix's contract — one apply, then a clean plan — is unaffected, so this is the wording and not the behaviour. "warns on every plan" instead of "dies there" makes the comment true, and the same sentence in the PR body reads the same way.Standards
standards: no repo conventions found—olympus/infra-mediaat this head carries noAGENTS.md,CONTRIBUTING.mdorcoding-standards.md. Judged by general good practice plus the org records, which do bind:olympus/workshop docs/adr/0011-a-deploy-never-destroys-or-replaces.md §Decision(read atorigin/mainf86e332):overwriteis not ForceNew (force_new=falsein the pinned schema) and both plan-modifier checks are gated on it, so this is an in-place update and nothing is replaced. Pass.…/0001-declare-and-lock-the-toolchain.md: untouched; every Stack was validated through the pinned toolchain, below. Pass.container.tf:1-3,:33-36,:130-144— so the smell baseline finds nothing to name here.No standards findings.
Verified by hand
make validateat head: 12/12 Stacks valid (mise exec, OpenTofu 1.12.6, provider 0.125.0 from the repo lock).make checkat head: 8 runs, 6 green, 2 red. Both reds arescripts/tests/deploy-workflow.sh:51,printf: write error: Broken pipe—assert_containspipesprintfintogrep -qunderpipefail, and grep's early exit intermittently fails the assertion. That file is byte-identical at base and head (git diff --quiet 35ab317 06988a0 -- scripts/ .forgejo/ Makefile→ identical), so the diff did not introduce it;make deploy-testalone is 4/4 green at head, andmake checkat base is 4/4 green.pr-checks / check (pull_request)success (run 39). That job runsmake checkandmake validateand nothing else (.forgejo/workflows/pr-checks.yml:22,24).Could not verify
pr-checksis check and validate only, anddocs/deploy.md:43records it ("no plan workflow has landed in this repository yet") — andguest-plan-checkneeds PROD's plan key, which this review does not hold. Replacement risk was settled statically instead:force_new=false, plus both plan modifiers and the Read URL fetch gated onoverwrite.Named, not charged
scripts/tests/deploy-workflow.sh:51— the flaky assertion above. Pre-existing, outside the diff, and worth its own ticket.datastore:file_name. A Stack with no state entry whose datastore already holds the file still errors at Create ("File already exists…",resource_download_file.go:447-455) whateveroverwritesays, because Create never consults it. Pre-existing shape; this hunk neither fixes nor worsens it.docs/deploy.md:41the ten still have no state records, so no plan walks them today.Spec: 1 finding, 1 advisory — worst: the overstated consequence at
container.tf:14-18, a wording fix. Standards: 0 findings — worst: none.