Exemplo n.º 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']
Exemplo n.º 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']
Exemplo n.º 3
0
 def service_create(self, context, values):
     LOG.debug("DEBUG test service_create func")
     db.service_create(context, values)
Exemplo n.º 4
0
 def service_create(self, context, values):
     LOG.debug("DEBUG test service_create func")
     db.service_create(context, values)