Skip to content

Commit

Permalink
fix error log in createvolume
Browse files Browse the repository at this point in the history
Signed-off-by: wangshulin <[email protected]>
  • Loading branch information
wangshli committed Jul 12, 2023
1 parent b9eda4e commit 39385f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/runtime_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (r *RuntimeReconciler) ReconcileRuntime(engine base.Engine, ctx cruntime.Re

// 2.Setup the volume
err = engine.CreateVolume()
if err != nil {
if err != nil && utils.IgnoreAlreadyExists(err) != nil {
r.Recorder.Eventf(ctx.Runtime, corev1.EventTypeWarning, common.ErrorProcessRuntimeReason, "Failed to setup volume due to error %v", err)
log.Error(err, "Failed to steup the volume")
// return utils.RequeueIfError(errors.Wrap(err, "Failed to steup the ddc engine"))
Expand Down

0 comments on commit 39385f0

Please sign in to comment.