You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2022/06/10 16:57:36 UTC

[GitHub] [trafficcontrol] ocket8888 opened a new issue, #6896: Updates can no longer be dequeued on Cache Groups

ocket8888 opened a new issue, #6896:
URL: https://github.com/apache/trafficcontrol/issues/6896

   ## This Bug Report affects these Traffic Control components:
   - Traffic Ops
   
   ## Current behavior:
   A `POST` request to <code>/api/<var>Version</var>/cachegroups/<var>ID</var>/queue_update</code> will fail for any valid <var>Version</var> and <var>ID</var> 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.
   
   <details><summary>Example</summary>
   
   ```http
   POST /api/3.0/cachegroups/1/queue_update HTTP/1.1
   User-Agent: python-requests/2.25.1
   Accept-Encoding: gzip, deflate
   Accept: */*
   Connection: keep-alive
   Cookie: mojolicious=...
   Content-Length: 33
   Content-Type: application/json
   
   {"action": "dequeue", "cdnId": 2}
   
   HTTP/1.1 500 Internal Server Error
   Access-Control-Allow-Credentials: true
   Access-Control-Allow-Headers: ...
   Access-Control-Allow-Methods: ...
   Access-Control-Allow-Origin: *
   Content-Encoding: gzip
   Content-Type: application/json
   Permissions-Policy: interest-cohort=()
   Set-Cookie: mojolicious=...;
   Vary: Accept-Encoding
   Whole-Content-Sha512: ...
   X-Server-Name: traffic_ops_golang/
   Date: Fri, 10 Jun 2022 16:44:21 GMT
   Content-Length: 83
   
   {
   	"alerts": [
   		{
   			"text": "Internal Server Error",
   			"level": "error"
   		}
   	]
   }
   ```
   
   </details>
   
   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:
   ```
   ERROR: api.go:263: 2022-06-10T16:35:08.463504252Z: 172.23.0.1:40992 queueing updates: querying queue updates: pq: column "server_id" does not exist
   ```
   
   ## Expected behavior:
   This endpoint used to work, it should still work.
   
   ## Steps to reproduce:
   1. for any given, valid <var>CDN ID</var>, <var>ID</var>, and <var>API Version</var>:
   	<code>topost -fkpa <var>API Version</var> cachegroups/<var>ID</var>/queue_update '{"action": "dequeue", "cdnId": <var>CDN ID</var>}'</code>
   
   ## Workaround
   Currently, individual servers may still be cleared of updates - note, however, that this is **not possible through Traffic Portal as it provides no such functionality, and users MUST use a direct API request using some HTTP client to the `/servers/{{ID}}/queue_update` endpoint**. Also, as there is no limit to the number of servers that may be in a cachegroup and the API requires dequeuing a single server at a time, this 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] rawlinp closed issue #6896: Updates can no longer be dequeued on Cache Groups

Posted by GitBox <gi...@apache.org>.
rawlinp closed issue #6896: Updates can no longer be dequeued on Cache Groups
URL: https://github.com/apache/trafficcontrol/issues/6896


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org