Skip to content

use "force" when deleting containers#96

Merged
msherman64 merged 2 commits intomasterfrom
bugs/container_delete_error
Feb 19, 2026
Merged

use "force" when deleting containers#96
msherman64 merged 2 commits intomasterfrom
bugs/container_delete_error

Conversation

@msherman64
Copy link
Contributor

By default, zun will raise a 409 when deleting a container in either a running, or transitional state.

Calling with "stop=True" fixes it for running containers, but still not for transitional ones, such as containers stuck "creating" or "error".

Update python-chi to call with force=true to work in call cases. Note: this depends on the following zun policy being set, otherwise the force argument is admin-only.

container:delete_force: rule:admin_or_owner

@msherman64 msherman64 force-pushed the feat/deprecate_platform_version branch from d6b5877 to c41e7cc Compare February 18, 2026 18:36
@msherman64 msherman64 force-pushed the bugs/container_delete_error branch from e880ef4 to 2957cff Compare February 18, 2026 18:37
Copy link
Contributor

@Mark-Powers Mark-Powers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, some nits about the doc

@msherman64 msherman64 force-pushed the feat/deprecate_platform_version branch 2 times, most recently from ace8737 to 77a67ad Compare February 18, 2026 20:28
@msherman64 msherman64 changed the base branch from feat/deprecate_platform_version to master February 19, 2026 17:00
By default, zun will raise a 409 when deleting a container in either a
running, or transitional state.

Calling with "stop=True" fixes it for running containers, but still not
for transitional ones, such as containers stuck "creating" or "error".

Update python-chi to call with force=true to work in call cases.
Note: this depends on the following zun policy being set, otherwise
the force argument is admin-only.

`container:delete_force: rule:admin_or_owner`
@msherman64 msherman64 force-pushed the bugs/container_delete_error branch from 2957cff to 36c6b10 Compare February 19, 2026 17:01
@msherman64 msherman64 merged commit e053a5b into master Feb 19, 2026
3 checks passed
@msherman64 msherman64 deleted the bugs/container_delete_error branch February 19, 2026 17:08
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.

2 participants

Comments