Skip to content

fix(proxmox): complete the Installed mark when sync marks a VM running (#26)#28

Merged
Zorlin merged 1 commit into
mainfrom
fix/sync-complete-installed-mark
Jun 21, 2026
Merged

fix(proxmox): complete the Installed mark when sync marks a VM running (#26)#28
Zorlin merged 1 commit into
mainfrom
fix/sync-complete-installed-mark

Conversation

@Zorlin

@Zorlin Zorlin commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

Dragonfly #26 — server-side companion to riffcc/jetpack#39.

The Proxmox sync daemon marks a running VM Installed, but only set status.state — leaving os_installed = None and progress < 100 when the eager pre-reboot workflow-event mark was lost. A sync-marked Installed box then failed Jetpack's checks and the reimage OS-fallback had nothing to resolve to.

Fix: extract apply_proxmox_vm_state(); when a VM reports running, complete the mark (os_installed from os_choice, clear os_choice, progress = 100), mirroring the workflow-event path. Every running Proxmox VM now reaches a whole Installed state within the ~90s sync window regardless of whether the pre-reboot notification landed.

+4 unit tests (apply_proxmox_vm_state extracted as a free fn for testability).

🤖 Generated with Claude Code

#26)

The Proxmox sync daemon (90s loop) marks a running VM Installed but only
set status.state — leaving os_installed=None and progress<100 when the
eager pre-reboot workflow-event mark was lost (network blip / agent crash
before the notification landed). A sync-marked Installed box then failed
Jetpack's checks and the reimage OS-fallback had nothing to resolve to.

Extract apply_proxmox_vm_state(): when a VM reports 'running', also
complete the mark (os_installed from os_choice, os_choice cleared,
progress 100), mirroring the workflow-event path. Every running Proxmox
VM now reaches a whole Installed state within the sync window regardless
of whether the pre-reboot notification landed.

+4 unit tests (apply_proxmox_vm_state extracted as a free fn).

Companion to riffcc/jetpack#39 (converge never implicitly reimages).

Refs: #26

Co-Authored-By: Claude <noreply@anthropic.com>
@Zorlin Zorlin merged commit b07d165 into main Jun 21, 2026
4 checks passed
@Zorlin Zorlin deleted the fix/sync-complete-installed-mark branch June 21, 2026 09:30
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