Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for ErrDefault500 when creating/deleting pool member (#12664)
If LBaaSV2 member creation/deletion is attempted while LB resource is busy (for example it's in PENDING_UPDATE state), Neutron will return 500 error. Currently This being caught by type assertion to ErrUnexpectedResponseCode, however error 500 has a dedicated type ErrDefault500, which makes the current type assertion to miss it and eventually the error slips out through the check. This patch changes the type assertion to explicitly check for ErrDefault500. Also similar check has been added when member is deleted.
- Loading branch information