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
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)
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()
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)
def _setupCloudConnection(self): credentials = AuthnFactory.getCredentials(self.options) self.options.cloud = CloudConnectorFactory.getCloud(credentials) self.options.cloud.setEndpoint(self.options.endpoint)