doDeployment(deploymentOptions);
ClusterInitService clusterInitService = new ClusterInitService();
clusterInitService.waitForClusterToStart(new String [] {"127.0.0.2"}, new int[] {7400});
InventoryManager inventoryManager = PluginContainer.getInstance().getInventoryManager();
InventoryReport inventoryReport = inventoryManager.executeServerScanImmediately();
Resource newStorageNode = null;
if (inventoryReport.getAddedRoots().isEmpty()) {
// could be empty if the storage node is already in inventory from
// a prior discovery scan.
Resource platform = inventoryManager.getPlatform();
newStorageNode = findCassandraNode(platform.getChildResources(), "127.0.0.2");
} else {
newStorageNode = findCassandraNode(inventoryReport.getAddedRoots(), "127.0.0.2");
}
assertNotNull(newStorageNode, "Failed to discover Storage Node instance at 127.0.0.2");
assertNodeIsUp("Expected " + newStorageNode + " to be UP after discovery");