← Back to issue list

lxd: suppress traceback when lxc launch / init fails

View original Github issue

Metadata

Project
snapcraft
Number
#1771
Type
pull request
State
merged
Author
mwhudson
Labels
Created
Updated
Closed

Current evaluation

Merged to suppress tracebacks when lxc launch or init fails, relying on lxc's native error output. Approved by one reviewer, modifying three files (+35/-15).

Suggested action:

No scores available.

Issue body

lxc itself prints a useful enough error message when this happens.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged to suppress tracebacks when lxc launch or init fails, relying on lxc's native error output. Approved by one reviewer, modifying three files (+35/-15).
qwen3.6-35b-a3b-mtp-q6 Merged to suppress tracebacks on lxc launch or init failures, as lxc already displays sufficient error messages. This reduces redundant output while preserving necessary diagnostics.
qwen3.6-35b-a3b-mtp-q6 Merged a change to suppress tracebacks when lxc launch or init fails, since lxc already provides sufficient error output.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1647 lxd: better surfacing of errors snapcraft merged Merged. Resolves duplicate error printing in LXD by having callers return silent errors with proper exit codes, allowing callees to handle message display. Approved and merged after CI validation.
76%
#3112 spread: remove dead code for lxd setup and add debug prints snapcraft merged Merged removal of redundant elif dead code in LXD setup logic and addition of debug prints for LXD snap install failures. Approved by one reviewer, passed CI checks, and integrated.
75%
#1842 lxd: Change "Terminating" message to debug level snapcraft merged Merged changes that downgrade the LXD Terminating log message to debug level. Approved by three reviewers and passed CI, reducing unnecessary console output.
74%
#1516 lxd: LXD not installed when using remote snapcraft merged Merged fix for a bug where lxc installation was not correctly verified when using a LXD remote. Also corrected incomplete test scenario usage. Approved by two reviewers, modified two files.
73%
#2095 lxd: proper error classes for container errors snapcraft merged Merged after approval. Refactored LXD container errors into dedicated classes, relocated them to the LXD module, and fixed architecture retrieval error handling. Added corresponding unit tests. Resolves Launchpad bugs #1734233 and #1734235.
71%
#4239 spread: improve resilience of lxd-type-base test snapcraft merged Merged via squash to improve resilience of the lxd-type-base test, fixing frequent lxc stop timeouts on Google runners. Approved by reviewers with passing CI checks.
71%
#1916 lxd: initialize remote lazily snapcraft merged Merged PR lazily initializes the LXD remote, resolving bug LP: #1746009. Approved after passing CI. A reviewer encountered an unrelated traceback during testing, which was noted for separate tracking but did not block the merge.
71%