parameters: ()
return_statement: return val
docstring: check if all osd in are up
docstring_summary: check if all osd in are up
docstring_tokens: check if all osd in are up
function: def isallosd_up():
      '''
          check if all osd in are up
      '''
      val=0
      res=getvalue('cluster','osdmap-info')
      _in=res['num_in_osds']
      _up=res['num_up_osds']
      if _in != _up:
          val = 2
      return val
function_tokens: def isallosd_up ( ) : val = 0 res = getvalue ( 'cluster' , 'osdmap-info' ) _in = res [ 'num_in_osds' ] _up = res [ 'num_up_osds' ] if _in != _up : val = 2 return val