octavia/releasenotes/notes/fix-error-with-duplicate-members-in-batch-update-610ffbbf949927d0.yaml
Gregory Thiemonge d7b0907025 Add check for duplicate members in batch update
If a user requests a batch update of the members and includes the same
member twice in the body of the request, taskflow triggers an exception
(because of a duplicate Atom) and the load balancer is stuck in
PENDING_UPDATE. Now the API denies such calls and returns a
ValidationException if a member is updated more than once in the same
call.

Story 2010399
Task 46777

Change-Id: Ide2d5e637e5feb2dad43f952d5be1a195da1ae37
2022-11-23 02:12:27 -05:00

11 lines
453 B
YAML

---
fixes:
- |
Added a validation step in the batch member API request that checks if a
member is included multiple times in the list of updated members, this
additional check prevents the load balancer from being stuck in
PENDING_UPDATE. Duplicate members in the batch member flow triggered an
exception in Taskflow.
The API now returns 400 (ValidationException) if a member is already
present in the body of the request.