With sys-fs/btrfs-progs-5.14.2 it no longer possible to copy/move images/containers between machines. $ lxc -v cp mk3s-new droid:mk3s-new Error: Failed instance creation: - https://192.168.55.16:8443: Error transferring instance data: Failed to run: btrfs property set -ts /var/lib/lxd/storage-pools/default/containers/migration.3320070522/.migration-send ro false: ERROR: cannot flip ro->rw with received_uuid set, use force if you really want that or $ lxc image copy dex:loc-gentoo local: --alias loc-gentoo Image copied successfully! [ ... nothing has copied! ... ] In the first case the lxd daemon crashes without any message in the log. possible fix: https://github.com/lxc/lxd/commit/5efac9cfed92a890dc1a073fe60b1c814c305267 Reproducible: Always
The commit is tagged for lxd-4.20, but weirdly it applies cleanly to 4.0.8 just fine. Yeah we should include this one. sys-fs/btrfs-progs-5.14.2 is unstable, so it looks like patching 4.0.8 is enough. Thanks!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37d0f50bdb1e7779632a7fe4c6df16158fd2f114 commit 37d0f50bdb1e7779632a7fe4c6df16158fd2f114 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2021-11-09 11:41:58 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2021-11-09 11:41:58 +0000 app-emulation/lxd: add fix for >btrfs-progs-5.14 safety check Closes: https://bugs.gentoo.org/822393 Signed-off-by: Joonas Niilola <juippis@gentoo.org> ...d-4.0.8-btrfs-progs-5.14-safety-check-fix.patch | 75 ++++++++++++++++++++++ .../lxd/{lxd-4.0.8.ebuild => lxd-4.0.8-r1.ebuild} | 2 + 2 files changed, 77 insertions(+)