Skip to content

docs: clarify storage-detaching applies to both machine and K8s charms#2554

Open
tonyandrewmeyer wants to merge 6 commits into
canonical:mainfrom
tonyandrewmeyer:rainy/2257-storage-detaching-k8s-clarification
Open

docs: clarify storage-detaching applies to both machine and K8s charms#2554
tonyandrewmeyer wants to merge 6 commits into
canonical:mainfrom
tonyandrewmeyer:rainy/2257-storage-detaching-k8s-clarification

Conversation

@tonyandrewmeyer

@tonyandrewmeyer tonyandrewmeyer commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

I double-checked the items in the issue against Juju 3.6.23. A minimal ops charm observed storage-attached, storage-detaching, stop, and remove and logged each event.

Claim Verified Evidence
Machine: juju detach-storage emits storage-detaching yes STORAGE-TEST: storage-detaching event for /var/lib/storage-test/data/3
Machine: juju remove-storage emits storage-detaching yes STORAGE-TEST: storage-detaching event for /var/lib/storage-test/data/4 (requires --force while attached)
Machine: emitted during unit teardown yes data/5 storage-detaching fired before stop/remove on juju remove-application --destroy-storage
K8s: juju detach-storage returns ERROR Juju command "detach-storage" not supported on container models (verbatim) yes Returned exactly that string
K8s: storage-detaching fires during unit teardown yes data/0 storage-detaching fired before stop/remove on juju remove-application --destroy-storage

Preview

Fixes #2257

Verified against Juju 3.6.23: `juju remove-storage` on attached storage
is rejected unless `--force` is passed (the user is prompted to run
`juju detach-storage` first). Tighten the storage-detaching docs to
reflect that the event fires from `juju detach-storage` or
`juju remove-storage --force`.
@tonyandrewmeyer tonyandrewmeyer marked this pull request as ready for review June 12, 2026 09:28
@tonyandrewmeyer

Copy link
Copy Markdown
Collaborator Author

3.10 failures are unrelated (as one would hope for a docs PR). Will be fixed by another PR and rebasing will fix here.

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.

Improve guidance about storage-detaching event

1 participant