@@ -254,6 +254,8 @@ func (ns *node) NodeUnstageVolume(
254254 }
255255 defer removeVolumeFromTransitionList (volumeID )
256256
257+ logrus .Infof ("Volume with ID: %v after uninitialising is in '%v' state" , volumeID , utils .TransitionVolList [volumeID ])
258+
257259 if vol , err = utils .GetCStorVolumeAttachment (volumeID + "-" + utils .NodeIDENV ); err != nil {
258260 if k8serror .IsNotFound (err ) {
259261 logrus .Infof ("cva for %s has already been deleted" , volumeID )
@@ -281,6 +283,7 @@ func (ns *node) NodeUnstageVolume(
281283 // so all the cases are handled
282284 utils .TransitionVolListLock .Lock ()
283285 utils .TransitionVolList [volumeID ] = apis .CStorVolumeAttachmentStatusUnmountUnderProgress
286+ logrus .Infof ("Volume with ID: %v after starting unmount is in '%v' state" , volumeID , utils .TransitionVolList [volumeID ])
284287 utils .TransitionVolListLock .Unlock ()
285288
286289 if err = iscsiutils .UnmountAndDetachDisk (vol , stagingTargetPath ); err != nil {
@@ -289,6 +292,7 @@ func (ns *node) NodeUnstageVolume(
289292
290293 utils .TransitionVolListLock .Lock ()
291294 utils .TransitionVolList [volumeID ] = apis .CStorVolumeAttachmentStatusUnmounted
295+ logrus .Infof ("Volume with ID: %v after successful unmount is in '%v' state" , volumeID , utils .TransitionVolList [volumeID ])
292296 utils .TransitionVolListLock .Unlock ()
293297
294298 vol .Finalizers = nil
0 commit comments