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

[Bug] rolling updates fails on clusters with 2 nodes + QDevice under certain conditions

Open CKeckNorthIO opened this issue 1 week ago β€’ 7 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

When running the rolling-updates on PVE clusters with 2 nodes + QDevice, the process fails when the update contains updates packages for the corosync-service. For installation of the updates, the corosync-service is being shut down, so the migration of the VM that is currently being migrated, fails with a "permission denied" error leaving the VM in a locked state.

Steps to Reproduce

  1. Create cluster with 2 nodes + QDevice and many VMs, so that the migrations takes long enough to trigger the problem.
  2. Run updates on cluster that contains an updated corosync-package
  3. The VM-migration will fail at the point where the corosync-update is being installed on the node.

Expected behavior

I think updates that affect the quorum and thus the state-decision for machines should not be installed through the normal rolling-updates but instead maybe installed separately w/o triggering a VM-migration and reboot.

Environment

  • PegaProx Version: 1.5.0
  • Installation Method: Pre-built image
  • OS: see above
  • Browser: Does not matter for this problem
  • Behind Reverse Proxy? No
  • UI? Corporate

Logs

The excerpts are from the two nodes of the affected cluster here. I just replace the hostnames by "node1" and "node2" in the logs. The PegaProx-log just said "Migration failed" with no additional information. So I decided to put the nodes' logs here instead.

node1:

Nov 19 12:08:57 node1 corosync[2515]:   [CFG   ] Node 1 was shut down by sysadmin
Nov 19 12:08:57 node1 pmxcfs[2361]: [dcdb] notice: members: 2/2361
Nov 19 12:08:57 node1 pmxcfs[2361]: [status] notice: members: 2/2361
Nov 19 12:08:57 node1 corosync[2515]:   [QUORUM] Sync members[1]: 2
Nov 19 12:08:57 node1 corosync[2515]:   [QUORUM] Sync left[1]: 1
Nov 19 12:08:57 node1 corosync[2515]:   [VOTEQ ] waiting for quorum device Qdevice poll (but maximum for 30000 ms)
Nov 19 12:08:57 node1 corosync[2515]:   [TOTEM ] A new membership (2.1a5) was formed. Members left: 1
Nov 19 12:08:57 node1 kernel: tap120i1: entered promiscuous mode
Nov 19 12:08:57 node1 kernel: vmbr0v12: port 2(tap120i1) entered blocking state
Nov 19 12:08:57 node1 kernel: vmbr0v12: port 2(tap120i1) entered disabled state
Nov 19 12:08:57 node1 kernel: tap120i1: entered allmulticast mode
Nov 19 12:08:57 node1 kernel: vmbr0v12: port 2(tap120i1) entered blocking state
Nov 19 12:08:57 node1 kernel: vmbr0v12: port 2(tap120i1) entered forwarding state
Nov 19 12:08:58 node1 sshd-session[5463]: Received disconnect from 192.168.15.39 port 50528:11: disconnected by user
Nov 19 12:08:58 node1 sshd-session[5463]: Disconnected from user root 192.168.15.39 port 50528
Nov 19 12:08:58 node1 sshd-session[5456]: pam_unix(sshd:session): session closed for user root
Nov 19 12:08:58 node1 systemd-logind[1969]: Session 123 logged out. Waiting for processes to exit.
Nov 19 12:08:58 node1 systemd[1]: session-123.scope: Deactivated successfully.
Nov 19 12:08:58 node1 systemd[1]: session-123.scope: Consumed 4.365s CPU time, 125.6M memory peak.
Nov 19 12:08:58 node1 systemd-logind[1969]: Removed session 123.
Nov 19 12:08:58 node1 qm[5528]: VM 120 started with PID 5541 using pve-qemu-kvm_11.0.3-4.
Nov 19 12:08:58 node1 sshd-session[5605]: Accepted publickey for root from 192.168.15.39 port 57456 ssh2: RSA SHA256:JG9UxYjIYtp5OlsWBWWTRk3JmibRkmsDEqW1Dmv/HPY
Nov 19 12:08:58 node1 sshd-session[5605]: pam_unix(sshd:session): session opened for user root(uid=0) by root(uid=0)
Nov 19 12:08:58 node1 systemd-logind[1969]: New session 130 of user root.
Nov 19 12:08:58 node1 systemd[1]: Started session-130.scope - Session 130 of User root.
Nov 19 12:08:58 node1 sshd-session[5607]: Accepted publickey for root from 192.168.15.39 port 57460 ssh2: RSA SHA256:JG9UxYjIYtp5OlsWBWWTRk3JmibRkmsDEqW1Dmv/HPY
Nov 19 12:08:58 node1 sshd-session[5607]: pam_unix(sshd:session): session opened for user root(uid=0) by root(uid=0)
Nov 19 12:08:58 node1 systemd-logind[1969]: New session 131 of user root.
Nov 19 12:08:58 node1 systemd[1]: Started session-131.scope - Session 131 of User root.
Nov 19 12:08:58 node1 sshd-session[5621]: Received disconnect from 192.168.15.39 port 57460:11: disconnected by user
Nov 19 12:08:58 node1 sshd-session[5621]: Disconnected from user root 192.168.15.39 port 57460
Nov 19 12:08:58 node1 sshd-session[5607]: pam_unix(sshd:session): session closed for user root
Nov 19 12:08:58 node1 systemd-logind[1969]: Session 131 logged out. Waiting for processes to exit.
Nov 19 12:08:58 node1 systemd[1]: session-131.scope: Deactivated successfully.
Nov 19 12:08:58 node1 systemd-logind[1969]: Removed session 131.
Nov 19 12:08:58 node1 corosync[2515]:   [QUORUM] Members[1]: 2
Nov 19 12:08:58 node1 corosync[2515]:   [MAIN  ] Completed service synchronization, ready to provide service.
Nov 19 12:08:58 node1 pmxcfs[2361]: [status] notice: cpg_send_message retried 3 times
Nov 19 12:08:58 node1 qm[5527]: <root@pam> end task UPID:node1:00001598:000026EF:6AFED8C8:qmstart:120:root@pam: OK
Nov 19 12:08:58 node1 sshd-session[5526]: Received disconnect from 192.168.15.39 port 50562:11: disconnected by user
Nov 19 12:08:58 node1 sshd-session[5526]: Disconnected from user root 192.168.15.39 port 50562
Nov 19 12:08:58 node1 sshd-session[5517]: pam_unix(sshd:session): session closed for user root
Nov 19 12:08:58 node1 systemd[1]: session-129.scope: Deactivated successfully.
Nov 19 12:08:58 node1 systemd[1]: session-129.scope: Consumed 915ms CPU time, 140.5M memory peak.
Nov 19 12:08:58 node1 systemd-logind[1969]: Session 129 logged out. Waiting for processes to exit.
Nov 19 12:08:58 node1 systemd-logind[1969]: Removed session 129.
Nov 19 12:08:58 node1 pmxcfs[2361]: [dcdb] notice: cpg_send_message retried 2 times
Nov 19 12:08:58 node1 sshd-session[5615]: Received disconnect from 192.168.15.39 port 57456:11: disconnected by user
Nov 19 12:08:58 node1 sshd-session[5615]: Disconnected from user root 192.168.15.39 port 57456
Nov 19 12:08:58 node1 sshd-session[5605]: pam_unix(sshd:session): session closed for user root
Nov 19 12:08:58 node1 systemd-logind[1969]: Session 130 logged out. Waiting for processes to exit.
Nov 19 12:08:58 node1 systemd[1]: session-130.scope: Deactivated successfully.
Nov 19 12:08:58 node1 systemd-logind[1969]: Removed session 130.
Nov 19 12:08:58 node1 sshd-session[5645]: Accepted publickey for root from 192.168.15.39 port 57470 ssh2: RSA SHA256:JG9UxYjIYtp5OlsWBWWTRk3JmibRkmsDEqW1Dmv/HPY
Nov 19 12:08:58 node1 sshd-session[5645]: pam_unix(sshd:session): session opened for user root(uid=0) by root(uid=0)
Nov 19 12:08:58 node1 systemd-logind[1969]: New session 132 of user root.
Nov 19 12:08:58 node1 systemd[1]: Started session-132.scope - Session 132 of User root.
Nov 19 12:08:58 node1 sshd-session[5648]: Accepted publickey for root from 192.168.15.39 port 57478 ssh2: RSA SHA256:JG9UxYjIYtp5OlsWBWWTRk3JmibRkmsDEqW1Dmv/HPY
Nov 19 12:08:58 node1 sshd-session[5648]: pam_unix(sshd:session): session opened for user root(uid=0) by root(uid=0)
Nov 19 12:08:58 node1 systemd-logind[1969]: New session 133 of user root.
Nov 19 12:08:58 node1 systemd[1]: Started session-133.scope - Session 133 of User root.
Nov 19 12:08:58 node1 corosync[2515]:   [KNET  ] link: host: 1 link: 0 is down
Nov 19 12:08:58 node1 corosync[2515]:   [KNET  ] host: host: 1 (passive) best link: 1 (pri: 1)
Nov 19 12:08:58 node1 sshd-session[5666]: Accepted publickey for root from 192.168.15.39 port 57486 ssh2: RSA SHA256:JG9UxYjIYtp5OlsWBWWTRk3JmibRkmsDEqW1Dmv/HPY
Nov 19 12:08:58 node1 sshd-session[5666]: pam_unix(sshd:session): session opened for user root(uid=0) by root(uid=0)
Nov 19 12:08:58 node1 systemd-logind[1969]: New session 134 of user root.
Nov 19 12:08:58 node1 systemd[1]: Started session-134.scope - Session 134 of User root.
Nov 19 12:08:58 node1 sshd-session[5673]: Received disconnect from 192.168.15.39 port 57486:11: disconnected by user
Nov 19 12:08:58 node1 sshd-session[5673]: Disconnected from user root 192.168.15.39 port 57486
Nov 19 12:08:58 node1 sshd-session[5666]: pam_unix(sshd:session): session closed for user root
Nov 19 12:08:58 node1 systemd-logind[1969]: Session 134 logged out. Waiting for processes to exit.
Nov 19 12:08:58 node1 systemd[1]: session-134.scope: Deactivated successfully.
Nov 19 12:08:58 node1 systemd-logind[1969]: Removed session 134.
Nov 19 12:08:58 node1 sshd-session[5676]: Accepted publickey for root from 192.168.15.39 port 57488 ssh2: RSA SHA256:JG9UxYjIYtp5OlsWBWWTRk3JmibRkmsDEqW1Dmv/HPY
Nov 19 12:08:58 node1 sshd-session[5676]: pam_unix(sshd:session): session opened for user root(uid=0) by root(uid=0)
Nov 19 12:08:58 node1 systemd-logind[1969]: New session 135 of user root.
Nov 19 12:08:58 node1 corosync[2515]:   [KNET  ] link: host: 1 link: 1 is down
Nov 19 12:08:58 node1 corosync[2515]:   [KNET  ] host: host: 1 (passive) best link: 1 (pri: 1)
Nov 19 12:08:58 node1 corosync[2515]:   [KNET  ] host: host: 1 has no active links
Nov 19 12:08:58 node1 systemd[1]: Started session-135.scope - Session 135 of User root.
Nov 19 12:08:58 node1 sshd-session[5683]: Received disconnect from 192.168.15.39 port 57488:11: disconnected by user
Nov 19 12:08:58 node1 sshd-session[5683]: Disconnected from user root 192.168.15.39 port 57488
Nov 19 12:08:58 node1 sshd-session[5676]: pam_unix(sshd:session): session closed for user root
Nov 19 12:08:58 node1 systemd-logind[1969]: Session 135 logged out. Waiting for processes to exit.
Nov 19 12:08:58 node1 systemd[1]: session-135.scope: Deactivated successfully.
Nov 19 12:08:58 node1 systemd-logind[1969]: Removed session 135.
Nov 19 12:08:59 node1 qm[5658]: executed 'qm unlock 115'
Nov 19 12:08:59 node1 sshd-session[5657]: Received disconnect from 192.168.15.39 port 57470:11: disconnected by user
Nov 19 12:08:59 node1 sshd-session[5657]: Disconnected from user root 192.168.15.39 port 57470
Nov 19 12:08:59 node1 sshd-session[5645]: pam_unix(sshd:session): session closed for user root
Nov 19 12:08:59 node1 systemd[1]: session-132.scope: Deactivated successfully.
Nov 19 12:08:59 node1 systemd[1]: session-132.scope: Consumed 718ms CPU time, 121.9M memory peak.
Nov 19 12:08:59 node1 systemd-logind[1969]: Session 132 logged out. Waiting for processes to exit.
Nov 19 12:08:59 node1 systemd-logind[1969]: Removed session 132.
Nov 19 12:09:00 node1 corosync[2515]:   [KNET  ] rx: host: 1 link: 1 is up
Nov 19 12:09:00 node1 corosync[2515]:   [KNET  ] link: Resetting MTU for link 1 because host 1 joined
Nov 19 12:09:00 node1 corosync[2515]:   [KNET  ] host: host: 1 (passive) best link: 1 (pri: 1)
Nov 19 12:09:00 node1 corosync[2515]:   [KNET  ] pmtud: Global data MTU changed to: 1397
Nov 19 12:09:00 node1 corosync[2515]:   [QUORUM] Sync members[2]: 1 2
Nov 19 12:09:00 node1 corosync[2515]:   [QUORUM] Sync joined[1]: 1
Nov 19 12:09:00 node1 corosync[2515]:   [VOTEQ ] waiting for quorum device Qdevice poll (but maximum for 30000 ms)
Nov 19 12:09:00 node1 corosync[2515]:   [TOTEM ] A new membership (1.1aa) was formed. Members joined: 1
Nov 19 12:09:01 node1 corosync[2515]:   [KNET  ] rx: host: 1 link: 0 is up
Nov 19 12:09:01 node1 corosync[2515]:   [KNET  ] link: Resetting MTU for link 0 because host 1 joined
Nov 19 12:09:01 node1 corosync[2515]:   [KNET  ] host: host: 1 (passive) best link: 0 (pri: 1)
Nov 19 12:09:01 node1 corosync[2515]:   [KNET  ] pmtud: Global data MTU changed to: 1397
Nov 19 12:09:01 node1 sshd-session[5664]: Received disconnect from 192.168.15.39 port 57478:11: disconnected by user
Nov 19 12:09:01 node1 sshd-session[5664]: Disconnected from user root 192.168.15.39 port 57478
Nov 19 12:09:01 node1 sshd-session[5648]: pam_unix(sshd:session): session closed for user root
Nov 19 12:09:01 node1 systemd[1]: session-133.scope: Deactivated successfully.
Nov 19 12:09:01 node1 systemd[1]: session-133.scope: Consumed 2.330s CPU time, 126.5M memory peak.
Nov 19 12:09:01 node1 systemd-logind[1969]: Session 133 logged out. Waiting for processes to exit.
Nov 19 12:09:01 node1 systemd-logind[1969]: Removed session 133.
Nov 19 12:09:01 node1 corosync[2515]:   [QUORUM] Members[2]: 1 2
Nov 19 12:09:01 node1 corosync[2515]:   [MAIN  ] Completed service synchronization, ready to provide service.
Nov 19 12:09:01 node1 pmxcfs[2361]: [dcdb] notice: cpg_send_message retried 1 times
Nov 19 12:09:01 node1 pmxcfs[2361]: [status] notice: cpg_send_message retried 6 times

node2:

Nov 19 12:08:57 node2 systemd[1]: Reload requested from client PID 4118703 ('systemctl') (unit session-25450.scope)...
Nov 19 12:08:57 node2 systemd[1]: Reloading...
Nov 19 12:08:57 node2 systemd[1]: Reloading finished in 153 ms.
Nov 19 12:08:57 node2 systemd[1]: Reload requested from client PID 4118765 ('systemctl') (unit session-25450.scope)...
Nov 19 12:08:57 node2 systemd[1]: Reloading...
Nov 19 12:08:57 node2 systemd[1]: Reloading finished in 152 ms.
Nov 19 12:08:57 node2 systemd[1]: Stopping corosync-qdevice.service - Corosync Qdevice daemon...
Nov 19 12:08:57 node2 corosync-qdevice[2647]: Lost connection with heuristics worker
Nov 19 12:08:57 node2 systemd[1]: corosync-qdevice.service: Deactivated successfully.
Nov 19 12:08:57 node2 systemd[1]: Stopped corosync-qdevice.service - Corosync Qdevice daemon.
Nov 19 12:08:57 node2 systemd[1]: corosync-qdevice.service: Consumed 1min 45.105s CPU time, 5M memory peak.
Nov 19 12:08:57 node2 systemd[1]: Stopping corosync.service - Corosync Cluster Engine...
Nov 19 12:08:57 node2 pve-ha-lrm[4112603]: Task 'UPID:node2:003EC0EA:040D8120:6AFED8BF:qmigrate:118:root@pam:' still active, waiting
Nov 19 12:08:57 node2 corosync-cfgtool[4118822]: Shutting down corosync
Nov 19 12:08:57 node2 corosync[2614]:   [CFG   ] Node 1 was shut down by sysadmin
Nov 19 12:08:57 node2 corosync[2614]:   [SERV  ] Unloading all Corosync service engines.
Nov 19 12:08:57 node2 corosync[2614]:   [QB    ] withdrawing server sockets
Nov 19 12:08:57 node2 corosync[2614]:   [SERV  ] Service engine unloaded: corosync vote quorum service v1.0
Nov 19 12:08:57 node2 pmxcfs[2462]: [confdb] crit: cmap_dispatch failed: 2
Nov 19 12:08:57 node2 corosync[2614]:   [QB    ] withdrawing server sockets
Nov 19 12:08:57 node2 corosync[2614]:   [SERV  ] Service engine unloaded: corosync configuration map access
Nov 19 12:08:57 node2 corosync[2614]:   [QB    ] withdrawing server sockets
Nov 19 12:08:57 node2 corosync[2614]:   [SERV  ] Service engine unloaded: corosync configuration service
Nov 19 12:08:57 node2 corosync[2614]:   [MAIN  ] Node was shut down by a signal
Nov 19 12:08:57 node2 corosync[2614]:   [QB    ] withdrawing server sockets
Nov 19 12:08:57 node2 corosync[2614]:   [SERV  ] Service engine unloaded: corosync cluster closed process group service v1.01
Nov 19 12:08:57 node2 corosync[2614]:   [QB    ] withdrawing server sockets
Nov 19 12:08:57 node2 corosync[2614]:   [SERV  ] Service engine unloaded: corosync cluster quorum service v0.1
Nov 19 12:08:57 node2 corosync[2614]:   [SERV  ] Service engine unloaded: corosync profile loading service
Nov 19 12:08:57 node2 corosync[2614]:   [SERV  ] Service engine unloaded: corosync resource monitoring service
Nov 19 12:08:57 node2 corosync[2614]:   [SERV  ] Service engine unloaded: corosync watchdog service
Nov 19 12:08:57 node2 pmxcfs[2462]: [quorum] crit: quorum_dispatch failed: CS_ERR_LIBRARY
Nov 19 12:08:57 node2 pmxcfs[2462]: [status] notice: node lost quorum
Nov 19 12:08:57 node2 pmxcfs[2462]: [dcdb] crit: cpg_dispatch failed: CS_ERR_LIBRARY
Nov 19 12:08:57 node2 pmxcfs[2462]: [dcdb] crit: cpg_leave failed: CS_ERR_LIBRARY
Nov 19 12:08:57 node2 pmxcfs[2462]: [status] crit: cpg_dispatch failed: CS_ERR_LIBRARY
Nov 19 12:08:57 node2 pmxcfs[2462]: [status] crit: cpg_leave failed: CS_ERR_LIBRARY
Nov 19 12:08:58 node2 pve-ha-lrm[4117347]: migration problems
Nov 19 12:08:58 node2 pve-ha-lrm[4117346]: <root@pam> end task UPID:node2:003ED363:040D8264:6AFED8C2:qmigrate:119:root@pam: migration problems
Nov 19 12:08:58 node2 pve-ha-lrm[4117346]: service vm:119 not moved (migration error)
Nov 19 12:08:58 node2 pve-ha-lrm[4118829]: <root@pam> starting task UPID:node2:003ED92E:040D852A:6AFED8CA:qmigrate:121:root@pam:
Nov 19 12:08:58 node2 kernel: tap115i0: left allmulticast mode
Nov 19 12:08:58 node2 kernel: vmbr0v10: port 2(tap115i0) entered disabled state
Nov 19 12:08:58 node2 ovs-vsctl[4118836]: ovs|00001|vsctl|INFO|Called as /usr/bin/ovs-vsctl del-port fwln115i0
Nov 19 12:08:58 node2 ovs-vsctl[4118836]: ovs|00002|db_ctl_base|ERR|no port named fwln115i0
Nov 19 12:08:58 node2 ovs-vsctl[4118837]: ovs|00001|vsctl|INFO|Called as /usr/bin/ovs-vsctl del-port tap115i0
Nov 19 12:08:58 node2 ovs-vsctl[4118837]: ovs|00002|db_ctl_base|ERR|no port named tap115i0
Nov 19 12:08:58 node2 qmeventd[1996]: read: Connection reset by peer
Nov 19 12:08:58 node2 systemd[1]: 115.scope: Deactivated successfully.
Nov 19 12:08:58 node2 systemd[1]: 115.scope: Consumed 20h 33min 29.364s CPU time, 8.1G memory peak.
Nov 19 12:08:58 node2 corosync[2614]:   [KNET  ] link: Resetting MTU for link 0 because host 1 joined
Nov 19 12:08:58 node2 corosync[2614]:   [KNET  ] link: Resetting MTU for link 0 because host 2 joined
Nov 19 12:08:58 node2 corosync[2614]:   [KNET  ] link: Resetting MTU for link 1 because host 2 joined
Nov 19 12:08:58 node2 corosync[2614]:   [MAIN  ] Corosync Cluster Engine exiting normally
Nov 19 12:08:58 node2 systemd[1]: corosync.service: Deactivated successfully.
Nov 19 12:08:58 node2 systemd[1]: Stopped corosync.service - Corosync Cluster Engine.
Nov 19 12:08:58 node2 systemd[1]: corosync.service: Consumed 1h 43min 51.075s CPU time, 161.4M memory peak.
Nov 19 12:08:58 node2 systemd[1]: Starting corosync.service - Corosync Cluster Engine...
Nov 19 12:08:58 node2 (corosync)[4118852]: corosync.service: Referenced but unset environment variable evaluates to an empty string: COROSYNC_OPTIONS
Nov 19 12:08:58 node2 corosync[4118852]:   [MAIN  ] Corosync Cluster Engine  starting up
Nov 19 12:08:58 node2 corosync[4118852]:   [MAIN  ] Corosync built-in features: dbus monitoring watchdog augeas systemd xmlconf vqsim nozzle unencrypted udpu snmp pie relro bindnow
Nov 19 12:08:58 node2 corosync[4118852]:   [TOTEM ] Initializing transport (Kronosnet).
Nov 19 12:08:58 node2 pmxcfs[2462]: [quorum] crit: quorum_initialize failed: CS_ERR_LIBRARY (failed to connect to corosync)
Nov 19 12:08:58 node2 pmxcfs[2462]: [quorum] crit: can't initialize service
Nov 19 12:08:58 node2 pmxcfs[2462]: [confdb] crit: cmap_initialize failed: CS_ERR_LIBRARY (failed to connect to corosync)
Nov 19 12:08:58 node2 pmxcfs[2462]: [confdb] crit: can't initialize service
Nov 19 12:08:58 node2 pmxcfs[2462]: [dcdb] notice: start cluster connection
Nov 19 12:08:58 node2 pmxcfs[2462]: [dcdb] crit: cpg_initialize failed: CS_ERR_LIBRARY (failed to connect to corosync)
Nov 19 12:08:58 node2 pmxcfs[2462]: [dcdb] crit: can't initialize service
Nov 19 12:08:58 node2 pmxcfs[2462]: [status] notice: start cluster connection
Nov 19 12:08:58 node2 pmxcfs[2462]: [status] crit: cpg_initialize failed: CS_ERR_LIBRARY (failed to connect to corosync)
Nov 19 12:08:58 node2 pmxcfs[2462]: [status] crit: can't initialize service
Nov 19 12:08:58 node2 pve-ha-lrm[4118830]: migration aborted
Nov 19 12:08:58 node2 pve-ha-lrm[4118829]: <root@pam> end task UPID:node2:003ED92E:040D852A:6AFED8CA:qmigrate:121:root@pam: migration aborted
Nov 19 12:08:58 node2 pve-ha-lrm[4118829]: service vm:121 not moved (migration error)
Nov 19 12:08:58 node2 pve-ha-lrm[4118864]: cluster not ready - no quorum?
Nov 19 12:08:58 node2 pve-ha-lrm[4118865]: cluster not ready - no quorum?
Nov 19 12:08:58 node2 pve-ha-lrm[4118866]: cluster not ready - no quorum?
Nov 19 12:08:58 node2 corosync[4118852]:   [TOTEM ] totemknet initialized
Nov 19 12:08:58 node2 corosync[4118852]:   [KNET  ] pmtud: MTU manually set to: 0
Nov 19 12:08:58 node2 corosync[4118852]:   [KNET  ] common: crypto_nss.so has been loaded from /usr/lib/x86_64-linux-gnu/kronosnet/crypto_nss.so
Nov 19 12:08:58 node2 corosync[4118852]:   [SERV  ] Service engine loaded: corosync configuration map access [0]
Nov 19 12:08:58 node2 corosync[4118852]:   [QB    ] server name: cmap
Nov 19 12:08:58 node2 corosync[4118852]:   [SERV  ] Service engine loaded: corosync configuration service [1]
Nov 19 12:08:58 node2 corosync[4118852]:   [QB    ] server name: cfg
Nov 19 12:08:58 node2 corosync[4118852]:   [SERV  ] Service engine loaded: corosync cluster closed process group service v1.01 [2]
Nov 19 12:08:58 node2 corosync[4118852]:   [QB    ] server name: cpg
Nov 19 12:08:58 node2 corosync[4118852]:   [SERV  ] Service engine loaded: corosync profile loading service [4]
Nov 19 12:08:58 node2 corosync[4118852]:   [SERV  ] Service engine loaded: corosync resource monitoring service [6]
Nov 19 12:08:58 node2 corosync[4118852]:   [WD    ] Watchdog not enabled by configuration
Nov 19 12:08:58 node2 corosync[4118852]:   [WD    ] resource load_15min missing a recovery key.
Nov 19 12:08:58 node2 corosync[4118852]:   [WD    ] resource memory_used missing a recovery key.
Nov 19 12:08:58 node2 corosync[4118852]:   [WD    ] no resources configured.
Nov 19 12:08:58 node2 corosync[4118852]:   [SERV  ] Service engine loaded: corosync watchdog service [7]
Nov 19 12:08:58 node2 corosync[4118852]:   [QUORUM] Using quorum provider corosync_votequorum
Nov 19 12:08:58 node2 corosync[4118852]:   [SERV  ] Service engine loaded: corosync vote quorum service v1.0 [5]
Nov 19 12:08:58 node2 corosync[4118852]:   [QB    ] server name: votequorum
Nov 19 12:08:58 node2 corosync[4118852]:   [SERV  ] Service engine loaded: corosync cluster quorum service v0.1 [3]
Nov 19 12:08:58 node2 corosync[4118852]:   [QB    ] server name: quorum
Nov 19 12:08:58 node2 corosync[4118852]:   [TOTEM ] Configuring link 0
Nov 19 12:08:58 node2 corosync[4118852]:   [TOTEM ] Configured link number 0: local addr: 192.168.15.39, port=5405
Nov 19 12:08:58 node2 corosync[4118852]:   [TOTEM ] Configuring link 1
Nov 19 12:08:58 node2 corosync[4118852]:   [TOTEM ] Configured link number 1: local addr: 192.168.40.175, port=5406
Nov 19 12:08:58 node2 corosync[4118852]:   [KNET  ] host: host: 2 (passive) best link: 0 (pri: 0)
Nov 19 12:08:58 node2 corosync[4118852]:   [KNET  ] host: host: 2 has no active links
Nov 19 12:08:58 node2 corosync[4118852]:   [KNET  ] host: host: 2 (passive) best link: 0 (pri: 1)
Nov 19 12:08:58 node2 corosync[4118852]:   [KNET  ] host: host: 2 has no active links
Nov 19 12:08:58 node2 corosync[4118852]:   [KNET  ] host: host: 2 (passive) best link: 0 (pri: 1)
Nov 19 12:08:58 node2 corosync[4118852]:   [KNET  ] host: host: 2 has no active links
Nov 19 12:08:58 node2 corosync[4118852]:   [KNET  ] link: Resetting MTU for link 0 because host 1 joined
Nov 19 12:08:58 node2 corosync[4118852]:   [KNET  ] host: host: 2 (passive) best link: 0 (pri: 1)
Nov 19 12:08:58 node2 corosync[4118852]:   [KNET  ] host: host: 2 has no active links
Nov 19 12:08:58 node2 corosync[4118852]:   [KNET  ] host: host: 2 (passive) best link: 0 (pri: 1)
Nov 19 12:08:58 node2 corosync[4118852]:   [KNET  ] host: host: 2 has no active links
Nov 19 12:08:58 node2 corosync[4118852]:   [KNET  ] host: host: 2 (passive) best link: 0 (pri: 1)
Nov 19 12:08:58 node2 corosync[4118852]:   [KNET  ] host: host: 2 has no active links
Nov 19 12:08:58 node2 corosync[4118852]:   [QUORUM] Sync members[1]: 1
Nov 19 12:08:58 node2 corosync[4118852]:   [QUORUM] Sync joined[1]: 1
Nov 19 12:08:58 node2 corosync[4118852]:   [TOTEM ] A new membership (1.1a6) was formed. Members joined: 1
Nov 19 12:08:58 node2 corosync[4118852]:   [QUORUM] Members[1]: 1
Nov 19 12:08:58 node2 corosync[4118852]:   [MAIN  ] Completed service synchronization, ready to provide service.
Nov 19 12:08:58 node2 systemd[1]: Started corosync.service - Corosync Cluster Engine.
Nov 19 12:08:58 node2 systemd[1]: Starting corosync-qdevice.service - Corosync Qdevice daemon...
Nov 19 12:08:59 node2 systemd[1]: Started corosync-qdevice.service - Corosync Qdevice daemon.
Nov 19 12:08:59 node2 systemd[1]: Reload requested from client PID 4118900 ('systemctl') (unit session-25450.scope)...
Nov 19 12:08:59 node2 systemd[1]: Reloading...
Nov 19 12:08:59 node2 pve-ha-lrm[4112310]: <root@pam> end task UPID:node2:003EBFB7:040D8074:6AFED8BE:qmigrate:115:root@pam: OK
Nov 19 12:08:59 node2 systemd[1]: Reloading finished in 154 ms.
Nov 19 12:09:00 node2 pve-ha-lrm[4117987]: Task 'UPID:node2:003ED5E6:040D83FD:6AFED8C7:qmigrate:120:root@pam:' still active, waiting
Nov 19 12:09:00 node2 pve-ha-lrm[2722]: lost lock 'ha_agent_node2_lock - cfs lock update failed - Permission denied
Nov 19 12:09:00 node2 corosync[4118852]:   [KNET  ] rx: host: 2 link: 0 is up
Nov 19 12:09:00 node2 corosync[4118852]:   [KNET  ] link: Resetting MTU for link 0 because host 2 joined
Nov 19 12:09:00 node2 corosync[4118852]:   [KNET  ] host: host: 2 (passive) best link: 0 (pri: 1)
Nov 19 12:09:00 node2 corosync[4118852]:   [KNET  ] rx: host: 2 link: 1 is up
Nov 19 12:09:00 node2 corosync[4118852]:   [KNET  ] link: Resetting MTU for link 1 because host 2 joined
Nov 19 12:09:00 node2 corosync[4118852]:   [KNET  ] host: host: 2 (passive) best link: 0 (pri: 1)
Nov 19 12:09:00 node2 corosync[4118852]:   [KNET  ] pmtud: PMTUD link change for host: 2 link: 0 from 469 to 1397
Nov 19 12:09:00 node2 corosync[4118852]:   [KNET  ] pmtud: PMTUD link change for host: 2 link: 1 from 469 to 1397
Nov 19 12:09:00 node2 corosync[4118852]:   [KNET  ] pmtud: Global data MTU changed to: 1397
Nov 19 12:09:00 node2 corosync[4118852]:   [QUORUM] Sync members[2]: 1 2
Nov 19 12:09:00 node2 corosync[4118852]:   [QUORUM] Sync joined[1]: 2
Nov 19 12:09:00 node2 corosync[4118852]:   [VOTEQ ] waiting for quorum device Qdevice poll (but maximum for 30000 ms)
Nov 19 12:09:00 node2 corosync[4118852]:   [TOTEM ] A new membership (1.1aa) was formed. Members joined: 2
Nov 19 12:09:01 node2 pve-ha-lrm[4117990]: migration problems
Nov 19 12:09:01 node2 pve-ha-lrm[4117987]: <root@pam> end task UPID:node2:003ED5E6:040D83FD:6AFED8C7:qmigrate:120:root@pam: migration problems
Nov 19 12:09:01 node2 pve-ha-lrm[4117987]: service vm:120 not moved (migration error)
Nov 19 12:09:01 node2 corosync[4118852]:   [QUORUM] This node is within the primary component and will provide service.
Nov 19 12:09:01 node2 corosync[4118852]:   [QUORUM] Members[2]: 1 2
Nov 19 12:09:01 node2 corosync[4118852]:   [MAIN  ] Completed service synchronization, ready to provide service.
Nov 19 12:09:02 node2 pve-ha-lrm[4112603]: Task 'UPID:node2:003EC0EA:040D8120:6AFED8BF:qmigrate:118:root@pam:' still active, waiting

Screenshots

No screenshots, but please see this task in Proxmox-forum about the problem: https://forum.proxmox.com/threads/error-while-cold-migrating-after-upgrade.74143/post-876568

Checklist

  • [x] I have searched existing issues to make sure this is not a duplicate
  • [x] I am using the latest version of PegaProx
  • [x] I've put enough in here that someone can start on it without asking me three questions first
  • [x] I understand PegaProx is maintained by volunteers in their free time. Nobody is on call, and writing URGENT doesn't get anyone out of bed πŸͺ„

CKeckNorthIO avatar Nov 24 '26 12:11 CKeckNorthIO

Thanks for the node logs, they help. Going by the task IDs, the HA migrations of 115, 118, 119, 120 and 121 started on node2 between 12:08:46 and 12:08:58, so the package install was already stopping corosync while the LRM was still moving guests off that node. The rolling update only starts the install once the evacuation of the node reports done, and after its own moves the evacuation waits up to five minutes for the node to be empty. Guests still there after that count as failed, and with "Pause when guests cannot be moved" off the run goes on to the install anyway, which would fit a long HA queue. Could you paste the rolling update's own log for node2 from the task view (the "Evacuating x/y" and "Evacuation completed" lines and anything around them), and say whether "Skip guest evacuation" or "Pause when guests cannot be moved" were ticked for this run?

Keeping corosync updates out of the normal rolling update is noted for the maintainers.

Jan-Philipp

Ghoszbust3r avatar Nov 24 '26 13:11 Ghoszbust3r

Thanks, for your question: The checkboxes were set like this:

image

For the logs, they are unfortunately already gone. Seems like the prebuilt image of PegaProx has a log rotation of 24h. Even journalctl does not let me scroll back futher in history.

CKeckNorthIO avatar Nov 24 '26 13:11 CKeckNorthIO

Thanks for the screenshot. With the pause on and a 30 min wait, the install on node2 shouldn't have started while HA was still moving guests off it, so this one needs a closer look.

The run's own log is probably not gone though: the Updates page of the cluster has a "Run history" tab that keeps the last 20 runs, each with the last 100 lines of its log. Could you open the run from Nov 19 there and paste what it shows for node2?

Cheers, Marcus

mkellermann97 avatar Nov 24 '26 15:11 mkellermann97

Okay, thanks, I found it. I redacted all sensitive data:

[11:01:07] Rolling update started
[11:01:07] Settings: skip_up_to_date=True, skip_evacuation=False, evacuation_timeout=1800s, reboot_timeout=600s, allow_local_disks=False, ceph_health_gate=off, migrate_templates=False, relax_anti_affinity=False
[11:01:07] Cluster state: 2/2 nodes online Β· quorum HELD
[11:01:07] Ceph: not deployed on this cluster
[11:01:07] === Processing node1 (1/2) ===
[11:01:07] Checking for available updates on node1...
[11:01:11] Found 31 updates available on node1
[11:01:11] Quorum with node1 down: 2 of 3 votes, 2 needed, QDevice connected
[11:01:11] node1: 14 guests present (12 running, 2 stopped)
[11:01:11]   β†’ will evacuate: VMHOST1 (VMID 100, qemu)
[11:01:11]   β†’ will evacuate: VMHOST2 (VMID 101, qemu)
[11:01:11]   β†’ will evacuate: VMHOST3 (VMID 102, qemu)
[11:01:11]   β†’ will evacuate: VMHOST4 (VMID 106, qemu)
[11:01:11]   β†’ will evacuate: VMHOST5 (VMID 108, qemu)
[11:01:11]   β†’ will evacuate: VMHOST6 (VMID 110, qemu)
[11:01:11]   β†’ will evacuate: VMHOST7 (VMID 113, qemu)
[11:01:11]   β†’ will evacuate: VMHOST8 (VMID 116, qemu)
[11:01:11]   β†’ …and 4 more
[11:01:11] Enabling maintenance mode on node1
[11:01:11]   β†’ Ceph (if present): noout + norebalance will be set on node1 to prevent rebalancing
[11:01:12] Waiting for VM evacuation (timeout: 1800s)...
[11:01:42] Evacuating: 10/12 VMs (30s)
[11:02:12] Evacuating: 12/12 VMs (60s)
[11:02:22] βœ“ Evacuation completed - all VMs migrated
[11:02:22] Quorum with node1 down: 2 of 3 votes, 2 needed, QDevice connected
[11:02:22] Installing updates on node1
[11:02:22] Waiting for update task (timeout: 900s)...
[11:02:22] Update phase: init
[11:02:32] Update phase: apt_dist_upgrade
[11:03:32] Update phase: reboot
[11:03:42] Update phase: wait_online (reboot sent)
[11:07:42] βœ“ Updates installed
[11:07:42] βœ“ node1 rebooted during the update and is back online
[11:07:42] Disabling maintenance mode on node1
[11:07:42]   β†’ Ceph (if present): noout + norebalance cleared for node1
[11:07:43] βœ“ node1 updated successfully
[11:07:43] === Processing node2 (2/2) ===
[11:07:43] Checking for available updates on node2...
[11:07:47] Found 31 updates available on node2
[11:07:47] Quorum with node2 down: 2 of 3 votes, 2 needed, QDevice connected
[11:07:47] node2: 25 guests present (23 running, 2 stopped)
[11:07:47]   β†’ will evacuate: VMHOST1 (VMID 100, qemu)
[11:07:47]   β†’ will evacuate: VMHOST2 (VMID 101, qemu)
[11:07:47]   β†’ will evacuate: VMHOST3 (VMID 102, qemu)
[11:07:47]   β†’ will evacuate: VMHOST9 (VMID 105, qemu)
[11:07:47]   β†’ will evacuate: VMHOST4 (VMID 106, qemu)
[11:07:47]   β†’ will evacuate: VMHOST10 (VMID 107, qemu)
[11:07:47]   β†’ will evacuate: VMHOST5 (VMID 108, qemu)
[11:07:47]   β†’ will evacuate: VMHOST11 (VMID 109, qemu)
[11:07:47]   β†’ …and 15 more
[11:07:47]   β†’ template(s) staying here: VMTEMPLATE1 (125)
[11:07:47] Enabling maintenance mode on node2
[11:07:47]   β†’ Ceph (if present): noout + norebalance will be set on node2 to prevent rebalancing
[11:07:48] Waiting for VM evacuation (timeout: 1800s)...
[11:07:53] βœ“ Evacuation completed - all VMs migrated
[11:07:53] Quorum with node2 down: 2 of 3 votes, 2 needed, QDevice connected
[11:07:53] Installing updates on node2
[11:07:53] Waiting for update task (timeout: 900s)...
[11:07:53] Update phase: init
[11:08:03] Update phase: apt_dist_upgrade
[11:09:13] Update phase: wait_online (reboot sent)
[11:19:23] βœ— ERROR on node2: Update failed: Node did not come back online in time
[11:19:24] Maintenance mode disabled for node2 after failure
[11:19:24] ⏸ PAUSED - node failure is unsafe to continue. Check node2 manually, then Continue or Cancel.
[11:43:30] β–Ά Resumed (was: node_failure)
[11:43:31] β–Ά Resumed by user after failure on node2
[11:43:31] === Rolling update completed ===
[11:43:31] Summary: 1 updated, 0 skipped (up-to-date), 1 failed
2026-11-11 14:10:58	2026-11-11 14:24:08	admin	Completed

CKeckNorthIO avatar Nov 25 '26 08:11 CKeckNorthIO

Hi, thanks for digging that out, it shows what went wrong. On node2 the evacuation reported done five seconds after maintenance mode went on, with 23 guests still running there, so the install started before anything had moved, and the HA migrations in your node logs only began after that.

The likely cause is on our side: right after node1 leaves maintenance, PegaProx can still count it as in maintenance for a few seconds. It then finds no target for node2's guests, treats node2 like a single node with nowhere to move them, and calls that done. We're on it.

If PegaProx saves you time on these clusters, https://opencollective.com/pegaprox helps keep it going.

Marcus

mkellermann97 avatar Nov 25 '26 14:11 mkellermann97

Quick update: this is fixed on Testing and will be in the next release.

Proxmox HA keeps reporting a node as in maintenance for a little while after it leaves it (about 20 seconds on our lab), and that is where node2's missing target came from. PegaProx no longer takes the node back as in maintenance during that time, the rolling update waits until HA has let go of it before it starts the next node, and if an evacuation still finds no target on a cluster with other nodes, it now ends with errors, so the run pauses instead of installing.

Marcus

mkellermann97 avatar Nov 26 '26 09:11 mkellermann97

The fix is in 1.5.1 now: https://github.com/PegaProx/project-pegaprox/releases/tag/v1.5.1

Your log made this one easy to pin down, thanks for digging it out. If the next rolling update on the two-node cluster does anything odd again, just reopen.

MrMasterbay avatar Nov 26 '26 16:11 MrMasterbay