← Back to issue list

Clean slate between rebuilds

View original Github issue

Metadata

Project
rockcraft
Number
#39
Type
issue
State
open
Author
valentincanonical
Labels
—
Created
Updated
Closed
—

Current evaluation

Request for a clean slate between rebuilds: original 'umoci init ... path already exists' failure (from base: bare, PR #36) was fixed in commit d1a5f04, but leftover LXC instance state remains, now believed to live in craft-providers

Suggested action: keep open

Reason: Maintainers explicitly decided the residual concern should stay tracked: cjdcordeiro wrote "I'd suggest nonetheless to keep this issue open" (after noting the reported corner case was fixed in commit d1a5f04) and sergiusens said "This looks like a craft-providers issue ... I will make sure looking into this is planned for in our upcoming sprint." The 2026 triage comment only asks whether a craft-providers/craft-application tracking issue exists, so ownership/duplication is still unresolved. Not close_resolved because only the specific base: bare reproduction was fixed, not the broader clean-environment request; actionability is low since the author admitted "Can't manage to reproduce in 100% cases" and never supplied the requested step-by-step example, and repo grep tools were unavailable here to confirm the fix or current provider code paths.

Evaluated by: mr-cal-bot

Impact: 40 Quick Win: 6 Complexity: 55 Confidence: 65 Actionability: 35

Issue body

Sometimes, the `rockcraft pack` command will fail with the following error, ```sh Failed to copy image: Command '['umoci', 'init', '--layout', '/root/images/bare']' returned non-zero exit status 1. (⨯ image layout creation: path already exists: /root/images/bare) 2022-05-19 12:28:58.701 Traceback (most recent call last): 2022-05-19 12:28:58.702 File "/snap/rockcraft/x1/lib/python3.8/site-packages/rockcraft/oci.py", line 239, in _process_run 2022-05-19 12:28:58.705 subprocess.run( 2022-05-19 12:28:58.705 File "/snap/rockcraft/x1/usr/lib/python3.8/subprocess.py", line 516, in run 2022-05-19 12:28:58.705 raise CalledProcessError(retcode, process.args, 2022-05-19 12:28:58.705 subprocess.CalledProcessError: Command '['umoci', 'init', '--layout', '/root/images/bare']' returned non-zero exit status 1. 2022-05-19 12:28:58.707 Full execution log: '/root/.cache/rockcraft/log/rockcraft-20220519-122857.121178.log' ``` a way to reproduce that seem to be, 1. build a part with multiple stage packages 2. remove a package from the list 3. try to rebuild the part

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 40
Quick Win: 6
Complexity: 55
Confidence: 65
Actionability: 35
keep open Request for a clean slate between rebuilds: original 'umoci init ... path already exists' failure (from base: bare, PR #36) was fixed in commit d1a5f04, but leftover LXC instance state remains, now believed to live in craft-providers
qwen/qwen3.6-35b-a3b
Impact: 40
Quick Win: 6
Complexity: 60
Confidence: 60
Actionability: 40
keep open Broader concern about clean slate between rebuilds in rockcraft; original umoci bug fixed but leftover files in LXC instances remain an issue tracked in craft-providers layer.
qwen/qwen3.8-27b
Impact: 50
Quick Win: 18
Staleness: 40
Complexity: 65
Confidence: 72
Support Request: 10
keep open rockcraft pack fails with 'path already exists' for /root/images/bare on rebuilds. The specific umoci init bug was fixed (commit d1a5f04); the broader clean-slate-between-rebuilds concern was identified as a craft-providers/craft-application layer issue. A 2026 triage comment asks whether a tracking issue exists upstream before closing as moved.
qwen/qwen3.6-35b-a3b
Staleness: 75
Complexity: 20
Confidence: 80
Support Request: 0
close stale Original umoci path-exists error is fixed. Broader clean slate request has been deferred to craft-providers. Inactive for ~4 months and out of scope for this repo.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 20
Confidence: 90
Support Request: 10
close stale Original umoci path error is fixed. Broader request for clean rebuilds in LXC instances is now handled by craft-providers. Issue is inactive and should be closed as moved.

Update history

No update history recorded yet.

Related work

  • Caused By: canonical/rockcraft#36 (confidence 80%)

    Per cjdcordeiro, the originally reported error was introduced by the addition of `base: bare` in PR #36 and fixed in commit d1a5f04cd7ad477e8d5e056228360b97afcea28b.

Related issues

No related issues found above the similarity threshold.