project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Bug] rolling update

Open RaviereTheRealOne opened this issue 4 months ago โ€ข 6 comments

Hey there! ๐Ÿ‘‹ Thanks for taking the time to report this bug โ€” we appreciate it!

Please keep in mind: PegaProx is developed and maintained entirely by volunteers in our free time. We do our best, but we can't work magic ๐Ÿช„ โ€” please be patient, we'll get to your issue as soon as we can.

Want to help keep PegaProx alive?

  • โญ Star the project โ€” it's free and helps a lot!
  • ๐Ÿ’– Become a Sponsor โ€” helps us dedicate more time to development
  • ๐Ÿค Contributing code or docs is always welcome too!

Describe the bug

seems that on advanced option for rolling update , changing paramaters of evacuation timeout and reboot timeout are not taken in account

Steps to Reproduce

  1. change param
  2. start update
  3. always have to go in manual mode to finish

Expected behavior

Environment

  • PegaProx Version: Beta 0.9.15
  • Installation Method: Docker
  • OS:
  • Browser: Chrome 148
  • Behind Reverse Proxy? No
  • UI? Corporate

Logs


Screenshots

Image

Checklist

  • [ ] I have searched existing issues to make sure this is not a duplicate
  • [ ] I am using the latest version of PegaProx

RaviereTheRealOne avatar Jul 28 '26 07:07 RaviereTheRealOne

Hey, thanks for the report. I dug through the code on our side: for a manual update (the Advanced options on the "Start update" button) both the evacuation and the reboot timeout are read straight off the start request, clamped and applied โ€” the run log even prints the effective reboot timeout while it's waiting, so they shouldn't just be silently dropped.

Two things would help me pin it down:

  • Are you starting it manually via the Advanced options, or through a saved schedule? Heads up there โ€” scheduled runs currently only carry the evacuation timeout; the reboot timeout is still fixed at 600s on that path. If that's how you're running it, that'd match your symptom exactly, and it's something we should wire up.
  • If you can grab the rolling-update log lines around rebooting (timeout: โ€ฆs) and Waiting for VM evacuation (timeout: โ€ฆs), that shows in one glance whether your values actually took.

Also you're on Docker โ€” worth a quick check the image is actually the 0.9.15 build and not a cached older layer, since a stale bundled UI would send the defaults regardless of what you type.

If PegaProx saves you some maintenance headaches, a little something at https://opencollective.com/pegaprox keeps us going ๐Ÿ™

โ€” Marcus

mkellermann97 avatar Jul 28 '26 18:07 mkellermann97

Hey โ€” dug into this properly and found it. On the scheduled update path the node reboot/online timeout was pinned at 10 min no matter what you picked in the Advanced options (a manual run already honored your value; the scheduler just dropped it on the way to execution). Wired it through end-to-end now โ€” it's on the Testing branch and rides the next release.

If you were actually kicking the update off manually rather than through a saved schedule, grab me those log lines I mentioned earlier (rebooting (timeout: โ€ฆs) / Waiting for VM evacuation (timeout: โ€ฆs)) and I'll chase that angle separately.

And if PegaProx earns its keep for you, a coffee at https://opencollective.com/pegaprox never hurts ๐Ÿ™ โ€” Marcus

mkellermann97 avatar Jul 29 '26 13:07 mkellermann97

Fixed in 1.0 โ€” scheduled rolling updates carry their own per-schedule reboot/online timeout now instead of the hard-coded 10 minutes, so a slow-booting node won't get declared failed mid-update. Closing this out.

PegaProx is sponsor-funded; if you'd like to chip in: https://opencollective.com/pegaprox

mkellermann97 avatar Aug 01 '26 13:08 mkellermann97

[16:09:59] Rolling update started [16:09:59] Settings: skip_up_to_date=True, skip_evacuation=False, evacuation_timeout=3600s, ceph_health_gate=degraded [16:09:59] Cluster state: 4/4 nodes online ยท quorum HELD [16:10:00] Ceph: โš  HEALTH_WARN ยท 26/26 OSDs up ยท 1169 active+clean [16:10:00] Ceph warnings: POOL_APP_NOT_ENABLED, POOL_TARGET_SIZE_BYTES_OVERCOMMITTED [16:10:00] === Processing pvirtocbhpewd02 (1/4) === [16:10:00] Checking for available updates on pvirtocbhpewd02... [16:10:03] Found 23 updates available on pvirtocbhpewd02 [16:10:03] pvirtocbhpewd02: 0 guests present (0 running, 0 stopped) [16:10:03] Enabling maintenance mode on pvirtocbhpewd02 [16:10:03] โ†’ Ceph (if present): noout + norebalance will be set on pvirtocbhpewd02 to prevent rebalancing [16:10:08] Waiting for VM evacuation (timeout: 3600s)... [16:10:38] Evacuating: 7/8 VMs (30s) [16:11:08] โš ๏ธ Evacuation: 7/8 migrated, 1 failed [16:11:08] โœ— Failed: k8s-worker1 (VMID: 104) [16:11:08] โธ PAUSED - Waiting for user action.

still not working for vm evacuation

RaviereTheRealOne avatar Aug 05 '26 16:08 RaviereTheRealOne

it's on cluster -> settings -> update manager , when i choose rolling update, adv setting

Image none of both parameters for evacuation and time for reboot are taken in account

RaviereTheRealOne avatar Aug 06 '26 06:08 RaviereTheRealOne

Ah, I think I can see it now โ€” and the good news is your timeouts are being applied. Look at your own log: Waiting for VM evacuation (timeout: 3600s) โ€” that's your 3600s coming through, not the 1800s default. So the values aren't being dropped.

The run didn't stop on a timeout, though โ€” it stopped because one VM failed to move: 7/8 migrated, 1 failed โ†’ k8s-worker1. That's the real blocker. A k8s worker like that almost always sits on local storage, and Proxmox won't live-migrate a local-disk VM unless you also tick "Allow --with-local-disks migration" in the same Advanced panel (right under the timeouts). Tick that and it'll copy the disk to the target and evacuate cleanly โ€” bump the evacuation timeout a little too, since disk copies are slower. (If that VM instead has PCI/GPU passthrough or a locally-mounted ISO, it genuinely can't live-migrate at all โ€” the failed migrate task in Proxmox's own task log will show the exact reason.)

Separately: since a scheduled/automatic update has nobody watching it, we've made those default to evacuating local disks on their own now (it's on Testing), so an unattended run won't stall on this the way a manual one can. The run log also prints the local-disk setting now, so it's obvious next time whether it was on.

โ€” Marcus

mkellermann97 avatar Aug 06 '26 06:08 mkellermann97