← Back to issue list

Handle SIGINT

View original Github issue

Metadata

Project
craft-providers
Number
#449
Type
issue
State
open
Author
mr-cal
Labels
Type: Enhancement
Created
Updated
Closed
—

Current evaluation

Maintainer-labeled enhancement remains open: Ctrl-C during LXD base setup can leave a non-ephemeral base running; current code stops many setup failures but does not guarantee removal.

Suggested action: keep open

Reason: The maintainer-authored issue is labeled Type: Enhancement and still describes a valid orphan-resource path. Commit 78367c2 (#996) catches BaseException during base setup, partially covering SIGINT, but only calls stop() on a base launched with ephemeral=False; prepare_instance also runs outside that guard, so complete stop-and-remove behavior is not established.

Evaluated by: mr-cal-bot

Impact: 43 Quick Win: 18 Complexity: 46 Confidence: 91 Actionability: 76

Issue body

### What needs to get done Interrupting the base instance setup should stop and remove the base instance. ### Why it needs to get done There is no handling for SIGINT, which can leave the base instance running.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 43
Quick Win: 18
Complexity: 46
Confidence: 91
Actionability: 76
keep open Maintainer-labeled enhancement remains open: Ctrl-C during LXD base setup can leave a non-ephemeral base running; current code stops many setup failures but does not guarantee removal.
stealth/space-bunny-alpha
Impact: 42
Quick Win: 20
Complexity: 41
Confidence: 91
Actionability: 79
keep open Base-instance setup lacks SIGINT cleanup, so an interrupt can leave the base VM running; existing exception cleanup stops an instance but does not ensure deletion.
stealth/space-bunny-alpha
Impact: 54
Quick Win: 23
Complexity: 48
Confidence: 94
Actionability: 83
keep open SIGINT during LXD base setup should stop and remove the base instance; the enhancement remains open, with exception cleanup stopping but not deleting it.
stealth/space-bunny-alpha
Impact: 45
Quick Win: 19
Complexity: 45
Confidence: 82
Actionability: 75
keep open Enhancement remains open: interrupting base setup should stop and remove the base instance, but SIGINT is not handled and can leave it running.
qwen3.6-35b-a3b-mtp-q6
Impact: 55
Quick Win: 30
Staleness: 75
Complexity: 45
Confidence: 65
Support Request: 15
needs triage Enhancement request to add SIGINT handling to stop and remove base instances on interrupt. No SIGINT handling currently exists in the codebase. Issue has no maintainer response or labels after 1031 days.
qwen/qwen3.6-35b-a3b
Staleness: 75
Complexity: 35
Confidence: 60
Support Request: 5
needs triage Enhancement to handle SIGINT during base instance setup, preventing orphaned instances. Open for nearly three years with no maintainer comments, assignee, or prioritization.
qwen3.6-35b-a3b-mtp-q6
Staleness: 80
Complexity: 30
Confidence: 75
Support Request: 10
close stale Enhancement to handle SIGINT during base instance setup for proper cleanup. Currently unaddressed with no maintainer comments or community discussion in over two years.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/craft-providers#996 (confidence 95%)

    Commit 78367c2 stops the base when setup raises, partially covering KeyboardInterrupt but not deleting the non-ephemeral instance.

Related issues

No related issues found above the similarity threshold.