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
{{ message }}
This repository was archived by the owner on Nov 1, 2023. It is now read-only.
}catch(RequestFailedExceptionex)when(ex.Status==409&&ex.Message.StartsWith("The request failed due to conflict with a concurrent request")){
256
-
returnOneFuzzResultVoid.Error(ErrorCode.UNABLE_TO_UPDATE,$"protection policy update is already in progress: {instanceId} in vmss {scaleset.ScalesetId}");
256
+
returnOneFuzzResultVoid.Error(ErrorCode.SCALE_IN_PROTECTION_UPDATE_ALREADY_IN_PROGRESS,$"protection policy update is already in progress: {instanceId} in vmss {scaleset.ScalesetId}");
257
257
}catch(RequestFailedExceptionex)when(ex.Status==400&&ex.Message.Contains("The provided instanceId")&&ex.Message.Contains("not an active Virtual Machine Scale Set VM instanceId.")){
258
-
returnOneFuzzResultVoid.Error(ErrorCode.UNABLE_TO_UPDATE,$"The node with instanceId {instanceId} no longer exists in scaleset {scaleset.ScalesetId}");
258
+
returnOneFuzzResultVoid.Error(ErrorCode.SCALE_IN_PROTECTION_INSTANCE_NO_LONGER_EXISTS,$"The node with instanceId {instanceId} no longer exists in scaleset {scaleset.ScalesetId}");
259
259
}catch(RequestFailedExceptionex)when(ex.Status==400&&ex.Message.Contains("reached its limit")&&ex.Message.Contains("Upgrade the VMs to the latest model")){
260
-
returnOneFuzzResultVoid.Error(ErrorCode.UNABLE_TO_UPDATE,$"VMSS has reached model limit. Could not update scaling protection for scaleset {scaleset.ScalesetId}.");
260
+
returnOneFuzzResultVoid.Error(ErrorCode.SCALE_IN_PROTECTION_REACHED_MODEL_LIMIT,$"VMSS has reached model limit. Could not update scaling protection for scaleset {scaleset.ScalesetId}.");
261
261
}catch(Exceptionex){
262
262
_log.LogError(ex,"unable to set protection policy on: {InstanceId} in vmss {ScalesetId}",instanceId,scaleset.ScalesetId);
263
-
returnOneFuzzResultVoid.Error(ErrorCode.UNABLE_TO_UPDATE,$"unable to set protection policy on: {instanceId} in vmss {scaleset.ScalesetId}");
263
+
returnOneFuzzResultVoid.Error(ErrorCode.SCALE_IN_PROTECTION_UNEXPECTED_ERROR,$"unable to set protection policy on: {instanceId} in vmss {scaleset.ScalesetId}");
0 commit comments