예제 #1
0
파일: Runner.py 프로젝트: remyd1/client
    def _setCloudContext(self):
        credentials = AuthnFactory.getCredentials(self)
        self.cloud = CloudConnectorFactory.getCloud(credentials)

        if not self.pdiskEndpoint:
            self.pdiskEndpoint = self.endpoint

        self.endpoint = self.cloud.setEndpoint(self.endpoint)
        self.pdisk = None
예제 #2
0
    def _setCloud(self):
        credentials = AuthnFactory.getCredentials(self)
        self.cloud = CloudConnectorFactory.getCloud(credentials)

        if self.endpoint:
            self.cloud.setEndpoint(self.endpoint)
        elif 'frontendIp' in self.__dict__ and 'proxyPort' in self.__dict__:
            self.cloud.setEndpointFromParts(self.frontendIp, self.proxyPort)
        else:
            self.cloud.setEndpoint(self.endpoint)
예제 #3
0
    def __init__(self, configHolder):
        self.configHolder = configHolder
        self.config = configHolder.config
        self.deRegister = False
        configHolder.assign(self)
        self.username = '******'
        
        credentials = AuthnFactory.getCredentials(self)
        self.cloud = CloudConnectorFactory.getCloud(credentials)
        self.cloud.setEndpointFromParts(self.frontendIp,
                                        self.proxyPort)        

        self._assignDrivers()
예제 #4
0
 def _retrieveVmNode(self):
     credentials = AuthnFactory.getCredentials(self.options)
     self.options.cloud = CloudConnectorFactory.getCloud(credentials)
     self.options.cloud.setEndpoint(self.options.endpoint)
     self.node = self.options.cloud.getVmNode(self.options.instance)
예제 #5
0
 def _setupCloudConnection(self):
     credentials = AuthnFactory.getCredentials(self.options)
     self.options.cloud = CloudConnectorFactory.getCloud(credentials)
     self.options.cloud.setEndpoint(self.options.endpoint)