cmd.setCluster(_clusterId.toString()); cmd.setVersion(OvmResourceBase.class.getPackage().getImplementationVersion()); cmd.setHypervisorType(HypervisorType.Ovm);
@Override public StartupCommand[] initialize() throws IllegalArgumentException { final Connection conn = getConnection(); if (!getHostInfo(conn)) { s_logger.warn("Unable to get host information for " + _host.getIp()); return null; } final StartupRoutingCommand cmd = new StartupRoutingCommand(); fillHostInfo(conn, cmd); cmd.setHypervisorType(HypervisorType.XenServer); cmd.setCluster(_cluster); cmd.setPoolSync(false); try { final Pool pool = Pool.getByUuid(conn, _host.getPool()); final Pool.Record poolr = pool.getRecord(conn); poolr.master.getRecord(conn); } catch (final Throwable e) { s_logger.warn("Check for master failed, failing the FULL Cluster sync command"); } List<StartupStorageCommand> startUpLocalStorageCommands = null; try { startUpLocalStorageCommands = initializeLocalSrs(conn); } catch (XenAPIException | XmlRpcException e) { s_logger.warn("Could not initialize local SRs on host: " + _host.getUuid(), e); } if (CollectionUtils.isEmpty(startUpLocalStorageCommands)) { return new StartupCommand[] {cmd}; } return createStartupCommandsArray(cmd, startUpLocalStorageCommands); }
cmd.setHypervisorVersion(host.getOvmVersion()); cmd.setVersion(host.getAgentVersion()); cmd.setHypervisorType(HypervisorType.Ovm3); cmd.setCaps(host.getCapabilities()); cmd.setPrivateIpAddress(c.getIp());
@Override public StartupCommand[] initialize() { StartupRoutingCommand cmd = new StartupRoutingCommand(); cmd.setCpus(1); cmd.setSpeed(1000L); cmd.setMemory(1000000L); cmd.setDom0MinMemory(256L); cmd.setCaps("hvm"); cmd.setGuid(_guid); cmd.setDataCenter(_zone); cmd.setPod(_pod); cmd.setHypervisorType(HypervisorType.None); cmd.setAgentTag("vmops-simulator"); cmd.setName(_url); cmd.setPrivateIpAddress(this.getHostPrivateIp()); cmd.setPrivateMacAddress(this.getHostMacAddress().toString()); cmd.setPrivateNetmask("255.255.0.0"); cmd.setIqn("iqn:" + _url); cmd.setStorageIpAddress(getHostStoragePrivateIp()); cmd.setStorageMacAddress(getHostStorageMacAddress().toString()); cmd.setStorageIpAddressDeux(getHostStoragePrivateIp2()); cmd.setStorageMacAddressDeux(getHostStorageMacAddress2().toString()); cmd.setPublicIpAddress(getHostStoragePrivateIp()); cmd.setPublicMacAddress(getHostStorageMacAddress().toString()); cmd.setPublicNetmask("255.255.0.0"); cmd.setVersion(DummyHostServerResource.class.getPackage().getImplementationVersion()); return new StartupCommand[] {cmd}; }