Skip to content

Conversation

@jdanieck
Copy link
Contributor

@jdanieck jdanieck commented Jun 6, 2025

Description

Fixes in cluster force delete. Previous code (wrongly) assumed that nodes are always allocated and healthy.

How Has This Been Tested?

Unit tested & manually on the real Orchestrator.

Checklist:

  • I agree to use the APACHE-2.0 license for my code changes
  • I have not introduced any 3rd party dependency changes
  • I have performed a self-review of my code

@jdanieck jdanieck self-assigned this Jun 6, 2025
@jdanieck jdanieck changed the title Fix en UUID in utils Cluster force delete fixes Jun 6, 2025
@jdanieck jdanieck marked this pull request as ready for review June 6, 2025 12:58
return api.DeleteV2ClustersNameNodesNodeId500JSONResponse{N500InternalServerErrorJSONResponse: api.N500InternalServerErrorJSONResponse{Message: &errMsg}}, nil
}
// check for single node
if len(*cluster.Nodes) == 1 {
Copy link
Contributor

Choose a reason for hiding this comment

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

if I understood, there is always a nodeID when there is a cluster in it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was the original assumption that there is always node assosciated with the cluster; but there are cases that provisioning failed and there is no node (cluster is in broken state) and we couldnt delete cluster beacuse of this check; anyways, this is only temporary as we will have new delete flow for 3.1; see #91

@jdanieck jdanieck merged commit 0d83182 into main Jun 6, 2025
21 checks passed
@jdanieck jdanieck deleted the node-deletion branch June 6, 2025 13:30
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.

4 participants