Exemple #1
0
def _create_service_ref(this_service, context):
    service = objects.Service(context)
    service.host = this_service.host
    service.binary = this_service.binary
    service.topic = this_service.topic
    service.report_count = 0
    service.create()
    return service
Exemple #2
0
def _create_service_ref(this_service, context):
    service = objects.Service(context)
    service.host = this_service.host
    service.binary = this_service.binary
    service.topic = this_service.topic
    service.report_count = 0
    service.create()
    return service
 def _create_service_ref(self, context):
     service = objects.Service(context)
     service.host = self.host
     service.binary = self.binary
     service.topic = self.topic
     service.report_count = 0
     service.create()
     return service
 def _create_service_ref(self, context):
     service = objects.Service(context)
     service.host = self.host
     service.binary = self.binary
     service.topic = self.topic
     service.report_count = 0
     service.create()
     return service
Exemple #5
0
def _create_service_ref(this_service, context):
    service = objects.Service(context)
    service.host = this_service.host
    service.binary = this_service.binary
    service.topic = this_service.topic
    service.report_count = 0
    service.availability_zone = CONF.default_availability_zone
    if hasattr(this_service.manager, 'RPC_API_VERSION') and \
            hasattr(this_service.manager, 'storage_manager'):
        service.rpc_current_version = this_service.manager.storage_manager.RPC_API_VERSION
    service.object_current_version = storage_objects_base.OBJ_VERSIONS.get_current()
    service.create()
    return service