def get_zone_names(compute_api, project):
  """Obtains a list of zone names for a given project.

  Args:
    compute_api: The gcloud api instance.
    project: The project name.

  Returns:
    A list of zone names that are running
  """
  result = compute_api.zones().list(project=project).execute()
  filtered_list = [
      i for i in result["items"]
      if (i["status"] == "UP") and (i["kind"] == "compute#zone")
  ]
  return [i["name"] for i in filtered_list]