Skip to content

Do not start nodes when deleting a project - #2833

Merged
grossmj merged 1 commit into
GNS3:masterfrom
Sanjays2402:fix/delete-project-does-not-start-nodes
Jul 26, 2026
Merged

Do not start nodes when deleting a project#2833
grossmj merged 1 commit into
GNS3:masterfrom
Sanjays2402:fix/delete-project-does-not-start-nodes

Conversation

@Sanjays2402

Copy link
Copy Markdown
Contributor

Fixes #2784

Project.delete() calls open() to rebuild the data structures needed for cleanup, but open() schedules start_all() when auto_start is enabled — so deleting an auto-start project actually launches every node process, allocating ports and consuming resources, only for the following close() to kill them.

open() now takes an auto_start argument (default True, so normal opens are unchanged) and delete() passes auto_start=False. Added test_delete_does_not_start_nodes, which fails on master (start_all is called) and passes with the fix.

Project.delete() calls open() to rebuild the internal data structures
needed for cleanup. open() schedules start_all() when the project has
auto_start enabled, so deleting an auto-start project actually launched
every node process, allocating ports and consuming resources, only for
close() to kill them moments later.

open() now takes an auto_start argument (default True, so normal opens
are unchanged) and delete() passes auto_start=False.

Fixes GNS3#2784
@grossmj
grossmj merged commit 6c2a980 into GNS3:master Jul 26, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Project deletion triggers auto-start of nodes when auto_start is enabled

2 participants