示例#1
0
 def __init__(self, *args, **kwargs):
     """Load configuration options and connect to the hypervisor."""
     self.conveyor_cmd = base.MigrationCmd()
     self.nova_api = compute.API()
     self.volume_api = volume.API()
     self.network_api = network.API()
     self.plan_api = plan_api.PlanAPI()
示例#2
0
 def __init__(self, context, collected_resources=None,
              collected_parameters=None, collected_dependencies=None):
     self.context = context
     self._collected_resources = collected_resources or {}
     self._collected_parameters = collected_parameters or {}
     self._collected_dependencies = collected_dependencies or {}
     self.nova_api = compute.API()
     self.cinder_api = volume.API()
     self.neutron_api = network.API()
示例#3
0
 def __init__(self,
              context,
              collected_resources=None,
              collected_parameters=None,
              collected_dependencies=None):
     super(NetworkResource, self).__init__(context)
     self.context = context
     self.neutron_api = network.API()
     self._collected_resources = collected_resources or {}
     self._collected_parameters = collected_parameters or {}
     self._collected_dependencies = collected_dependencies or {}
示例#4
0
 def __init__(self, *args, **kwargs):
     """."""
     self.nova_api = compute.API()
     self.cinder_api = volume.API()
     self.resource_api = resource_api.ResourceAPI()
     self.neutron_api = network.API()
     self.heat_api = heat.API()
     self.db_api = db_api
     super(PlanManager, self).__init__(service_name="conveyor-plan",
                                       *args,
                                       **kwargs)
示例#5
0
 def __init__(self):
     self.volume_api = volume.API()
     self.compute_api = compute.API()
     self.neutron_api = network.API()
     self.heat_api = heat.API()
     self.resource_api = resource_api.ResourceAPI()
示例#6
0
 def __init__(self, *args, **kwargs):
     """Load configuration options and connect to the hypervisor."""
     self.cinder_api = volume.API()
     self.nova_api = compute.API()
     self.neutron_api = network.API()
     self.heat_api = heat.API()