Skip to content

Commit 93c91ee

Browse files
committed
fix(ibmcloud): default pi-sys-type to auto-discovery and retry on timeout
1 parent 43b2865 commit 93c91ee

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

cmd/mapt/cmd/params/params.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ const (
162162
PIProcTypeDesc string = "PowerVS processor type (shared, dedicated, capped)"
163163
PIProcTypeDefault string = "shared"
164164
PISysType string = "pi-sys-type"
165-
PISysTypeDesc string = "PowerVS system type (s922, s1022, e880, e980)"
166-
PISysTypeDefault string = "s1022"
165+
PISysTypeDesc string = "preferred PowerVS system type (e.g. e1080, s1022, s1122); if unset, auto-discovered from zone"
166+
PISysTypeDefault string = ""
167167
PIStorageType string = "pi-storage-type"
168168
PIStorageTypeDesc string = "PowerVS storage tier for instance and data volume (tier1, tier3)"
169169
PIStorageTypeDefault string = "tier1"

pkg/provider/ibmcloud/action/ibm-power/ibm-power.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ func isCapacityError(err error) bool {
201201
"resource capacity",
202202
"no hosts available",
203203
"maximum capacity",
204+
"context deadline exceeded",
204205
} {
205206
if strings.Contains(errStr, pattern) {
206207
return true

0 commit comments

Comments
 (0)