Ejemplo n.º 1
0
 def deployment_status(self, deploymentId):
     debug("in deploy.py deployment_status")
     conn = util.deploy_conn()
     deploymentInfo = conn.get_deployment( deploymentId = deploymentId )['deploymentInfo']
     deploymentOverview=deploymentInfo['deploymentOverview']
     # status will be one of the following: 'Created'|'Queued'|'InProgress'|'Succeeded'|'Failed'|'Stopped'
     status=deploymentInfo['status']
     ret = {}
     ret['status'] = status
     ret['overview'] = deploymentOverview
     return(ret)
Ejemplo n.º 2
0
 def deployment_status(self, deploymentId):
     debug("in deploy.py deployment_status")
     conn = util.deploy_conn()
     deploymentInfo = conn.get_deployment( deploymentId = deploymentId )['deploymentInfo']
     deploymentOverview=deploymentInfo['deploymentOverview']
     # status will be one of the following: 'Created'|'Queued'|'InProgress'|'Succeeded'|'Failed'|'Stopped'
     status=deploymentInfo['status']
     ret = {}
     ret['status'] = status
     ret['overview'] = deploymentOverview
     return(ret)
Ejemplo n.º 3
0
 def __init__(self, cluster_name=None, role_name=None):
     if cluster_name:
         self.cluster_name = cluster_name
         if role_name:
             self.role_name = role_name
             self.cfg = config.get_role_config(cluster_name, role_name)
         else:
             self.cfg = config.get_cluster_config(cluster_name)
     else:
         self.cfg = _cfg.get_root()
     self.conn = util.deploy_conn()
Ejemplo n.º 4
0
 def __init__(self, cluster_name=None, role_name=None):
     if cluster_name:
         self.cluster_name = cluster_name
         if role_name:
             self.role_name = role_name
             self.cfg = config.get_role_config(cluster_name, role_name)
         else:
             self.cfg = config.get_cluster_config(cluster_name)
     else:
         self.cfg = _cfg.get_root()
     self.conn = util.deploy_conn()