Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#6758] Platform: Reuse on-premise instance once the instance got delete. #6970

Merged
merged 12 commits into from
Feb 16, 2021
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ public SubTaskGroup createDestroyServerTasks(Collection<NodeDetails> nodes,
if (node.cloudInfo.private_ip == null) {
LOG.warn(String.format("Node %s doesn't have a private IP. Skipping node delete.",
node.nodeName));
// Free up the node so that the client can use the instance to create another universe.
mahendranbhat marked this conversation as resolved.
Show resolved Hide resolved
NodeInstance providerNode = NodeInstance.getByName(node.nodeName);
providerNode.clearNodeDetails();
continue;
}
AnsibleDestroyServer.Params params = new AnsibleDestroyServer.Params();
Expand Down