← Back to issue list

LXD 5.0 fails to build rocks on Ubuntu 22.04

View original Github issue

Metadata

Project
rockcraft
Number
#195
Type
issue
State
closed
Author
twovican
Labels
Created
Updated
Closed

Current evaluation

LXD 5.0 caused rockcraft pack failures due to shared mount propagation breaking fuse-overlayfs. The issue was resolved by applying mount --make-rprivate to prevent unmount propagation. Fix verified and closed after Rockcraft integration.

Suggested action:

No scores available.

Issue body

When using LXD 5.0 on 22.04, `rockcraft pack` will fail to build. Throwing the following error: `2023-02-14 17:59:07.565 :: 2023-02-14 23:59:06.997 fuse-overlayfs mountpoint='/root/overlay/overlay', args=('-olowerdir=/root/bundles/ubuntu-20.04/rootfs,upperdir=/root/overlay/packages,workdir=/root/overlay/work',) 2023-02-14 17:59:07.565 :: 2023-02-14 23:59:07.020 Failed to mount overlay on /root/overlay/overlay: Command '['fuse-overlayfs', '-olowerdir=/root/bundles/ubuntu-20.04/rootfs,upperdir=/root/overlay/packages,workdir=/root/overlay/work', '/root/overlay/overlay']' returned non-zero exit status 1.` The current workaround is to upgrade LXD to 5.9 stable. Run this: `sudo snap install lxd --channel=5.9/stable` Instead of this: `sudo snap install lxd --channel=5.0/stable`

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b LXD 5.0 caused rockcraft pack failures due to shared mount propagation breaking fuse-overlayfs. The issue was resolved by applying mount --make-rprivate to prevent unmount propagation. Fix verified and closed after Rockcraft integration.
qwen/qwen3.6-35b-a3b LXD 5.0 rockcraft pack failures stemmed from shared mount propagation breaking /dev. Traced to liblxc PR #4229. Applied rprivate mount flag to prevent propagation. Fix merged into Rockcraft, closing the issue.
qwen/qwen3.6-35b-a3b LXD 5.0+ shared mount propagation broke rockcraft pack by unmounting /dev entries. Resolved by updating Rockcraft to set /dev as rprivate, preventing unmount propagation. Fixed and closed.
qwen3.6-35b-a3b-mtp-q6 Fixed in Rockcraft by setting /dev mount propagation to rprivate, resolving the fuse-overlayfs failure caused by LXD 5's shared mount propagation. The patch landed in craft-parts and the issue was closed.
qwen3.6-35b-a3b-mtp-q6 Fixed. LXD 5.0 shared mount propagation broke fuse-overlayfs during rockcraft builds. Unmounts propagated to host /dev. Applying mount --make-rprivate isolates the mount and resolves the issue. Fix confirmed and will be integrated into Rockcraft.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#27 fix: use lxd from "5.21/stable" craft-actions merged Merged a fix switching the LXD channel from latest/stable to 5.21/stable. This resolves Rockcraft overlay compatibility issues and aligns with the recommended LTS release. Approved by two reviewers with a three-file change.
77%
#178 `rockcraft` crashes at the `update apt cache` step rockcraft open Rockcraft fails at 'update apt cache' on GitHub ubuntu-22.04 runners due to Docker iptables rules blocking LXD container networking. Maintainers identified the root cause and pointed to canonical/setup-lxd or rockcraft-pack actions as the fix. Reporter acknowledged the solution in Jan 2023. No labels, no activity since.
74%
#7 fix: upgrade LXD to an existing channel craft-actions merged Merged following approval and CI checks. Updated the rockcraft action to use the latest/stable LXD channel, replacing the unavailable 5.9/stable version to align with upstream Rockcraft.
72%