From: Fiona Ebner <f.ebner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: Re: [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:31:03 +0100 [thread overview]
Message-ID: <ea00f28e-22b5-4214-b230-fc7feeed69b3@proxmox.com> (raw)
In-Reply-To: <20251210132833.135013-1-f.ebner@proxmox.com>
Am 10.12.25 um 2:29 PM schrieb Fiona Ebner:
> As reported in the enterprise support, if something went wrong when
> removing the dbus-vmstate object earlier, a following migrating using
Sorry, this should be 'not using' here.
> '--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");
> + }
> }
> }
>
_______________________________________________
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:30 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 ` [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 13:31 ` Fiona Ebner [this message]
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=ea00f28e-22b5-4214-b230-fc7feeed69b3@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