Repository navigation
fix(integrations): refuse deleting a storage Manila still uses - #725
Merged
Merged
Conversation
This was referenced Nov 12, 2026
Eandalf-Bigstack
approved these changes
Nov 12, 2026
Eandalf-Bigstack
left a comment
Collaborator
There was a problem hiding this comment.
LGTM, pending on PR bigstack-oss/cube-cos-ui#914
The delete runs after the 202, so a storage Manila still uses was only refused on the node, in its log. DELETE /integrations/storages/:name now runs hex_sdk cinder_is_storage_manila_free first and answers 409 with its reason: the shares and share servers Manila still has there, or that they could not be read. A forwarded request is not checked again. Bumps api/cube-cos-openapi for the 409. Refs bigstack-oss/cubecos#2329 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Seki Xu <seki.xu@bigstack.co>
SekiXu
force-pushed
the
fix/2329-manila-delete-guard
branch
from
November 13, 2026 05:54
76cdc64 to
7c962fa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind bug
Which issue(s) this PR fixes?
Refs bigstack-oss/cubecos#2329
What this PR does?
DELETE /integrations/storages/:storageNameanswers 202 and deletes afterwards, so a storage Manila still uses was only refused on the node, in its log, and the WebUI showed nothing. The handler now runshex_sdk cinder_is_storage_manila_free <name>(from bigstack-oss/cubecos#2335) before the 202 and answers 409 with its output: the shares and share servers Manila still has on the storage, or that they could not be read. A forwarded request is not checked again; its node still refuses while deleting.Test results (optional)
1). make sure the api docs have been updated
Yes: bigstack-oss/cube-cos-openapi#126.
2). make sure the api works properly
20261004-0551), this binary (x86 jail build) plus the cubecos helper hot-patched:DELETE …/integrations/storages/mbtest-nfs→ HTTP 409 in 6.9 s,{"code":409,"msg":"storage mbtest-nfs is still used by Manila, delete these first: shares a9ed8cfe-… (available); share servers 5996ba23-… (active)","status":"status conflict"}; a GET afterwards still returns the storage.go build,go vet ./...,go test ./...(25 packages) pass.expected: 409 actual: 202).Reviewer notes
Merge order: bigstack-oss/cubecos#2335 and bigstack-oss/cube-cos-openapi#126 → re-point the submodule to the merged openapi commit → this PR.
🤖 Generated with Claude Code