`lpcraft run --clean` broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lpci |
Fix Released
|
Low
|
Jürgen Gmach |
Bug Description
Running
```
lpcraft run --clean -v
```
on current `lpcraft` repository (5b743d6afab286
```
...
2022-08-12 22:01:36.589 :: Successfully built lpcraft-
2022-08-12 22:01:36.689 Executing in container: lxc --project lpcraft exec local:lpcraft-
2022-08-12 22:01:40.216 Executing on host: lxc --project lpcraft config device show local:lpcraft-
2022-08-12 22:01:40.353 Executing on host: lxc --project lpcraft stop local:lpcraft-
2022-08-12 22:01:41.650 Executing on host: lxc --project lpcraft delete local:lpcraft-
2022-08-12 22:01:41.839 Executing on host: lxc --project lpcraft delete local:lpcraft-
2022-08-12 22:01:41.934 Failed to delete instance 'lpcraft-
* Command that failed: 'lxc --project lpcraft delete local:lpcraft-
* Command exit code: 1
* Command standard error output: b'Error: Failed checking instance exists "local:
2022-08-12 22:01:41.935 Traceback (most recent call last):
2022-08-12 22:01:41.935 File "/snap/
2022-08-12 22:01:41.936 self._run_lxc(
2022-08-12 22:01:41.936 File "/snap/
2022-08-12 22:01:41.936 return subprocess.
2022-08-12 22:01:41.936 File "/snap/
2022-08-12 22:01:41.936 raise CalledProcessEr
2022-08-12 22:01:41.936 subprocess.
2022-08-12 22:01:41.936
2022-08-12 22:01:41.936 The above exception was the direct cause of the following exception:
2022-08-12 22:01:41.936 Traceback (most recent call last):
2022-08-12 22:01:41.936 File "/snap/
2022-08-12 22:01:41.936 self.lxc.delete(
2022-08-12 22:01:41.936 File "/snap/
2022-08-12 22:01:41.936 raise LXDError(
2022-08-12 22:01:41.936 craft_providers
2022-08-12 22:01:41.936 * Command that failed: 'lxc --project lpcraft delete local:lpcraft-
2022-08-12 22:01:41.936 * Command exit code: 1
2022-08-12 22:01:41.936 * Command standard error output: b'Error: Failed checking instance exists "local:
2022-08-12 22:01:41.936 Full execution log: '/home/
```
Related branches
- Guruprasad: Approve
-
Diff: 248 lines (+101/-105)2 files modifiedlpcraft/commands/run.py (+54/-57)
lpcraft/commands/tests/test_run.py (+47/-48)
Changed in lpcraft: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in lpcraft: | |
assignee: | nobody → Jürgen Gmach (jugmac00) |
status: | Triaged → Fix Committed |
Changed in lpcraft: | |
status: | Fix Committed → Fix Released |
On a first glance it looks like there are two attempts to delete the container - the first works, the seconds fails as the container is gone already.