diff --git a/pkg/node/volumemgr.go b/pkg/node/volumemgr.go index d9e36e064..f03c5971d 100644 --- a/pkg/node/volumemgr.go +++ b/pkg/node/volumemgr.go @@ -1110,8 +1110,10 @@ func (m *VolumeManager) createEventsForDriveUpdates(updates *driveUpdates) { m.createEventForDriveStatusChange( updDrive.CurrentState, updDrive.PreviousState.Spec.Status, updDrive.CurrentState.Spec.Status) } else if updDrive.CurrentState.Spec.Status == apiV1.DriveStatusOffline { - if updDrive.CurrentState.Spec.Usage == apiV1.DriveUsageRemoved && - updDrive.PreviousState.Spec.Usage == apiV1.DriveUsageRemoving { + if updDrive.CurrentState.Spec.Usage != updDrive.PreviousState.Spec.Usage && + updDrive.CurrentState.Spec.Usage != apiV1.DriveUsageReleased && + updDrive.CurrentState.Spec.Usage != apiV1.DriveUsageInUse && + updDrive.CurrentState.Spec.Usage != apiV1.DriveUsageReleasing { m.createEventForMissingDriveRemoved(updDrive.CurrentState) } }