Exemple #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()
Exemple #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()
Exemple #3
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)
Exemple #4
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()
Exemple #5
0
 def __init__(self):
     self.cinder_api = volume.API()
     self.compute_api = compute.API()
 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()