Re: [pve-devel] [PATCH qemu-server 1/1] Add VM hooks for pre/post-migrate on target/source

2022-09-27 Thread Stefan Hanreich
On 9/26/22 17:38, Thomas Lamprecht wrote: I don't like that there's no commit message (the cover letter is more for general/meta info, it doesn't gets into git after all, would require doing pull requests which we (currently) don't do in most cases). Besides that I'd rather avoid extending

Re: [pve-devel] [PATCH pve-container/qemu-server/pve-guest-common/pve-docs 0/1] Add pre/post-migrate hooks

2022-09-27 Thread Stefan Hanreich
On 9/26/22 17:51, Thomas Lamprecht wrote: Am 22/09/2022 um 16:13 schrieb Stefan Hanreich: I have decided to create distinct event types for source/target nodes, since otherwise the same script would run essentially twice on the source/target node. With distinct event types, the hooks should b

Re: [pve-devel] [PATCH pve-guest-common 1/1] Add abstract methods for pre/post-migrate hooks

2022-09-27 Thread Stefan Hanreich
On 9/26/22 17:27, Thomas Lamprecht wrote: Am 22/09/2022 um 16:13 schrieb Stefan Hanreich: Signed-off-by: Stefan Hanreich --- src/PVE/AbstractMigrate.pm | 14 ++ 1 file changed, 14 insertions(+) for the record, if we do it like this (not much rationale given in the commit m

Re: [pve-devel] [PATCH pve-container/qemu-server/pve-guest-common/pve-docs 0/1] Add pre/post-migrate hooks

2022-09-27 Thread Thomas Lamprecht
Am 27/09/2022 um 09:40 schrieb Stefan Hanreich: > On 9/26/22 17:51, Thomas Lamprecht wrote: >> Am 22/09/2022 um 16:13 schrieb Stefan Hanreich: >>> I have decided to create distinct event types for source/target nodes, since >>> otherwise the same script would run essentially twice on the source/tar

Re: [pve-devel] [PATCH pve-guest-common 1/1] Add abstract methods for pre/post-migrate hooks

2022-09-27 Thread Thomas Lamprecht
Am 27/09/2022 um 09:40 schrieb Stefan Hanreich: > On 9/26/22 17:27, Thomas Lamprecht wrote: >> Am 22/09/2022 um 16:13 schrieb Stefan Hanreich: >>> Signed-off-by: Stefan Hanreich >>> --- >>> src/PVE/AbstractMigrate.pm | 14 ++ >>> 1 file changed, 14 insertions(+) >>> >> >> for the re

Re: [pve-devel] [PATCH firewall] fix #4204: automatically update usages of group when it is renamed

2022-09-27 Thread Wolfgang Bumiller
On Mon, Sep 26, 2022 at 11:45:07AM +0200, Leo Nunner wrote: > When renaming a group, the usages didn't get updated automatically. To > get around problems with atomicity, the old rule is first cloned with the > new name, the usages are updated and only when updating has finished, the > old rule is

Re: [pve-devel] [PATCH firewall] fix #4204: automatically update usages of group when it is renamed

2022-09-27 Thread Leo Nunner
On 9/27/22 10:46, Wolfgang Bumiller wrote: On Mon, Sep 26, 2022 at 11:45:07AM +0200, Leo Nunner wrote: When renaming a group, the usages didn't get updated automatically. To get around problems with atomicity, the old rule is first cloned with the new name, the usages are updated and only when

Re: [pve-devel] [PATCH firewall] fix #4204: automatically update usages of group when it is renamed

2022-09-27 Thread Wolfgang Bumiller
On Tue, Sep 27, 2022 at 11:28:26AM +0200, Leo Nunner wrote: > > On 9/27/22 10:46, Wolfgang Bumiller wrote: > > On Mon, Sep 26, 2022 at 11:45:07AM +0200, Leo Nunner wrote: > > > + $cluster_conf->{groups}->{$param->{group}} = > > > $cluster_conf->{groups}->{$param->{rename}}; > > > +

Re: [pve-devel] [PATCH firewall] fix #4204: automatically update usages of group when it is renamed

2022-09-27 Thread Leo Nunner
On 9/27/22 11:59, Wolfgang Bumiller wrote: On Tue, Sep 27, 2022 at 11:28:26AM +0200, Leo Nunner wrote: On 9/27/22 10:46, Wolfgang Bumiller wrote: On Mon, Sep 26, 2022 at 11:45:07AM +0200, Leo Nunner wrote: + $cluster_conf->{groups}->{$param->{group}} = $cluster_conf->{groups}->

Re: [pve-devel] [PATCH firewall] fix #4204: automatically update usages of group when it is renamed

2022-09-27 Thread Wolfgang Bumiller
On Tue, Sep 27, 2022 at 12:13:30PM +0200, Leo Nunner wrote: > On 9/27/22 11:59, Wolfgang Bumiller wrote: > > > On Tue, Sep 27, 2022 at 11:28:26AM +0200, Leo Nunner wrote: > > > On 9/27/22 10:46, Wolfgang Bumiller wrote: > > > > On Mon, Sep 26, 2022 at 11:45:07AM +0200, Leo Nunner wrote: > > > > >

[pve-devel] [PATCH qemu-server] migration: use copy-mode "write-blocking" for drive mirror

2022-09-27 Thread Fiona Ebner
Otherwise, there is nothing enforcing that the drive mirror is ready when the migration inactivates the block devices, which can lead to a failing assertion: > ../block/io.c:2026: bdrv_co_write_req_prepare: Assertion > `!(bs->open_flags & BDRV_O_INACTIVE)' failed. QAPI documentation of 'write-bloc