From: Fiona Ebner <f.ebner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH v3 qemu-server 3/3] migrate: remove left-over dbus-vmstate instance when migrating without conntrack state
Date: Wed, 10 Dec 2025 14:28:12 +0100 [thread overview]
Message-ID: <20251210132833.135013-1-f.ebner@proxmox.com> (raw)
In-Reply-To: <20251210125724.121834-1-f.ebner@proxmox.com>
As reported in the enterprise support, if something went wrong when
removing the dbus-vmstate object earlier, a following migrating using
'--with-conntrack-state' will lead to a crash.
Try to remove any leftover when migrating without the conntrack state.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
Reported by Friedrich just after I sent the v3. Technically
orthogonal, and should get much less likely after patches 1+2 here,
but still good for future-proofing.
src/PVE/QemuMigrate.pm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/PVE/QemuMigrate.pm b/src/PVE/QemuMigrate.pm
index 8fa84080..b3ddc34e 100644
--- a/src/PVE/QemuMigrate.pm
+++ b/src/PVE/QemuMigrate.pm
@@ -254,6 +254,12 @@ sub prepare {
'conntrack state migration not supported or disabled, '
. 'active connections might get dropped',
);
+
+ # In case some leftover instance is running, stop it. The target QEMU instance won't
+ # have the 'dbus-vmstate' object, so the source must not have it either.
+ if (defined(PVE::QemuServer::DBusVMState::qemu_del_dbus_vmstate($vmid, quiet => 1))) {
+ $self->log('warn', "stopped left-over dbus-vmstate helper for VM $vmid");
+ }
}
}
--
2.47.3
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2025-12-10 13:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-10 12:57 [pve-devel] [PATCH-SERIES v3 qemu-server 0/2] dbus-vmstate: fix method call on dbus object resolving to wrong instance Fiona Ebner
2025-12-10 12:57 ` [pve-devel] [PATCH v3 qemu-server 1/2] dbus-vmstate: introduce dbus_call_method() helper Fiona Ebner
2025-12-10 12:57 ` [pve-devel] [PATCH v3 qemu-server 2/2] dbus-vmstate: fix method call on dbus object resolving to wrong instance Fiona Ebner
2025-12-10 13:28 ` Fiona Ebner [this message]
2025-12-10 13:31 ` [pve-devel] [PATCH v3 qemu-server 3/3] migrate: remove left-over dbus-vmstate instance when migrating without conntrack state Fiona Ebner
2025-12-10 14:35 ` [pve-devel] applied: [PATCH-SERIES v3 qemu-server 0/2] dbus-vmstate: fix method call on dbus object resolving to wrong instance Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251210132833.135013-1-f.ebner@proxmox.com \
--to=f.ebner@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox