From 70a6cbaf3818420b31f22062cd5b07f9367a75f2 Mon Sep 17 00:00:00 2001 From: Max Shaposhnyk Date: Sat, 11 Jan 2025 22:52:33 +0200 Subject: [PATCH] Do not fail resizing attemps on conflict error Signed-off-by: Max Shaposhnyk --- pkg/ibm/ibmp.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/ibm/ibmp.go b/pkg/ibm/ibmp.go index 505a082e..93f5cf97 100644 --- a/pkg/ibm/ibmp.go +++ b/pkg/ibm/ibmp.go @@ -418,7 +418,9 @@ func (r IBMPowerDynamicConfig) resizeInstanceVolume(ctx context.Context, service err = r.updateVolume(localCtx, service, instance.VolumeIDs[0]) if err != nil { log.Error(err, "failed to resize power server volume") - return + if err.Error() != "conflict" { // conflicts may happen if volume is not ready yet + return + } } } }()