public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Fiona Ebner <f.ebner@proxmox.com>
To: Dominik Csapak <d.csapak@proxmox.com>,
	Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] [PATCH qemu-server 3/3] api: include not mapped resources for running vms in migrate preconditions
Date: Wed, 10 Apr 2024 12:52:46 +0200	[thread overview]
Message-ID: <b620496c-ffbd-43b7-aec3-179154216c41@proxmox.com> (raw)
In-Reply-To: <d8739de7-82ca-4c64-bb96-64487b6ddcd9@proxmox.com>

Am 02.04.24 um 11:39 schrieb Dominik Csapak:
> On 3/22/24 17:19, Fiona Ebner wrote:
>> Am 20.03.24 um 13:51 schrieb Dominik Csapak:
>>> so that we can show a proper warning in the migrate dialog and check it
>>> in the bulk migrate precondition check
>>>
>>> the unavailable_storages and allowed_nodes should be the same as before
>>>
>>> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
>>> ---
>>> not super happy with this partial approach, we probably should just
>>> always return the 'allowed_nodes' and 'not_allowed_nodes' and change
>>> the gui to handle the running vs not running state?
>>
>> So not_allowed_nodes can already be returned in both states after this
>> patch. But allowed nodes still only if not running. I mean, there could
>> be API users that break if we'd always return allowed_nodes, but it
>> doesn't sound unreasonable for me to do so. Might even be an opportunity
>> to structure the code in a bit more straightforward manner.
> 
> yes, as said previosly i'd like this api call a bit to make it more
> practical
> but that probably has to wait for the next major release
> 
> as for returning 'allowed_nodes' always, we'd have to adapt the gui of
> course,
> but if we don't deem it 'too breaking' i'd rework that a bit even now
> 

Thinking about it in general for existing API users:

1. If allowed_nodes is not checked for live-migration, no breakage.

2. If allowed_nodes is checked for live-migration, the API user just
becomes more accurate (as long as what we return is correct).

3. If there is an assert that allowed_nodes is not returned for
live-migration, breakage.

4. If presence of allowed_nodes is used to guess whether it's a
live-migration or not, breakage. But this is just a bug IMHO.




  reply	other threads:[~2024-04-10 10:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-20 12:51 [pve-devel] [PATCH qemu-server/manager] pci live migration followups Dominik Csapak
2024-03-20 12:51 ` [pve-devel] [PATCH qemu-server 1/3] stop cleanup: remove unnecessary tpmstate cleanup Dominik Csapak
2024-03-22 14:54   ` Fiona Ebner
2024-03-20 12:51 ` [pve-devel] [PATCH qemu-server 2/3] migrate: call vm_stop_cleanup after stopping in phase3_cleanup Dominik Csapak
2024-03-22 15:17   ` Fiona Ebner
2024-03-20 12:51 ` [pve-devel] [PATCH qemu-server 3/3] api: include not mapped resources for running vms in migrate preconditions Dominik Csapak
2024-03-22 14:53   ` Stefan Sterz
2024-03-22 16:19   ` Fiona Ebner
2024-04-02  9:39     ` Dominik Csapak
2024-04-10 10:52       ` Fiona Ebner [this message]
2024-03-20 12:51 ` [pve-devel] [PATCH manager 1/3] bulk migrate: improve precondition checks Dominik Csapak
2024-03-20 12:51 ` [pve-devel] [PATCH manager 2/3] bulk migrate: include checks for live-migratable local resources Dominik Csapak
2024-03-20 12:51 ` [pve-devel] [PATCH manager 3/3] ui: adapt migration window to precondition api change Dominik Csapak

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=b620496c-ffbd-43b7-aec3-179154216c41@proxmox.com \
    --to=f.ebner@proxmox.com \
    --cc=d.csapak@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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal