Fix pv volume-scheduling-error failure on RWX volumes
Longhorn 4654
@@ -1179,6 +1179,7 @@ func (vc *VolumeController) ReconcileVolumeState(v *longhorn.Volume, es map[stri
scheduled = true
}
}
+ }
if !scheduled {
if len(aggregatedReplicaScheduledError) == 0 {
@@ -1192,7 +1193,6 @@ func (vc *VolumeController) ReconcileVolumeState(v *longhorn.Volume, es map[stri
scheduledCondition.Reason, failureMessage)
}
}
- }
if err := vc.updatePVAnnotation(v, types.PVAnnotationLonghornVolumeSchedulingError, failureMessage); err != nil {
log.Warnf("Cannot update PV annotation for volume %v", v.Name)
