Chore: Update Proxmox provider without unexpected VM changes #75

Open
opened 2026-11-29 03:20:49 +01:00 by claude-bot · 0 comments

Why

01-proxmox-infra stays on @muhlba91/pulumi-proxmoxve 8.2.1 for now. On 2026-11-29, a local preview with 8.7.0 planned in-place updates to all 6 k3s VMs and the Ansible container. The update wasn't merged.

Merging to main deploys 01 automatically, without a refresh first. Pulumi's protect: true blocks deletes and replacements, but not in-place updates.

This isn't urgent: npm audit reported no findings in 01.

What we know

With 8.2.1, the preview showed 27 unchanged. With 8.7.0, it showed 10 to update and 17 unchanged, with nothing replaced or deleted. Three of the updates were only provider versions. These are the others:

Resource Planned change
All 6 k3s VMs queues: [unknown] added to every disk
All 6 k3s VMs initialization.userAccount.password: [secret] => [secret]
Ansible container disk.replicate: false => true
Ansible container purgeOnDestroy: true and timeoutMigrate: 1800 added
Ansible container migrate and deleteUnreferencedDisksOnDestroy added as [unknown]
  • The cause of each change is unknown. The preview doesn't show what would be sent to Proxmox, or whether a VM would need a restart.
  • The VMs use rebootAfterUpdate: false, so some changes might not take effect until they restart.
  • With 8.2.1, a preview-only refresh could read the Proxmox resources with the nodes on Proxmox VE 9.3.1. It found no VM differences. This didn't test making changes.
  • Pulumi provider versions don't match Proxmox VE versions, so running Proxmox VE 9 doesn't by itself require a newer provider.
  • No report matching the queues change was found. The closest was bpg/terraform-provider-proxmox#3291, about defaults that keep showing as changes in Pulumi. It may not be related.
  • #72 added protection: true to the Ansible container after the 8.7.0 preview, so run that preview again.

Until this is done

  • Don't run plain npm update in 01-proxmox-infra. The ^8.2.1 range allows 8.7.0.
  • Don't hide these changes with ignoreChanges before their cause is known.

Tasks

Investigate (local only)

  • Run a preview-only refresh with 8.2.1 and look into any differences:
    pulumi refresh --preview-only --cwd 01-proxmox-infra --stack dev --diff --target 'urn:pulumi:dev::proxmox-infra::proxmoxve**' --target 'urn:pulumi:dev::proxmox-infra::tls**'
    
  • Check for releases newer than 8.7.0. Read the Pulumi provider's release notes, and those for the upstream provider version it includes
  • Preview the versions between 8.2.1 and the target, starting with 8.3.0, to find where each change begins. Use normal previews without refresh flags, like CI
  • Restore 8.2.1 after testing, so a test version isn't merged by accident. Check package.json too, because npm can reformat it

Explain each change

  • queues: find out what would be sent to Proxmox and whether a VM would need a restart
  • Cloud-init password: find out why it shows as changed and what the update would do, without printing the password
  • Ansible container replicate: find out what it would change, and whether to set it in the code
  • Other Ansible container settings: check how they affect deletes and migrations, especially purgeOnDestroy and deleteUnreferencedDisksOnDestroy
  • For each change, decide whether to set a value in the code, ignore it (with a comment explaining why), accept it or wait for a provider fix

Update

  • Open a PR with only the provider update and any code changes it needs. Include the full preview result
  • If any VM or container changes remain, check backups and choose a maintenance window before merging. Don't reboot hosts during the deploy
  • After the deploy, check the VMs, Ansible container, k3s nodes and Longhorn volumes. Then run another preview and preview-only refresh

Done when

  • The cause and effect of every planned change are understood
  • The preview shows only provider version updates, or every other change has been reviewed and accepted
  • Nothing is replaced or deleted
  • The new provider version is deployed, and the preview and preview-only refresh show no unexpected changes
  • The VMs, Ansible container, k3s nodes and Longhorn volumes are healthy
## Why `01-proxmox-infra` stays on `@muhlba91/pulumi-proxmoxve` 8.2.1 for now. On 2026-11-29, a local preview with 8.7.0 planned in-place updates to all 6 k3s VMs and the Ansible container. The update wasn't merged. Merging to `main` deploys `01` automatically, without a refresh first. Pulumi's `protect: true` blocks deletes and replacements, but **not in-place updates**. This isn't urgent: `npm audit` reported no findings in `01`. ## What we know With 8.2.1, the preview showed 27 unchanged. With 8.7.0, it showed 10 to update and 17 unchanged, with nothing replaced or deleted. Three of the updates were only provider versions. These are the others: | Resource | Planned change | |---|---| | All 6 k3s VMs | `queues: [unknown]` added to every disk | | All 6 k3s VMs | `initialization.userAccount.password`: `[secret] => [secret]` | | Ansible container | `disk.replicate`: `false => true` | | Ansible container | `purgeOnDestroy: true` and `timeoutMigrate: 1800` added | | Ansible container | `migrate` and `deleteUnreferencedDisksOnDestroy` added as `[unknown]` | - The cause of each change is unknown. The preview doesn't show what would be sent to Proxmox, or whether a VM would need a restart. - The VMs use `rebootAfterUpdate: false`, so some changes might not take effect until they restart. - With 8.2.1, a preview-only refresh could read the Proxmox resources with the nodes on Proxmox VE 9.3.1. It found no VM differences. This didn't test making changes. - Pulumi provider versions don't match Proxmox VE versions, so running Proxmox VE 9 doesn't by itself require a newer provider. - No report matching the `queues` change was found. The closest was [bpg/terraform-provider-proxmox#3291](https://github.com/bpg/terraform-provider-proxmox/issues/3291), about defaults that keep showing as changes in Pulumi. It may not be related. - #72 added `protection: true` to the Ansible container after the 8.7.0 preview, so run that preview again. ## Until this is done - Don't run plain `npm update` in `01-proxmox-infra`. The `^8.2.1` range allows 8.7.0. - Don't hide these changes with `ignoreChanges` before their cause is known. ## Tasks ### Investigate (local only) - [ ] Run a preview-only refresh with 8.2.1 and look into any differences: ```bash pulumi refresh --preview-only --cwd 01-proxmox-infra --stack dev --diff --target 'urn:pulumi:dev::proxmox-infra::proxmoxve**' --target 'urn:pulumi:dev::proxmox-infra::tls**' ``` - [ ] Check for releases newer than 8.7.0. Read the Pulumi provider's release notes, and those for the upstream provider version it includes - [ ] Preview the versions between 8.2.1 and the target, starting with 8.3.0, to find where each change begins. Use normal previews without refresh flags, like CI - [ ] Restore 8.2.1 after testing, so a test version isn't merged by accident. Check `package.json` too, because npm can reformat it ### Explain each change - [ ] `queues`: find out what would be sent to Proxmox and whether a VM would need a restart - [ ] Cloud-init password: find out why it shows as changed and what the update would do, without printing the password - [ ] Ansible container `replicate`: find out what it would change, and whether to set it in the code - [ ] Other Ansible container settings: check how they affect deletes and migrations, especially `purgeOnDestroy` and `deleteUnreferencedDisksOnDestroy` - [ ] For each change, decide whether to set a value in the code, ignore it (with a comment explaining why), accept it or wait for a provider fix ### Update - [ ] Open a PR with only the provider update and any code changes it needs. Include the full preview result - [ ] If any VM or container changes remain, check backups and choose a maintenance window before merging. Don't reboot hosts during the deploy - [ ] After the deploy, check the VMs, Ansible container, k3s nodes and Longhorn volumes. Then run another preview and preview-only refresh ## Done when - The cause and effect of every planned change are understood - The preview shows only provider version updates, or every other change has been reviewed and accepted - Nothing is replaced or deleted - The new provider version is deployed, and the preview and preview-only refresh show no unexpected changes - The VMs, Ansible container, k3s nodes and Longhorn volumes are healthy
claude-bot Bot added the
Priority
Low
4
Kind/Enhancement
labels 2026-11-29 03:20:49 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kasun/homelab-infrastructure-as-code#75