예제 #1
0
 def _create_service_ref(self, context):
     zone = CONF.storage_availability_zone
     service_ref = db.service_create(context,
                                     {'host': self.host,
                                      'binary': self.binary,
                                      'topic': self.topic,
                                      'report_count': 0,
                                      'availability_zone': zone})
     self.service_id = service_ref['id']
예제 #2
0
 def _create_service_ref(self, context):
     zone = CONF.storage_availability_zone
     service_ref = db.service_create(context,
                                     {'host': self.host,
                                      'binary': self.binary,
                                      'topic': self.topic,
                                      'report_count': 0,
                                      'availability_zone': zone})
     self.service_id = service_ref['id']
예제 #3
0
 def _create_service_ref(self, context):
     service_args = {
         'host': self.host,
         'binary': self.binary,
         'topic': self.topic,
         'report_count': 0,
         'availability_zone': self.availability_zone
     }
     service_ref = db.service_create(context, service_args)
     self.service_id = service_ref['id']
예제 #4
0
파일: service.py 프로젝트: openstack/manila
 def _create_service_ref(self, context):
     service_args = {
         'host': self.host,
         'binary': self.binary,
         'topic': self.topic,
         'report_count': 0,
         'availability_zone': self.availability_zone
     }
     service_ref = db.service_create(context, service_args)
     self.service_id = service_ref['id']