From 6ab7d3552e8aa0e0b55d5d5c463d6f1a8572e574 Mon Sep 17 00:00:00 2001 From: vadasambar Date: Tue, 28 Nov 2023 19:51:14 +0530 Subject: [PATCH] refactor: add log if image hasn't been pulled or mount is still in progress --- pkg/mountexecutor/mountexecutor.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/mountexecutor/mountexecutor.go b/pkg/mountexecutor/mountexecutor.go index cde03d50..1f650337 100644 --- a/pkg/mountexecutor/mountexecutor.go +++ b/pkg/mountexecutor/mountexecutor.go @@ -59,6 +59,9 @@ func NewMountExecutor(o *MountExecutorOptions) *MountExecutor { func (m *MountExecutor) StartMounting(o *MountOptions) error { if pullstatus.Get(o.NamedRef) != pullstatus.Pulled || mountstatus.Get(o.VolumeId) == mountstatus.StillMounting { + klog.Infof("image '%s' hasn't been pulled yet (status: %s) or volume is still mounting (status: %s)", + o.NamedRef.Name(), + pullstatus.Get(o.NamedRef), mountstatus.Get(o.VolumeId)) return nil }