Updates can no longer be dequeued on Cache Groups #6896
Labels
low difficulty
the estimated level of effort to resolve this issue is low
low impact
affects only a small portion of a CDN, and cannot itself break one
regression bug
a bug in existing functionality introduced by a new version
Traffic Ops
related to Traffic Ops
This Bug Report affects these Traffic Control components:
Current behavior:
A
POST
request to/api/Version/cachegroups/ID/queue_update
will fail for any valid Version and ID with a request body that passes"action": "dequeue"
along with a valid identifier for any existing CDN, with the error code being 500 Internal Server Error.Example
Verified in API versions 2.0, 3.0, 3.1, and 4.0. The Type associated with the Cache Group does not appear to matter, nor does the number and/or Type(s) of cache servers it contains - or lack thereof.
Error from the TO logs:
Expected behavior:
This endpoint used to work, it should still work.
Steps to reproduce:
topost -fkpa API Version cachegroups/ID/queue_update '{"action": "dequeue", "cdnId": CDN ID}'
Workaround
Currently, individual servers may still be cleared of updates - note, however, that this must be done one-at-a-time, if using the Traffic Portal "Servers" table view it cannot be parallelized as TPv1 does not support bulk table row operations. As there is no limit to the number of servers that may be in a Cache Group and the API requires dequeuing a single server at a time, parallelizing this task via some scripting language could result in much greater network request load and/or a far longer operational time than if the
/cachegroups/{{ID}}/queue_update
endpoint could be used - although said impact has not been measured.The text was updated successfully, but these errors were encountered: