Merge pull request #88810 from oxddr/logdump-better-logging

log-dump.sh: better logging in case of error from listing GCS
This commit is contained in:
Kubernetes Prow Robot 2020-03-17 19:27:08 -07:00 committed by GitHub
commit c53909498c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -455,7 +455,9 @@ function dump_nodes() {
# Sets: # Sets:
# NON_LOGEXPORTED_NODES # NON_LOGEXPORTED_NODES
function find_non_logexported_nodes() { function find_non_logexported_nodes() {
succeeded_nodes=$(gsutil ls ${gcs_artifacts_dir}/logexported-nodes-registry) || return 1 local file="${gcs_artifacts_dir}/logexported-nodes-registry"
echo "Listing marker files ($file) for successful nodes..."
succeeded_nodes=$(gsutil ls "${file}") || return 1
echo "Successfully listed marker files for successful nodes" echo "Successfully listed marker files for successful nodes"
NON_LOGEXPORTED_NODES=() NON_LOGEXPORTED_NODES=()
for node in "${NODE_NAMES[@]}"; do for node in "${NODE_NAMES[@]}"; do