Ejemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     self.compute_api = cloud.API(skip_policy_check=True)
     self.handlers = {
         'vnc': self.compute_api.get_vnc_console,
         'spice': self.compute_api.get_spice_console,
         'rdp': self.compute_api.get_rdp_console,
         'serial': self.compute_api.get_serial_console,
         'mks': self.compute_api.get_mks_console
     }
     super(RemoteConsolesController, self).__init__(*args, **kwargs)
Ejemplo n.º 2
0
 def __init__(self, msg_runner):
     super(CellsScheduler, self).__init__()
     self.msg_runner = msg_runner
     self.state_manager = msg_runner.state_manager
     self.compute_api = cloud.API()
     self.compute_task_api = conductor.ComputeTaskAPI()
     self.filter_handler = filters.CellFilterHandler()
     filter_classes = self.filter_handler.get_matching_classes(
         CONF.cells.scheduler_filter_classes)
     self.filters = [cls() for cls in filter_classes]
     self.weight_handler = weights.CellWeightHandler()
     weigher_classes = self.weight_handler.get_matching_classes(
         CONF.cells.scheduler_weight_classes)
     self.weighers = [cls() for cls in weigher_classes]
Ejemplo n.º 3
0
 def __init__(self):
     self.compute_api = cloud.API()
     super(AssistedVolumeSnapshotsController, self).__init__()
Ejemplo n.º 4
0
 def __init__(self):
     self.compute_api = cloud.API(skip_policy_check=True)
     super(ServerMigrationsController, self).__init__()
Ejemplo n.º 5
0
 def __init__(self, skip_policy_check=False):
     self.compute_api = cloud.API(skip_policy_check=skip_policy_check)
Ejemplo n.º 6
0
 def __init__(self, *args, **kwargs):
     super(MultinicController, self).__init__(*args, **kwargs)
     self.compute_api = cloud.API()
Ejemplo n.º 7
0
 def __init__(self):
     self.compute_api = cloud.API()
     super(ServerExternalEventsController, self).__init__()
Ejemplo n.º 8
0
 def __init__(self, ext_mgr, *args, **kwargs):
     super(RescueController, self).__init__(*args, **kwargs)
     self.compute_api = cloud.API()
     self.ext_mgr = ext_mgr
Ejemplo n.º 9
0
 def __init__(self):
     self.compute_api = cloud.API()
Ejemplo n.º 10
0
 def __init__(self, *args, **kwargs):
     super(DeferredDeleteController, self).__init__(*args, **kwargs)
     self.compute_api = cloud.API(skip_policy_check=True)
Ejemplo n.º 11
0
 def __init__(self):
     self.compute_api = cloud.API()
     super(Controller, self).__init__()
Ejemplo n.º 12
0
 def __init__(self, ext_mgr=None):
     self.compute_api = cloud.API()
     self.volume_api = volume.API()
     self.ext_mgr = ext_mgr
     super(VolumeAttachmentController, self).__init__()
Ejemplo n.º 13
0
 def __init__(self, **kwargs):
     super(IPsController, self).__init__(**kwargs)
     self._compute_api = cloud.API(skip_policy_check=True)
Ejemplo n.º 14
0
 def __init__(self):
     self.compute_api = cloud.API()
     self.network_api = network.API()
     super(InterfaceAttachmentController, self).__init__()
Ejemplo n.º 15
0
 def __init__(self):
     self.compute_api = cloud.API(skip_policy_check=True)
Ejemplo n.º 16
0
 def __init__(self, *args, **kwargs):
     super(SecurityGroupsOutputController, self).__init__(*args, **kwargs)
     self.compute_api = cloud.API()
     self.security_group_api = (
         openstack_driver.get_openstack_security_group_driver())
Ejemplo n.º 17
0
 def __init__(self):
     self.security_group_api = (
         openstack_driver.get_openstack_security_group_driver())
     self.compute_api = cloud.API(
                                security_group_api=self.security_group_api)
Ejemplo n.º 18
0
 def __init__(self):
     self.compute_api = cloud.API(skip_policy_check=True)
     self.network_api = network.API(skip_policy_check=True)
     super(ServerVirtualInterfaceController, self).__init__()
Ejemplo n.º 19
0
 def __init__(self, *args, **kwargs):
     super(ExtendedServerAttributesController,
           self).__init__(*args, **kwargs)
     self.compute_api = cloud.API(skip_policy_check=True)
Ejemplo n.º 20
0
 def __init__(self, network_api=None):
     self.compute_api = cloud.API(skip_policy_check=True)
     self.last_call = {}
Ejemplo n.º 21
0
 def __init__(self):
     self.compute_api = cloud.API()
     self.network_api = network.API()
     super(ServerVirtualInterfaceController, self).__init__()
Ejemplo n.º 22
0
 def __init__(self, ext_mgr=None, *args, **kwargs):
     super(FloatingIPActionController, self).__init__(*args, **kwargs)
     self.compute_api = cloud.API()
     self.network_api = network.API()
     self.ext_mgr = ext_mgr
Ejemplo n.º 23
0
 def __init__(self):
     self.compute_api = cloud.API()
     self.network_api = network.API()
     super(FloatingIPController, self).__init__()
Ejemplo n.º 24
0
 def __init__(self):
     super(InstanceActionsController, self).__init__()
     self.compute_api = cloud.API()
     self.action_api = cloud.InstanceActionAPI()
Ejemplo n.º 25
0
 def __init__(self, *args, **kwargs):
     super(ServerUsageController, self).__init__(*args, **kwargs)
     self.compute_api = cloud.API()
Ejemplo n.º 26
0
 def __init__(self, *args, **kwargs):
     super(EvacuateController, self).__init__(*args, **kwargs)
     self.compute_api = cloud.API(skip_policy_check=True)
     self.host_api = cloud.HostAPI()
Ejemplo n.º 27
0
 def __init__(self, *args, **kwargs):
     self.compute_api = cloud.API()
     super(ConsolesController, self).__init__(*args, **kwargs)
Ejemplo n.º 28
0
 def __init__(self):
     self.compute_api = cloud.API()
     self.network_api = network.API()
     self.cloudpipe = pipelib.CloudPipe()
     self.setup()
Ejemplo n.º 29
0
 def __init__(self, *args, **kwargs):
     super(PauseServerController, self).__init__(*args, **kwargs)
     self.compute_api = cloud.API(skip_policy_check=True)
Ejemplo n.º 30
0
 def __init__(self, network_api=None):
     self.compute_api = cloud.API()
     self.last_call = {}