Reset BackupStatus and RestoreStatus
When engine monitoring is stopped, we need to reset backupStatus and
restoreStatus from engine status
@@ -1143,6 +1143,8 @@ func (s *DataStore) UpdateVolumeAndOwner(v *longhorn.Volume) (*longhorn.Volume,
func (s *DataStore) ResetEngineMonitoringStatus(e *longhorn.Engine) (*longhorn.Engine, error) {
e.Status.Endpoint = ""
e.Status.ReplicaModeMap = nil
+ e.Status.BackupStatus = nil
+ e.Status.RestoreStatus = nil
ret, err := s.UpdateEngine(e)
if err != nil {
return nil, errors.Wrapf(err, "failed to reset engine status for %v", e.Name)
