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-SERIES] remove replicated volumes on guest purge
Date: Fri, 29 Jan 2021 11:12:11 +0100 [thread overview]
Message-ID: <9bcc59d3-c457-c1a0-a17c-4b18b668417c@proxmox.com> (raw)
In-Reply-To: <6a3087eb-4fe3-c282-99a5-c2b697fdb72b@proxmox.com>
Am 28.01.21 um 17:20 schrieb Thomas Lamprecht:
> On 14.10.20 13:36, Fabian Ebner wrote:
>> Introduces two helper functions in Replication.pm and ReplicationConfig.pm
>> so that the guests can do the removal easily.
>>
>> destroy_vm contains a check whether the guest is still in use by a
>> linked clone (in the LXC case triggered by the storage backend at vdisk_free),
>> so that needs to happen first.
>> That check could be factored out and removing replicated volumes moved
>> to before destroy_vm, but I feel like it's cleaner to first destroy the
>> VM and do all related cleanups later (as it is now).
>>
>> The problem is that the guest config does not contain any volumes
>> after destroy_vm, and run_full_removal would do nothing, because
>> on removal, run_replication currently only considers storages that
>> show up in the config and not those from the replication job state.
>>
>> Therefore, this depends on the following patch to be applied first:
>> https://lists.proxmox.com/pipermail/pve-devel/2020-October/045386.html
>>
>> Dependency bumps: qemu-server,pve-container -> pve-guest-common
>> are needed for patches #2 and #3
>> and I think the reverse bumps are needed for patch #4
>>
>
> Besides that, is this still relevant? If so, it may need some rebasing,
> at least guest-common does.
>
If the decision that we want to remove replicated volumes on purge
hasn't changed, then yes, it's still relevant.
But it might be a good idea to introduce this change close(r) to the
next release, and mention it in the "known issues", so fewer people are
surprised by it.
In any case, this depends on another patch (as mentioned above), so you
probably want to take a look at that series first (it still applies for
me): https://lists.proxmox.com/pipermail/pve-devel/2020-October/045388.html
The second patch is the important one.
prev parent reply other threads:[~2021-01-29 10:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-14 11:36 Fabian Ebner
2020-10-14 11:36 ` [pve-devel] [PATCH guest-common 1/5] add list_local_jobs and run_full_removal functions Fabian Ebner
2020-10-14 11:36 ` [pve-devel] [PATCH qemu-server 2/5] remove replicated volumes on purge Fabian Ebner
2020-10-14 11:36 ` [pve-devel] [PATCH container 3/5] " Fabian Ebner
2020-10-14 11:36 ` [pve-devel] [PATCH guest-common 4/5] remove the now unused remove_vmid_jobs Fabian Ebner
2020-10-14 11:36 ` [pve-devel] [PATCH guest-common 5/5] cleanup: iterate over values in find_local_replication_job Fabian Ebner
2021-01-28 16:20 ` [pve-devel] [PATCH-SERIES] remove replicated volumes on guest purge Thomas Lamprecht
2021-01-29 10:12 ` Fabian Ebner [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=9bcc59d3-c457-c1a0-a17c-4b18b668417c@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox