Skip to content

Commit

Permalink
Add sleep to fix "Missing sudo password" on GCP
Browse files Browse the repository at this point in the history
Add sleep to fix ansible ssh "Missing sudo password" issue on GCP VM
TEAM-9480 - [timeboxed] "Missing sudo password" sporadically prevent any ansible connection to GCP VM
  • Loading branch information
lilyeyes committed Jul 4, 2024
1 parent 2da0c0a commit 5138399
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/qesapdeployment.pm
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,12 @@ sub qesap_execute_conditional_retry {
die "'qesap.py (after retry) $args{cmd}' return: $ret[0]";
}

# Sleep $N for fixing ansible "Missing sudo password" issue on GCP
if (get_required_var('PUBLIC_CLOUD_PROVIDER') eq 'GCE') {
sleep 60;
record_info('Workaround: "sleep 60" for fixing ansible "Missing sudo password" issue on GCP');
}

return @ret;
}

Expand Down

0 comments on commit 5138399

Please sign in to comment.