Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 822393 - app-emulation/lxd-4.0.8 lxc copy/move fails with >=sys-fs/btrfs-progs-5.14.2
Summary: app-emulation/lxd-4.0.8 lxc copy/move fails with >=sys-fs/btrfs-progs-5.14.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Joonas Niilola
URL: https://github.com/lxc/lxd/issues/9418
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-08 07:19 UTC by Ernst Herzberg
Modified: 2021-11-09 11:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ernst Herzberg 2021-11-08 07:19:03 UTC
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
Comment 1 Joonas Niilola gentoo-dev 2021-11-09 11:37:40 UTC
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!
Comment 2 Larry the Git Cow gentoo-dev 2021-11-09 11:44:30 UTC
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(+)