def __init__(self, virtapi, scheme="https"): self._node_name = CONF.vcloud.vcloud_node_name self._vcloud_client = VCloudClient(scheme=scheme) self.cinder_api = cinder_api() if not os.path.exists(CONF.vcloud.vcloud_conversion_dir): os.makedirs(CONF.vcloud.vcloud_conversion_dir) if not os.path.exists(CONF.vcloud.vcloud_volumes_dir): os.makedirs(CONF.vcloud.vcloud_volumes_dir) self.hyper_agent_api = hyper_agent_api.HyperAgentAPI() super(VCloudDriver, self).__init__(virtapi)
def __init__(self, virtapi): super(AbstractHybridNovaDriver, self).__init__(virtapi) self.instances = {} self.cinder_api = cinder_api() self.conversion_dir = cfg.CONF.hybrid_driver.conversion_dir if not os.path.exists(self.conversion_dir): os.makedirs(self.conversion_dir) self.volumes_dir = cfg.CONF.hybrid_driver.volumes_dir if not os.path.exists(self.volumes_dir): os.makedirs(self.volumes_dir) self.hyper_agent_api = hyper_agent_api.HyperAgentAPI()
def __init__(self, virtapi): if CONF.provide_cloud_type == 'aws': if (CONF.provider_opts.access_key_id is None or CONF.provider_opts.secret_key is None): raise Exception(_("Must specify access_key_id and " "secret_key to use aws ec2")) self.compute_adapter = adapter.Ec2Adapter(CONF.provider_opts.access_key_id, secret=CONF.provider_opts.secret_key, region=CONF.provider_opts.region, secure=False) self.storage_adapter = adapter.S3Adapter(CONF.provider_opts.access_key_id, secret=CONF.provider_opts.secret_key, region=CONF.provider_opts.region, secure=False) self.cinder_api = cinder_api() self.glance_api = glance_api()
def __init__(self, virtapi): # import pdb # pdb.set_trace() if CONF.provide_cloud_type == 'aws': if (CONF.provider_opts.access_key_id is None or CONF.provider_opts.secret_key is None): raise Exception(_("Must specify access_key_id and " "secret_key to use aws ec2")) self.compute_adapter = adapter.Ec2Adapter(CONF.provider_opts.access_key_id, secret=CONF.provider_opts.secret_key, region=CONF.provider_opts.region, secure=False) self.storage_adapter = adapter.S3Adapter(CONF.provider_opts.access_key_id, secret=CONF.provider_opts.secret_key, region=CONF.provider_opts.region, secure=False) self.cinder_api = cinder_api() self.glance_api = glance_api()