← Back to issue list

providers: fix id mapping in lxd project mount

View original Github issue

Metadata

Project
rockcraft
Number
#18
Type
pull request
State
merged
Author
cmatsuoka
Labels
Created
Updated
Closed

Current evaluation

Merged fix for LXD project mount ID mapping. The change maps the directory owner instead of the current user's UID, preventing file creation failures when IDs differ. This resolves OCI image generation failures in GCE environments.

Suggested action:

No scores available.

Issue body

Map the directory owner when mounting project from host instead of using the uid of the current user, otherwise file creation will fail in hosts where the directory owner and user id are different (like in gce spread tests). Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com> - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged fix for LXD project mount ID mapping. The change maps the directory owner instead of the current user's UID, preventing file creation failures when IDs differ. This resolves OCI image generation failures in GCE environments.
qwen3.6-35b-a3b-mtp-q6 Merged fix that maps the directory owner instead of the current user's UID during LXD project mounts. This resolves file creation failures in environments like GCE where ownership differs, successfully fixing OCI image generation.
qwen3.6-35b-a3b-mtp-q6 Merged to fix LXD project mount ID mapping. Maps directory owner instead of current user UID, resolving host mount file creation failures. Fixes OCI image generation in GCE, though some spread tests remain blocked by a missing directory.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1588 lxd: use SUDO_UID for ID mapping snapcraft merged Merged a one-file change implementing SUDO_UID for LXD ID mapping, resolving bug 1719996. The pull request passed CI, received approval from one reviewer with no unresolved comments, and was successfully integrated.
73%
#1904 lxd: raw.idmap expects host and container id respectively snapcraft merged Merged a fix correcting raw.idmap syntax in LXD configuration. The change maps host and container IDs correctly, preventing container files from being owned by root. Resolves LP: #1741753 with a four-line adjustment across two files.
72%