Skip to content

fix 500 error on cluster delete - #952

Merged
boddumanohar merged 1 commit into
mainfrom
fix-500-on-cluster-delete
Apr 10, 2026
Merged

fix 500 error on cluster delete#952
boddumanohar merged 1 commit into
mainfrom
fix-500-on-cluster-delete

Conversation

@boddumanohar

@boddumanohar boddumanohar commented Apr 10, 2026

Copy link
Copy Markdown
Member

At the moment, we get 500 on cluster delete.

INFO:     10.42.0.15:37024 - "DELETE /api/v2/clusters/d5f00df2-01c8-4716-bcdc-32418307f2e2/ HTTP/1.1" 500 Internal Server Error
  File "/usr/local/lib/python3.9/site-packages/anyio/to_thread.py", line 63, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
  File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 2502, in run_sync_in_worker_thread
    return await future
  File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 986, in run
    result = context.run(func, *args)
  File "/usr/local/lib/python3.9/site-packages/simplyblock_web/api/v2/cluster.py", line 121, in delete
    cluster_ops.delete_cluster(cluster.get_id())
  File "/usr/local/lib/python3.9/site-packages/simplyblock_core/cluster_ops.py", line 1473, in delete_cluster
    raise ValueError("Can only remove Empty cluster, Storage nodes found")
ValueError: Can only remove Empty cluster, Storage nodes found

Fixing this by removing a 409 Error with the same error message.

INFO:     10.42.0.15:51782 - "DELETE /api/v2/clusters/d5f00df2-01c8-4716-bcdc-32418307f2e2/ HTTP/1.1" 409 Conflict

@boddumanohar
boddumanohar merged commit 2732f4c into main Apr 10, 2026
2 of 5 checks passed
@boddumanohar
boddumanohar deleted the fix-500-on-cluster-delete branch April 10, 2026 09:47
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