def get_zk_node_ips():
  """ Returns a list of zookeeper node IPs.

  Returns:
    A list containing the hosts that run zookeeper roles in the current
    AppScale deployment.
  """
  try:
    info = file_io.read(constants.ZK_LOCATIONS_JSON_FILE)
    zk_json = json.loads(info)
    return zk_json['locations']
  except __HOLE__, io_error:
    logging.exception(io_error)
    return []
  except ValueError, value_error:
    logging.exception(value_error)
    return []
  except TypeError, type_error:
    logging.exception(type_error)
    return []
  except KeyError, key_error:
    logging.exception(key_error)
    return []
dataset/ETHPy150Open AppScale/appscale/lib/appscale_info.py/get_zk_node_ips