all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Fabian Ebner <f.ebner@proxmox.com>
To: Thomas Lamprecht <t.lamprecht@proxmox.com>,
	Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] [PATCH v2 manager 1/3] ui: restore: disallow empty storage selection if it wouldn't work
Date: Wed, 27 Apr 2022 10:21:54 +0200	[thread overview]
Message-ID: <8e69575b-40fa-bc91-2276-0dcf483e84ca@proxmox.com> (raw)
In-Reply-To: <d7e71c32-2370-9e18-a430-7ad614b1c002@proxmox.com>

Am 27.04.22 um 09:05 schrieb Thomas Lamprecht:
> On 25.04.22 09:28, Fabian Ebner wrote:
>> Am 23.04.22 um 11:38 schrieb Thomas Lamprecht:
>>> On 21.04.22 13:26, Fabian Ebner wrote:
>>>> Namely, if there is a storage in the backup configuration that's not
>>>> available on the current node.
>>>
>>> Better than the status quo, but in the long run all the "force all volumes to a single storage"
>>> on restore and also migrate isn't ideal for the case where one or more storages do not exist on
>>> the target node. An per-volume override would be nicer, but may require some gui adaptions to
>>> present that in a sensible way with good UX.
>>>
>>
>> In the UI, it could simply be part of the disk grid (proposed in patch
>> manager 3/3), only showing up for drives selected from the backup?
> 
> exactly what I thought too.

My first attempt using a widgetcolumn with a storage selector failed, as
it would issue an API call for each disk...I'll try to come up with some
way of sharing/fixing the store to make it work. In v3, I forgot to
group the override settings in a fieldset, will do so in v4.

> 
>>
>> In the back-end for migration, we have a storage-storage map, but here
>> we'd need a drive-storage map. It'd be possible to extend the 'storage'
>> parameter for the create/restore API call to be such a map, but I wonder
>> if going for a 'restore-drives' parameter being such a map (and
>> replacing the proposed 'preserve-drives' parameter) would be better?
> 
> hmm, possibly
> 
>>
>> The downside is, we'd have to choose between
>> A) preserve disk and config
>> B) preserve disk as unused
>> for the drives that are not present in the backup. A) would be more
>> convenient in the partial restore context, but B) is the current
>> default. Thus we need to keep B) if 'restore-drives' is not specified at
>> all for backwards-compatibility, but can choose A) if 'restore-drives'
>> is specified. But doing so seems a little inconsistent regarding user
>> expectation.
> 
> would a more general src:dest map help, for example (just to give the very
> rough direction meaning here):
> 
> not present or `scsi1:backup` <- would be restored as in the backup (config)
> `scsi1:store=foo` <- as in config put on another storage
> `scsi1:preserve` <- preserve from existing installation being overwritten
> 
> The actual left/right hand sides would need to get fleshed out to fit our
> use cases best, but 

I sent a v3 yesterday with something similar.




  reply	other threads:[~2022-04-27  8:22 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-21 11:26 [pve-devel] [PATCH-SERIES v2 qemu/qemu-server/widget-toolkit/manager] more flexible restore Fabian Ebner
2022-04-21 11:26 ` [pve-devel] [PATCH v2 qemu 1/2] vma: restore: call blk_unref for all opened block devices Fabian Ebner
2022-04-25  6:37   ` Wolfgang Bumiller
2022-04-25 16:10   ` [pve-devel] applied: " Thomas Lamprecht
2022-04-21 11:26 ` [pve-devel] [PATCH v2 qemu 2/2] vma: allow partial restore Fabian Ebner
2022-04-25  6:40   ` Wolfgang Bumiller
2022-04-25 16:10   ` [pve-devel] applied: " Thomas Lamprecht
2022-04-21 11:26 ` [pve-devel] [PATCH v2 qemu-server 1/7] restore: cleanup oldconf: also clean up snapshots from kept volumes Fabian Ebner
2022-04-25 16:20   ` [pve-devel] applied: " Thomas Lamprecht
2022-04-21 11:26 ` [pve-devel] [PATCH v2 qemu-server 2/7] restore destroy volumes: remove check for absolute path Fabian Ebner
2022-04-25 16:20   ` [pve-devel] applied: " Thomas Lamprecht
2022-04-21 11:26 ` [pve-devel] [PATCH v2 qemu-server 3/7] restore deactivate volumes: never die Fabian Ebner
2022-04-23  9:18   ` Thomas Lamprecht
2022-04-25  6:45     ` Fabian Ebner
2022-04-25 16:21   ` [pve-devel] applied: " Thomas Lamprecht
2022-04-21 11:26 ` [pve-devel] [PATCH v2 qemu-server 4/7] restore: also deactivate/destroy cloud-init disk upon error Fabian Ebner
2022-04-25 16:21   ` [pve-devel] applied: " Thomas Lamprecht
2022-04-21 11:26 ` [pve-devel] [PATCH v2 qemu-server 5/7] api: create: refactor parameter check logic Fabian Ebner
2022-04-21 11:26 ` [pve-devel] [PATCH v2 qemu-server 6/7] api: create: allow overriding non-disk options during restore Fabian Ebner
2022-04-21 11:26 ` [pve-devel] [PATCH v2 qemu-server 7/7] restore: allow preserving drives " Fabian Ebner
2022-04-21 11:26 ` [pve-devel] [PATCH v2 widget-toolkit 1/1] css: add proxmox-good-row class Fabian Ebner
2022-04-23  8:32   ` [pve-devel] applied: " Thomas Lamprecht
2022-04-21 11:26 ` [pve-devel] [PATCH v2 manager 1/3] ui: restore: disallow empty storage selection if it wouldn't work Fabian Ebner
2022-04-23  9:38   ` Thomas Lamprecht
2022-04-25  7:28     ` Fabian Ebner
2022-04-27  7:05       ` Thomas Lamprecht
2022-04-27  8:21         ` Fabian Ebner [this message]
2022-04-21 11:26 ` [pve-devel] [PATCH v2 manager 2/3] ui: restore: allow override of some settings Fabian Ebner
2022-04-23 10:07   ` Thomas Lamprecht
2022-04-21 11:26 ` [pve-devel] [PATCH v2 manager 3/3] ui: restore: allow preserving disks Fabian Ebner

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=8e69575b-40fa-bc91-2276-0dcf483e84ca@proxmox.com \
    --to=f.ebner@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    --cc=t.lamprecht@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