Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#71245 - [lxc] 4.0.9 can't handle zfs rootfs

Attached to Project: Community Packages
Opened by André (lianse) - Sunday, 13 June 2021, 08:46 GMT
Last edited by Morten Linderud (Foxboron) - Sunday, 10 October 2021, 09:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Morten Linderud (Foxboron)
Architecture x86_64
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Lxc-4.0.9 can't start containers which have zfs baked rootfs (i.e. lxc.rootfs.path = zfs:tank/vms/vm01)

Possible workaround: downgrade to last version before or apply given commits (from upstream master)
** https://github.com/lxc/lxc/commit/0dd4788a84de4ceb2a246c1ee7bc7e2242e61f8a
** https://github.com/lxc/lxc/commit/4bc6ecbfb77a0b5f8c7acd2159bea6275c4ae842

container log will show:
ERROR conf - conf.c:lxc_rootfs_init:557 - Bad file descriptor - Failed to open "tank/vms/vm01"
ERROR start - start.c:__lxc_start:2045 - Failed to handle rootfs pinning for container "vm01"


Steps to reproduce:
- install lxc-4.0.9 and configure one container to use a zfs subvolume as rootfs
- starting the container will fail
This task depends upon

Closed by  Morten Linderud (Foxboron)
Sunday, 10 October 2021, 09:05 GMT
Reason for closing:  Fixed
Comment by Morten Linderud (Foxboron) - Saturday, 09 October 2021, 11:39 GMT
These patches are not applying cleanly. We also don't have zfs in the repos so I'm not super motivated to try figure out the missing backports we need. If you can figure them out I'll consider applying them if it's not a huge amount of patches :)
Comment by André (lianse) - Sunday, 10 October 2021, 07:29 GMT
Looks like there is no need to backport.
Lxc 1.0.10 alredy contains this fix https://github.com/lxc/lxc/blob/d867b94c22fccbcc153882867672a19198a0b2a0/src/lxc/conf.c#L559-L566. Bug can be closed
Comment by Morten Linderud (Foxboron) - Sunday, 10 October 2021, 09:05 GMT
Ah, I didn't see any tags on the commit links. That explains it :) Thanks!

Loading...