parameters: (config, args)
docstring: return unready nodes, used for contiguous integration(CI)
docstring_summary: return unready nodes, used for contiguous integration(CI)
docstring_tokens: return unready nodes used for contiguous integration ( CI )
function: def verify_all_nodes_ready(config, args):
      """
      return unready nodes, used for contiguous integration(CI)
      """
      nodes_info_raw = run_kubectl(config, args, ["get nodes"], True)
      ready_machines = set([entry.split("Ready")[0].strip()
                            for entry in nodes_info_raw.split('\n')[1:]])
      expected_nodes = set(config["machines"].keys())
      nodes_expected_but_not_ready = expected_nodes - ready_machines
      if len(list(nodes_expected_but_not_ready)) > 0:
          print("following nodes not ready:\n{}".format(
              ','.join(list(nodes_expected_but_not_ready))))
          exit(1)
function_tokens: def verify_all_nodes_ready ( config , args ) : nodes_info_raw = run_kubectl ( config , args , [ "get nodes" ] , True ) ready_machines = set ( [ entry . split ( "Ready" ) [ 0 ] . strip ( ) for entry in nodes_info_raw . split ( '\n' ) [ 1 : ] ] ) expected_nodes = set ( config [ "machines" ] . keys ( ) ) nodes_expected_but_not_ready = expected_nodes - ready_machines if len ( list ( nodes_expected_but_not_ready ) ) > 0 : print ( "following nodes not ready:\n{}" . format ( ',' . join ( list ( nodes_expected_but_not_ready ) ) ) ) exit ( 1 )