mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
e2e tests: log zone when creating volume
Given the test failures we are encountering with zones, add the zone to the log message when creating a zonal PV.
This commit is contained in:
parent
0153febd9f
commit
5a3671e57b
@ -664,10 +664,10 @@ func createPDWithRetry(zone string) (string, error) {
|
||||
for start := time.Now(); time.Since(start) < pdRetryTimeout; time.Sleep(pdRetryPollTime) {
|
||||
newDiskName, err = createPD(zone)
|
||||
if err != nil {
|
||||
framework.Logf("Couldn't create a new PD, sleeping 5 seconds: %v", err)
|
||||
framework.Logf("Couldn't create a new PD in zone %q, sleeping 5 seconds: %v", zone, err)
|
||||
continue
|
||||
}
|
||||
framework.Logf("Successfully created a new PD: %q.", newDiskName)
|
||||
framework.Logf("Successfully created a new PD in zone %q: %q.", zone, newDiskName)
|
||||
return newDiskName, nil
|
||||
}
|
||||
return "", err
|
||||
|
Loading…
Reference in New Issue
Block a user