[pve-devel] applied: [PATCH v2 qemu-server] fix #2344: ignore cloudinit in replication check
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri Oct 18 21:40:06 CEST 2019
On 9/27/19 4:22 PM, Mira Limbeck wrote:
> When adding a cloudinit disk it does not contain media=cdrom until it is
> actually created. This means the check in check_replication fails to
> detect cloudinit and it is recognized as normal disk. Then parse_volname
> fails because it does not match the vm-$vmid-XYZ format. To fix this we
> now check explicitly if the volname matches cloudinit and if so, return
> early.
>
> Additionally 2 small cleanups replacing cloudinit regexes with the
> same check for volname matches cloudinit.
>
> Signed-off-by: Mira Limbeck <m.limbeck at proxmox.com>
> ---
> v2:
> - instead of adding additional regexes remove them completely
>
> PVE/API2/Qemu.pm | 19 ++++++++++---------
> 1 file changed, 10 insertions(+), 9 deletions(-)
>
applied, thanks!
More information about the pve-devel
mailing list