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

[Bug] Manually updating a node via Update-Manager Errors

Open proxforge opened this issue 8 months ago • 5 comments

Describe the bug

I used rolling update on a 3 node cluster, 2 of three nodes worked fine. the third did not, because of a migration which failed (it did not but theres another bug report for that). I then did the manual upgrade, which did not work, it shows "updating" on the right site of the update-manager, but theres no log or actually view if it is running or not (it is not). Neither the updates get applied nor the reboot is triggered etc.

Steps to Reproduce

  1. Have 2 of 3 nodes updated via rolling update
  2. try to update the last node with a manual update
  3. pegaprox says its updating, but it is not.

Expected behavior

Show a log to see what happens and what does not and why it does not.

Environment

  • PegaProx Version: Beta 0.9.2
  • Installation Method:
  • Browser: Version 145.0.7632.110 (Offizieller Build) (64-Bit) (Chrome)
  • Behind Reverse Proxy? No
  • UI I use the enterprise-design web-ui

Checklist

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

proxforge avatar Mar 17 '26 12:03 proxforge

Could be related to updates that need a feedback from the user, i did a manual upgrade via pve-web-ui and there was a configuration needed of open-iscsi:

Image

proxforge avatar Mar 17 '26 12:03 proxforge

Hey @proxforge,

I think this is probably a rare corner case which might even be legit to not being ignored as it "might cause data loss". So, it's (just my IMHO) still valid to stop the process. In general, the default behavior is, that it runs the upgrades in an non-interactive way (see also https://github.com/PegaProx/project-pegaprox/blob/main/pegaprox/core/manager.py#L6581) which executes:

DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"

We could probably also add in addition:

export NEEDRESTART_MODE=a
export UCF_FORCE_CONFOLD=1

to cover even more, but it still wouldn't catch that one. Happy to hear more feedback on this.

Cheers, gyptazy

gyptazy avatar Mar 17 '26 17:03 gyptazy

Maybe give some feedback to the admins so they know why it did not run so they need to manually update?

proxforge avatar Mar 18 '26 12:03 proxforge

Hey @proxforge,

Maybe give some feedback to the admins so they know why it did not run so they need to manually update?

Yes and no. The command is being executed in async as a bg task which is being expected to be non-blocking and returning an exit code at some point to indicate if it was successful or not. In that case, you can of course also fetch the output from stdout/stderr which could be returned to the user. But this process is technically still running and valid but "paused" by an interactive window. This means that the process is still in progress.

While it might even be the case that slower systems, or systems on load might take very long time on applying the patches, it might be a "workaround" to stop expect such a task as broken if it is still running for a certain time (maybe 2 or 3hrs). However, this still won't provide any "real time" feedback.

Cheers, gyptazy

gyptazy avatar Mar 18 '26 18:03 gyptazy

Will close this ticket as pointed out "forcing the update" isn't the way to go here. If a update fails the node should always manually checked out otherwise that could lead into bigger issues.

Adding here more feedback into it when a update fails it could potentially just break the hole process which would be a big problem.

Regards, Nico

MrMasterbay avatar Mar 22 '26 18:03 MrMasterbay