def __init__(self):
    self.dbHost="localhost"
    self.username="******"
    self.passwd=""
    self.database="resource_db"
    self.resourceMgr=resourceManager()
    self.__con = None
    self.logger=logging.getLogger("poolManager" )
Exemplo n.º 2
0
 def __init__(self):
     self.workDir = '/automation/virtenv'
     self.marvinPath = '/automation/cloudstack/tools/marvin/dist/'
     self.testcasePath = '/automation/cloudstack/test'
     self.pythonPath = ''
     self.libPath = "/root/cloud-autodeploy2/newcode" 
     self.jenkinsWorkspace = '/automation/jenkins/workspace'
     self.logger = logging.getLogger('testEnvMgr')
     self.resourceMgr = resourceManager()
     self.throttle_job_count = 13
 def __init__(self):
     self.workDir="/root/cloud-autodeploy2/newcode"
     self.IPMI_PASS="******"
     self.DOMAIN = 'automation.hyd.com'
     self.infraxen_ip=None
     self.infraxen_passwd=None
     self.ipmiinfo = {}
     self.cobblerinfo = {}
     self.mgmtHostInfo = {}
     self.resourceMgr=resourceManager()
     self.hostImager=hostImager()
     self.logger=logging.getLogger("hostManager")
from hostImagerProfiles import resourceManager
env={'build_number':'101','repo_url':'dummy','branch':'4.4-froward','commit_id':'8923471423047800','hypervisor':'dummyh'}
resourceMgr=resourceManager()
#resourceMgr.addBuildInfo(env)
print resourceMgr.getLastBuildInfo(env['repo_url'], env['branch'], env['hypervisor'])