示例#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)
示例#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]
示例#3
0
 def __init__(self):
     self.compute_api = cloud.API()
     super(AssistedVolumeSnapshotsController, self).__init__()
示例#4
0
 def __init__(self):
     self.compute_api = cloud.API(skip_policy_check=True)
     super(ServerMigrationsController, self).__init__()
示例#5
0
 def __init__(self, skip_policy_check=False):
     self.compute_api = cloud.API(skip_policy_check=skip_policy_check)
示例#6
0
 def __init__(self, *args, **kwargs):
     super(MultinicController, self).__init__(*args, **kwargs)
     self.compute_api = cloud.API()
 def __init__(self):
     self.compute_api = cloud.API()
     super(ServerExternalEventsController, self).__init__()
示例#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
示例#9
0
 def __init__(self):
     self.compute_api = cloud.API()
示例#10
0
 def __init__(self, *args, **kwargs):
     super(DeferredDeleteController, self).__init__(*args, **kwargs)
     self.compute_api = cloud.API(skip_policy_check=True)
示例#11
0
 def __init__(self):
     self.compute_api = cloud.API()
     super(Controller, self).__init__()
示例#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__()
示例#13
0
文件: ips.py 项目: bopopescu/jacket
 def __init__(self, **kwargs):
     super(IPsController, self).__init__(**kwargs)
     self._compute_api = cloud.API(skip_policy_check=True)
示例#14
0
 def __init__(self):
     self.compute_api = cloud.API()
     self.network_api = network.API()
     super(InterfaceAttachmentController, self).__init__()
示例#15
0
 def __init__(self):
     self.compute_api = cloud.API(skip_policy_check=True)
示例#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())
示例#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)
示例#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__()
 def __init__(self, *args, **kwargs):
     super(ExtendedServerAttributesController,
           self).__init__(*args, **kwargs)
     self.compute_api = cloud.API(skip_policy_check=True)
示例#20
0
文件: fping.py 项目: bopopescu/jacket
 def __init__(self, network_api=None):
     self.compute_api = cloud.API(skip_policy_check=True)
     self.last_call = {}
示例#21
0
 def __init__(self):
     self.compute_api = cloud.API()
     self.network_api = network.API()
     super(ServerVirtualInterfaceController, self).__init__()
示例#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
示例#23
0
 def __init__(self):
     self.compute_api = cloud.API()
     self.network_api = network.API()
     super(FloatingIPController, self).__init__()
示例#24
0
 def __init__(self):
     super(InstanceActionsController, self).__init__()
     self.compute_api = cloud.API()
     self.action_api = cloud.InstanceActionAPI()
示例#25
0
 def __init__(self, *args, **kwargs):
     super(ServerUsageController, self).__init__(*args, **kwargs)
     self.compute_api = cloud.API()
示例#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()
示例#27
0
 def __init__(self, *args, **kwargs):
     self.compute_api = cloud.API()
     super(ConsolesController, self).__init__(*args, **kwargs)
示例#28
0
 def __init__(self):
     self.compute_api = cloud.API()
     self.network_api = network.API()
     self.cloudpipe = pipelib.CloudPipe()
     self.setup()
示例#29
0
 def __init__(self, *args, **kwargs):
     super(PauseServerController, self).__init__(*args, **kwargs)
     self.compute_api = cloud.API(skip_policy_check=True)
示例#30
0
文件: fping.py 项目: bopopescu/jacket
 def __init__(self, network_api=None):
     self.compute_api = cloud.API()
     self.last_call = {}