def coordinator_setup():
 url = cfg.CONF.coordination.url
 lock_timeout = cfg.CONF.coordination.lock_timeout
 proc_info = system_info.get_process_info()
 member_id = ('%s_%d' % (proc_info['hostname'], proc_info['pid']))
 if url:
  coordinator = coordination.get_coordinator(url, member_id, lock_timeout=lock_timeout)
 else:
  coordinator = NoOpDriver()
 coordinator.start()
 return coordinator

def coordinator_setup ( ) : url = cfg . CONF . coordination . url lock_timeout = cfg . CONF . coordination . lock_timeout proc_info = system_info . get_process_info ( ) member_id = ( '%s_%d' % ( proc_info [ 'hostname' ] , proc_info [ 'pid' ] ) ) if url : coordinator = coordination . get_coordinator ( url , member_id , lock_timeout = lock_timeout ) else : coordinator = NoOpDriver ( ) coordinator . start ( ) return coordinator
sets up the client for the coordination service .