all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: "Daniel Kral" <d.kral@proxmox.com>
To: "Fiona Ebner" <f.ebner@proxmox.com>, <pve-devel@lists.proxmox.com>
Subject: Re: [PATCH-SERIES common/cluster/ha-manager/qemu-server/container v3 00/21] migration: strict config check for intra-cluster migration
Date: Tue, 13 Oct 2026 14:40:21 +0200	[thread overview]
Message-ID: <DM3PUCRSDKNK.1JHJW57LIBSI7@proxmox.com> (raw)
In-Reply-To: <20260918160841.128088-1-f.ebner@proxmox.com>

I like the approach with the JSON commands over the storing and
restoring of migration parameters in the migrate API handler itself,
nice work and thanks for working on this!

I tested both the passing the --with-conntrack-state and the new
--skip-config-check options with cluster nodes being in outdated
versions and all being on the correct version to use the new
functionality.

The JSON command and therefore the migration parameters were only passed
if all of the cluster nodes had the correct version as expected.

The same for whether the target node had at least the correct version to
know the new config command to make a strict config check if
--skip-config-check wasn't specified (tested it with the 'shiny-new'
config property from v2).

I tested the migrations with the {qm,pct} migrate as well as the
ha-manager migrate API.

On Fri Sep 18, 2026 at 6:08 PM CEST, Fiona Ebner wrote:
> Changes in v3:
> * Add patches to teach HA to pass along certain migration parameters
>   and fix #7053 by passing along 'with-conntrack-state'.
> * Avoid re-using root-only 'force' flag, add a new 'skip-config-check'
>   flag that can also be used by regular users.
> * Use pvecfg node version to detect if a target supports config
>   checking via mtunnel.
>
> Changes in v2:
> * add patches for container
> * log when skipping strict configuration check
>
> First part
> ==========
>
> Additional migration options can now be passed from the guest API
> endpoints to the HA stack. From the HA resource migrate API endpoint,
> the options are passed all the way to the LRM and resource plugins,
> which will then use it again when invoking the resource's migrate API
> endpoint itself.
>
> The migration API endpoints for containers and VMs use different
> parameters. For example, the endpoint for containers does not have
> the 'with-conntrack-state' option. To keep the schema for the more
> abstract endpoint for HA resources clean, separate by type using a
> oneOf schema and let the resource plugins declare additional
> parameters via a migrate_json_properties() function.
>
> Known issue: because of cyclic dependencies, the PVE::API::{LXC,QEMU}
> modules can't be included by the respective resource plugin, when the
> build happens in a PVE_GENERATING_DOCS environment. Because of this,
> the extra migration options for the HA endpoint won't show up in the
> docs.
>
> To pass these along to CRM, support for JSON CRM commands is
> introduced, with only the migration command being supported for now.
> If not all nodes are recent enough to support the new-style JSON CRM
> command, produce a warning and fall-back to the previous behavior
> ignoring the additional migration options.
>
> Initially, this is used to fix #7053 by passing along the
> 'with-conntrack-state' migration option.
>
> Second part
> ===========
>
> For remote migration, we already check that the config can be parsed
> on the target. Do the same for intra-cluster migration, to avoid
> issues like [0] for future new settings, with settings being
> unexpectedly ignored on the target, and in the case of qemu-server
> even relatively silently dropped (there are warnings in the target's
> system logs). In case of containers, an example is migrating a
> container with a mountpoint with 'keepattrs' to a node with a too old
> pve-container version, resulting in the mountpoint not being mounted
> on the target.
>
> Unfortunately, before patch "qm: mtunnel: reply when a command is
> unknown", when a command is unknown, mtunnel did not reply at all.
> Therefore, check the target node's version to see if it is new enough
> to support the new mtunnel command.
>
> Still missing
> =============
>
> UI integration for the new flag
> HA manager tests with the new JSON commands
>
> Useful to pull in early
> =======================
>
> pvecfg node version helpers moved to pve-cluster rather than just
> pve-guest-common, because David needs them in pve-cluster too [1].
>
> [0]: https://bugzilla.proxmox.com/show_bug.cgi?id=7341
> [1]: https://lore.proxmox.com/pve-devel/20260724142528.109453-1-d.riley@proxmox.com/
>
> Patch 15/21 qm: mtunnel: reply when a command is unknown would also
> be nice to have.
>
> Dependencies
> ============
>
> Dependency bump qemu-server,pve-container -> common,pve-cluster needed!
>
> qemu-server also build-depends on new common and pve-cluster.
>
> pve-manager needs to depend on new ha-manager so the node version
> checking makes sense.
>
> Dependency bump pve-container -> guest-common needed!




      parent reply	other threads:[~2026-10-13 12:40 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-18 16:08 [PATCH-SERIES common/cluster/ha-manager/qemu-server/container v3 00/21] migration: strict config check for intra-cluster migration Fiona Ebner
2026-09-18 16:08 ` [PATCH common v3 01/21] tools: move version_cmp() helper from qemu-server Fiona Ebner
2026-09-18 16:08 ` [PATCH common v3 02/21] rest handler: handle: respect schema's 'type-property' when resolving type Fiona Ebner
2026-09-18 16:08 ` [PATCH cluster v3 03/21] cluster: move pvecfg node version helpers from qemu-server Fiona Ebner
2026-09-18 16:08 ` [PATCH ha-manager v3 04/21] next state {stopped,started}: factor out helper to handle motion command Fiona Ebner
2026-10-09 13:32   ` Daniel Kral
2026-09-18 16:08 ` [PATCH ha-manager v3 05/21] lrm: resource migration: support extra migration options Fiona Ebner
2026-10-09 13:34   ` Daniel Kral
2026-10-13 13:57     ` Fiona Ebner
2026-09-18 16:08 ` [PATCH ha-manager v3 06/21] change service state: support hash as a parameter value Fiona Ebner
2026-09-18 16:08 ` [PATCH ha-manager v3 07/21] next state: handle motion command: support migration options Fiona Ebner
2026-10-09 13:35   ` Daniel Kral
2026-09-18 16:08 ` [PATCH ha-manager v3 08/21] queue resource motion: " Fiona Ebner
2026-10-13 12:22   ` Daniel Kral
2026-09-18 16:08 ` [PATCH ha-manager v3 09/21] crm command: support JSON-style migrate command Fiona Ebner
2026-10-09 13:38   ` Daniel Kral
2026-10-13 14:10     ` Fiona Ebner
2026-09-18 16:08 ` [PATCH ha-manager v3 10/21] api: resources: migration: support additional migration options Fiona Ebner
2026-09-18 16:21   ` Fiona Ebner
2026-10-12  9:59   ` Daniel Kral
2026-10-13 14:34     ` Fiona Ebner
2026-09-18 16:08 ` [PATCH qemu-server v3 11/21] helpers: move version_cmp() helper to pve-common Fiona Ebner
2026-10-08 14:46   ` Michael Köppl
2026-10-08 14:49     ` Fiona Ebner
2026-09-18 16:08 ` [PATCH qemu-server v3 12/21] helpers: move pvecfg node version helpers to pve-cluster Fiona Ebner
2026-09-18 16:08 ` [PATCH qemu-server v3 13/21] api: migrate: allow forwarding certain migration properties to HA Fiona Ebner
2026-10-13 12:25   ` Daniel Kral
2026-09-18 16:08 ` [PATCH qemu-server v3 14/21] fix #7053: api: migrate: pass 'with-conntrack-state' flag to HA migration Fiona Ebner
2026-09-18 16:08 ` [PATCH qemu-server v3 15/21] qm: mtunnel: reply when a command is unknown Fiona Ebner
2026-09-18 16:08 ` [PATCH qemu-server v3 16/21] qm: mtunnel: add 'conf' command to do strict configuration parsing Fiona Ebner
2026-09-18 16:08 ` [PATCH qemu-server v3 17/21] migration: intra-cluster: check config can be parsed on target node Fiona Ebner
2026-09-18 16:08 ` [PATCH container v3 18/21] api: migrate: allow forwarding certain migration properties to HA Fiona Ebner
2026-09-18 16:08 ` [PATCH container v3 19/21] pct: introduce mtunnel command Fiona Ebner
2026-09-18 16:08 ` [PATCH container v3 20/21] d/control: bump versioned build dependency for libpve-common-perl to 9.0.12 Fiona Ebner
2026-09-18 16:08 ` [PATCH container v3 21/21] migration: intra-cluster: check config can be parsed on target node Fiona Ebner
2026-10-13 12:40 ` Daniel Kral [this message]

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=DM3PUCRSDKNK.1JHJW57LIBSI7@proxmox.com \
    --to=d.kral@proxmox.com \
    --cc=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal