示例#1
0
 def _create_service_ref(self, context):
     zone = FLAGS.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 = FLAGS.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 service_create(self, context, values):
     LOG.debug("DEBUG test service_create func")
     db.service_create(context, values)
示例#4
0
 def service_create(self, context, values):
     LOG.debug("DEBUG test service_create func")
     db.service_create(context, values)