Host release: accept only bookkeeping on import; stop declaring console #104
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/host-import-bookkeeping"
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 first live
corn_host_releaserun (plan jobjmwumksxrya6drge) refused its own plan with container identity would change. Nothing was applied, and CT 125 was untouched.Cause:
beforeis its pre-read state, sovm_idis null. The identity guard compared that null to 125.consoleupdate. CT 125's console already equals the provider default, butcontainer.tfdeclared it explicitly. The import backfill therefore became a console change, and bpg/proxmox v0.122.0 reboots the container for any console change. Approving it would have restarted Corn.Fix:
container.tf: drop theconsoleblock. The provider default (enabled, tty, 2) is what CT 125 has.policy.py: on import, only provider bookkeeping may differ (vm_id,purge_on_destroy,delete_unreferenced_disks_on_destroy,migrate, timeouts). None of these reaches the Proxmox API. Anything else is refused as a real change. The approval text now says "no API change, no restart".Checked against a mock PVE API with the pinned provider: the import plan is approvable, the apply issues no write requests, and the re-plan is "no changes".