Bug 1195082 - mock, btrfs subvol and systemd-219 /var/lib/machines
Summary: mock, btrfs subvol and systemd-219 /var/lib/machines
Keywords:
Status: CLOSED DUPLICATE of bug 1205564
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Clark Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-22 22:24 UTC by Fabrice Bellet
Modified: 2015-03-25 08:41 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-25 08:41:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Fabrice Bellet 2015-02-22 22:24:57 UTC
Hi!

When running mock on a btrfs filesystem, the systemd-219 package (in F22 and rawhide) creates a directory /var/lib/machines inside the buildroot as a btrfs subvolume, that is not removed by the usual mock cleanup code, when the build completes :

ERROR: [Errno 1] Operation not permitted: '/var/lib/mock/fedora-rawhide-i386/root/var/lib/machines'

Workaround : manually invoke 
btrfs subvol delete -c  /var/lib/mock/fedora-*/root/var/lib/machines

Comment 1 Jorge Gallegos 2015-03-05 03:07:07 UTC
This is happening, like Fabrice says, only on a machine that:

a) Has /var/lib/mock under BTRFS
b) Running a mock build for fedora-22 (and rawhide)

The host machine does *not* have to be f22 or rawhide, this happens with a current f21 host running a mock build for f22.

Also, this is *probably* a bug better suited for the systemd maintainers to look at, given that this is obviously due to systemd 219: https://www.mail-archive.com/systemd-devel@lists.freedesktop.org/msg28109.html

Comment 2 Jan Synacek 2015-03-25 08:41:54 UTC
I *just* filed another bug and then realized that I spotted this bugzilla in the possible duplicates... I think this is a systemd bug because it creates the subvolumes... I'll close this bug as a duplicate of the one that I filed, as it contains some extra information. Sorry for the mess.

*** This bug has been marked as a duplicate of bug 1205564 ***


Note You need to log in before you can comment on or make changes to this bug.