def __init__(self): from comoonics.cluster import getClusterRepository, getClusterInfo self.clusterRepositories = [] self.clusterInfos = [] self.clusterRepositories.append(getClusterRepository(os.path.join(testpath, "cluster.conf"))) self.clusterInfos.append(getClusterInfo(self.clusterRepositories[0])) self.clusterRepositories.append(None) self.clusterInfos.append(None) self.clusterRepositories.append(getClusterRepository(maxnodeidnum=3)) self.clusterInfos.append(getClusterInfo(self.clusterRepositories[2]))
def init(self): import os.path ComSystem.setExecMode(ComSystem.SIMULATE) super(test_ClusterNodeNic, self).init() #create comclusterRepository Object self.clusterRepository = getClusterRepository(os.path.join(self._testpath, "cluster2.conf")) #create comclusterinfo object self.clusterInfo = getClusterInfo(self.clusterRepository) # setup the cashes for clustat for redhat cluster self.clusterInfo.helper.setSimOutput()
def __init__(self, query): from comoonics.cluster import getClusterRepository, getClusterInfo, clusterconf ClusterAssistantHelper.__init__(self, query) self.error=False # create Reader object try: clusterRepository = getClusterRepository(clusterconf) #create comclusterinfo object self.clusterInfo = getClusterInfo(clusterRepository) except Exception, e: ComLog.getLogger(__logStrLevel__).error("Error parsing cluster.conf %s" %e) ComLog.errorTraceLog() self.error=True
def init(self): import os.path ComSystem.setExecMode(ComSystem.SIMULATE) super(test_ClusterNode, self).init() #create comclusterRepository Object self.clusterRepository = getClusterRepository(os.path.join(self._testpath, "cluster2.conf")) #create comclusterinfo object self.clusterInfo = getClusterInfo(self.clusterRepository) # setup the cashes for clustat for redhat cluster self.clusterInfo.helper.setSimOutput() self.nics=list() for node in self.clusterInfo.getNodes(): node.helper.output=self.clusterInfo.helper.output for nic in node.getNics(): self.nics.append(nic)