You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "Hank Beatty (JIRA)" <ji...@apache.org> on 2017/08/16 15:33:00 UTC

[jira] [Updated] (TC-306) API does not handle anymap revalidation requests properly

     [ https://issues.apache.org/jira/browse/TC-306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hank Beatty updated TC-306:
---------------------------
    Fix Version/s: 2.2.0

> API does not handle anymap revalidation requests properly
> ---------------------------------------------------------
>
>                 Key: TC-306
>                 URL: https://issues.apache.org/jira/browse/TC-306
>             Project: Traffic Control
>          Issue Type: Bug
>          Components: Traffic Ops, Traffic Ops API
>            Reporter: Derek Gelinas
>            Priority: Minor
>              Labels: invalidation
>             Fix For: 2.2.0
>
>
> (pulled from the github issue tracker of old)
> I issued an API call to invalidate some content for an ANY_MAP delivery service:
> [coolguy@randomhost ccdn] curl -o $HOME/foobar.com.stuff_purge.out -b /tmp/cookie -c /tmp/cookie --insecure -H 'Accept: application/json' -X POST --data '{ "dsId":"441", "regex":"/\d+/foobar.com/stuff1/", "startTime":"2016-01-29 18:06:40", "ttl":168 }' https://qa-host.kabletown.net/api/1.2/user/current/jobs
> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 214 116 116 116 0 98 10 8 0:00:11 0:00:11 --:--:-- 5
> [coolguy@randomhost ccdn] cat $HOME/foobar.com.stuff_purge.out
> {"alerts":[{"level":"success","text":"Successfully created purge job for: /\d+/foobar.com/stuff1/(TTL:168h)"}]}[Fri Jan 29][18:07:23]
> [coolguy@randomhost ccdn]
> I then went into the UI and issued a separate invalidation request but changed the URI slightly (stuff1 became stuff2).
> If you run a report, you can see the difference:
> [root@midhost coolguy]# /opt/ort/traffic_ops_ort.pl report error https://qa-host.kabletown.net admin:xxxxxxxx
> Fri Jan 29 18:17:41 UTC 2016
> Version of this script: 0.55c
> ERROR Traffic Ops is signaling that an update is waiting to be applied.
> ERROR Lines for /opt/trafficserver/etc/trafficserver/regex_revalidate.config from Traffic Ops do not match file on disk.
> ERROR Config file regex_revalidate.config line only in TrOps: /\d+/foobar.com/stuff1/ 1454263660
> ERROR Config file regex_revalidate.config line only in TrOps: http://slow-([a-z0-9]+)-([0-9]+).sys.kabletown.net/\d+/foobar.com/stuff2 1454264281
> [root@midhost coolguy]#
> We're missing the hostname regex on the API call.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)