def is_container_agent_running(node):
 d = node.run_script('service_running', 'flocker-container-agent')
 def not_existing(failure):
  failure.trap(ProcessTerminated)
  return False
 d.addCallbacks((lambda result: True), not_existing)
 return d

def is_container_agent_running ( node ) : d = node . run_script ( 'service_running' , 'flocker-container-agent' ) def not_existing ( failure ) : failure . trap ( ProcessTerminated ) return False d . addCallbacks ( ( lambda result : True ) , not_existing ) return d
check if the container agent is running on the specified node .