Skip to content

Commit 130893b

Browse files
author
Vijayendra Bhamidipati
committed
CS-15256: Unable to associate cluster with Nexus VSM upon a retry if addCluster command fails the first time
Description: Putting in code to clean up stale VSM records in case addCluster fails to communicate with the vCenter server.
1 parent 40f698f commit 130893b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/com/cloud/resource/ResourceManagerImpl.java

+1
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ public List<? extends Cluster> discoverCluster(AddClusterCmd cmd) throws Illegal
580580
if (!success) {
581581
_clusterDetailsDao.deleteDetails(clusterId);
582582
_clusterDao.remove(clusterId);
583+
_clusterVSMDao.removeByClusterId(clusterId);
583584
}
584585
}
585586
}

0 commit comments

Comments
 (0)