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