def __init__(self, manager, db, driver, image_volume_cache=None):
     super(CreateVolumeFromSpecTask, self).__init__(addons=[ACTION])
     self.manager = manager
     self.db = db
     self.driver = driver
     self.image_volume_cache = image_volume_cache
     self.message = message_api.API()
Ejemplo n.º 2
0
 def setUp(self):
     super(MessageApiTest, self).setUp()
     self.message_api = message_api.API()
     self.mock_object(self.message_api, 'db')
     self.ctxt = context.RequestContext('admin', 'fakeproject', True)
     self.ctxt.request_id = 'fakerequestid'
     self.ext_mgr = extensions.ExtensionManager()
     self.ext_mgr.extensions = {}
     self.controller = messages.MessagesController(self.ext_mgr)
Ejemplo n.º 3
0
 def __init__(self, scheduler_driver=None, service_name=None,
              *args, **kwargs):
     if not scheduler_driver:
         scheduler_driver = CONF.scheduler_driver
     self.driver = importutils.import_object(scheduler_driver)
     super(SchedulerManager, self).__init__(*args, **kwargs)
     self._startup_delay = True
     self.volume_api = volume_rpcapi.VolumeAPI()
     self.sch_api = scheduler_rpcapi.SchedulerAPI()
     self.message_api = mess_api.API()
     self.rpc_api_version = versionutils.convert_version_to_int(
         self.RPC_API_VERSION)
Ejemplo n.º 4
0
 def __init__(self, ext_mgr):
     self.message_api = message_api.API()
     self.ext_mgr = ext_mgr
     super(MessagesController, self).__init__()
Ejemplo n.º 5
0
 def __init__(self, driver_api, **kwargs):
     super(ScheduleCreateVolumeTask, self).__init__(addons=[ACTION],
                                                    **kwargs)
     self.driver_api = driver_api
     self.message_api = message_api.API()
Ejemplo n.º 6
0
 def __init__(self):
     self.message_api = message_api.API()
     super().__init__()
Ejemplo n.º 7
0
 def setUp(self):
     super(MessageApiTest, self).setUp()
     self.message_api = message_api.API()
     self.mock_object(self.message_api, 'db')
     self.ctxt = context.RequestContext('admin', 'fakeproject', True)
     self.ctxt.request_id = 'fakerequestid'
Ejemplo n.º 8
0
 def __init__(self):
     self.message_api = message_api.API()