Skip to content

Commit

Permalink
e2e: retry when a pod does not have a host assigned (yet)
Browse files Browse the repository at this point in the history
Errors like "pod nfs-820 does not have a host assigned" seem to get
reported when a Pod is not completely started yet, or was restarted
while trying to access it.

Reported: ceph#4656 (comment)
Signed-off-by: Niels de Vos <ndevos@ibm.com>
  • Loading branch information
nixpanic committed Jun 6, 2024
1 parent 346e92a commit 0f5ac47
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions e2e/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ func isRetryableAPIError(err error) bool {
return true
}

// "pod nfs-820 does not have a host assigned" seems to get reported
// when a Pod is not completely started yet, or was restarted while
// trying to access it
if strings.Contains(err.Error(), "does not have a host assigned") {
return true
}

return false
}

Expand Down

0 comments on commit 0f5ac47

Please sign in to comment.