Fixes 'Zone is empty' errors in PD upgrade tests; skips pd tests with inline volume in multizone clusters
This commit is contained in:
@@ -708,6 +708,14 @@ func createPD(zone string) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
|
||||
if zone == "" && TestContext.CloudConfig.MultiZone {
|
||||
zones, err := gceCloud.GetAllZonesFromCloudProvider()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
zone, _ = zones.PopAny()
|
||||
}
|
||||
|
||||
tags := map[string]string{}
|
||||
err = gceCloud.CreateDisk(pdName, gcecloud.DiskTypeSSD, zone, 10 /* sizeGb */, tags)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user