private boolean CheckUrl(URI url) throws DiscoveryException { if ("http".equals(url.getScheme()) || "https".equals(url.getScheme())) { String msg = "Discovering " + url + ": " + _params; LOGGER.debug(msg); } else { String msg = "urlString is not http(s) so we're not taking care of the discovery for this: " + url; LOGGER.info(msg); throw new DiscoveryException(msg); } return true; }
String msg = "must specify cluster Id when add host"; LOGGER.info(msg); throw new DiscoveryException(msg); String msg = "must specify pod Id when add host"; LOGGER.info(msg); throw new DiscoveryException(msg); String msg = "invalid cluster id or cluster is not for Ovm3 hypervisors"; LOGGER.info(msg); throw new DiscoveryException(msg); } else { LOGGER.debug("cluster: " + cluster); String msg = "Agent user name must be specified"; LOGGER.info(msg); throw new DiscoveryException(msg); String msg = "Agent password must be specified"; LOGGER.info(msg); throw new DiscoveryException(msg); String msg = "Agent port must be specified"; LOGGER.info(msg); throw new DiscoveryException(msg); String msg = "The host " + hostIp + " has been added before"; LOGGER.info(msg); throw new DiscoveryException(msg);
String errMsg = "Agent not running, or no route to agent on at " + uri; s_logger.debug(errMsg); throw new DiscoveryException(errMsg);
sshConnection = SSHCmdHelper.acquireAuthorizedConnection(hostIp, username, password); if (sshConnection == null) { throw new DiscoveryException(String.format("Cannot connect to ovm host(IP=%1$s, username=%2$s, password=%3$s, discover failed", hostIp, username, password)); throw new DiscoveryException("Can not find /etc/ovs-agent/agent.ini " + hostIp);
String msg = "Unable to get a connection to " + url; s_logger.debug(msg); throw new DiscoveryException(msg); + clu.getGuid() + " through XC/XS before adding it through CS UI"; s_logger.warn(msg); throw new DiscoveryException(msg);
final String msg = "Do not support HypervisorType " + hypervisorType + " for " + url; s_logger.warn(msg); throw new DiscoveryException(msg); throw new DiscoveryException("Unable to add the host");
throw new DiscoveryException("Unable to add the external cluster"); } finally { if (!success) {