Ejemplo n.º 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']
Ejemplo n.º 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']
Ejemplo n.º 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']
Ejemplo n.º 4
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']