You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//use delayed devices as available devices in the test, as they are matching all the conditions but device age logic only considers them 30 seconds later
r.Log.Error(err, "failed to get block devices for volumegroup, will retry", "name", volumeGroup.Name)
149
-
// Set a failure status only if there is an error and there is no delayed devices. If there are delayed devices, there is a chance that this will pass in the next reconciliation.
150
-
iflen(delayedDevices) ==0 {
151
-
ifstatuserr:=r.setVolumeGroupFailedStatus(ctx, volumeGroup.Name, fmt.Sprintf("failed to get block devices for volumegroup %s: %v", volumeGroup.Name, err.Error())); statuserr!=nil {
152
-
r.Log.Error(statuserr, "failed to update status", "name", volumeGroup.Name)
153
-
}
154
-
}
155
-
156
146
// Failed to get devices for this volume group. Reconcile again.
157
147
returnreconcileAgain, err
158
148
}
159
149
160
-
r.Log.Info("listing available and delayed devices", "availableDevices", availableDevices, "delayedDevices", delayedDevices)
150
+
r.Log.Info("listing available and delayed devices", "availableDevices", availableDevices)
161
151
162
152
// If there are no available devices, that could mean either
163
153
// - There is no available devices to attach to the volume group
164
154
// - All the available devices are already attached
165
155
iflen(availableDevices) ==0 {
166
-
iflen(delayedDevices) >0 {
167
-
r.Log.Info("there are delayed devices, will retry them in the next reconciliation", "VGName", volumeGroup.Name, "delayedDevices", delayedDevices)
0 commit comments