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 }}
Repository navigation
Add instance to affinity group popup should list only stopped instances #2794
When attempting to add an instance that isn't in the stopped state to an affinity group, user gets an error:
error; status code: 400 Bad Request
{
"error_code": "InvalidRequest",
"message": "Instance cannot be added to anti-affinity group with reservation",
"request_id": "dbcaf573-733e-49ba-8031-47108c238c97"
}
error
On the console, although the instance picker mentions the state restriction, user is still allowed to select and click on the "Add to Group" button but the end result is a no-op. It can be a bit confusing. Ideally, we filter out those ineligible instances in the first place. If it's hard to do for some reason, returning a message or disabling the add button is still better than no UI response.
Ugh, I failed to look closely enough at the no-op point. We are not handling errors on add with a toast message, so it is indeed a noop. Working on that now.
Activity
david-crespo commentedon Apr 9, 2025
Good news. See the gif here #2790. I just deployed this to dogfood.
david-crespo commentedon Apr 9, 2025
Ugh, I failed to look closely enough at the
no-oppoint. We are not handling errors on add with a toast message, so it is indeed a noop. Working on that now.