This repository has been archived by the owner on Nov 1, 2023. It is now read-only.
A node instance may not exist by the time we attempt to update scale in protection #1712
Labels
bug
Something isn't working
Information
Provide detailed reproduction steps (if any)
In the
update_scale_in_protection
function we:onefuzz/src/api-service/__app__/onefuzzlib/azure/vmss.py
Line 165 in 194e7d0
onefuzz/src/api-service/__app__/onefuzzlib/azure/vmss.py
Line 184 in 194e7d0
In between those 2 steps there are 2 scenarios that can cause issues:
Expected result
What is the expected result of the above steps?
The 2nd step (updating the protection policy) needs to handle the possibility that the node no longer exists.
If the action is to remove scale in protection, we should simply log that the node no longer exists since that was the desired behavior anyway.
If the action is to enable scale in protection, we should error.
Actual result
What is the actual result of the above steps?
The text was updated successfully, but these errors were encountered: