← Back to issue list

LXD integration tests fail on Ubuntu 22.04

View original Github issue

Metadata

Project
craft-providers
Number
#270
Type
issue
State
closed
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Fixed in PR #275 via commit c585931: push_file_io now supports newer Ubuntu releases whose images lack an ubuntu user.

Resolution: closed resolved

Reason: Commit c585931, "lxd: make push_file_io work on newer Ubuntu versions," resolved the missing-user failure and was merged through PR #275.

Evaluated by: mr-cal-bot

No scores available.

Issue body

## Overview The integration test [`test_push_file_io`](https://github.com/canonical/craft-providers/blob/660921e77d155eae512153119f7974d3f93e0b7a/tests/integration/lxd/test_lxd_instance.py#L56) works on 20.04 runners but does not work on 22.04 runners nor in my 22.04 environment. ### Details The tests fail when they expect a `ubuntu` user to exist in the LXD instance. I'm not sure why this works in 20.04. ### Logs ``` > pytest tests/integration/lxd/test_lxd_instance.py::test_push_file_io E craft_providers.lxd.errors.LXDError: Failed to create file '/tmp/file-test.txt' in instance 'itest-YTMGLLZR'. E * Command that failed: 'lxc --project default exec local:itest-YTMGLLZR -- chown ubuntu:ubuntu /tmp/file-test.txt' E * Command exit code: 1 E * Command standard error output: b'chown: invalid user: \xe2\x80\x98ubuntu:ubuntu\xe2\x80\x99\n' craft_providers/lxd/lxd_instance.py:202: LXDError ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed in PR #275 via commit c585931: push_file_io now supports newer Ubuntu releases whose images lack an ubuntu user.
qwen/qwen3.6-35b-a3b — closed resolved Test failed on 22.04 due to missing 'ubuntu' user. Maintainer noted newer images work and questioned 16.04 support. Issue closed, likely resolved by dropping 16.04 or updating test config.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/craft-providers#275 (confidence 99%)

    The PR containing commit c585931 changed push_file_io to support images without an ubuntu user.

Related issues

Issue Project State Summary Similarity
#275 lxd: make push_file_io work on newer Ubuntu versions craft-providers merged Merged in PR #275 via commit c585931, updating LXD push_file_io for newer Ubuntu images without an ubuntu user and resolving #270.
81%
#762 fix: only do LXD compat checks on Ubuntu craft-providers merged Merged PR #762 as commit 789c32e, limiting LXD guest compatibility checks to Ubuntu and fixing Fedora 39 launched_environment failures (#753).
70%