[GitHub] incubator-trafficcontrol issue #645: Change Traffic Ops `/update` to `priv >...

2017-06-06 Thread mitchell852
Github user mitchell852 commented on the issue:

https://github.com/apache/incubator-trafficcontrol/pull/645
  
do you want to create a role for this? maybe call it 'ort' with a priv 
level of 11? this role would be added to the seeds.sql file. i'm guessing 
everyone could benefit from this new role.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-trafficcontrol issue #587: Adds external file download functionali...

2017-06-06 Thread dg4prez
Github user dg4prez commented on the issue:

https://github.com/apache/incubator-trafficcontrol/pull/587
  
Updated to remove downloading through the traffic ops server and caching, 
caches download directly from source URL.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-trafficcontrol issue #642: Add Traffic Ops username to access log

2017-06-06 Thread mitchell852
Github user mitchell852 commented on the issue:

https://github.com/apache/incubator-trafficcontrol/pull/642
  
this is what the log line looks like now:

127.0.0.1 - - [05/Jun/2017:13:54:34 -0600] "GET /api/1.2/logs/newcount 
HTTP/1.1" 200 51 25823 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36"

so, yea, @dew it looks like the %u is there...it's just blank...


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Created] (TC-368) /api/1.2/deliveryservices/:id/routing.json hangs when Traffic Router is unreachable

2017-06-06 Thread Steve Malenfant (JIRA)
Steve Malenfant created TC-368:
--

 Summary: /api/1.2/deliveryservices/:id/routing.json hangs when 
Traffic Router is unreachable
 Key: TC-368
 URL: https://issues.apache.org/jira/browse/TC-368
 Project: Traffic Control
  Issue Type: Bug
  Components: Traffic Ops API
Affects Versions: 1.8.0
Reporter: Steve Malenfant


I was testing this API "/api/1.2/deliveryservices/:id/routing.json" and found 
that it would hang and the perl worker had to be killled. This caused 500 
Errors back from TO API.

The root cause is Traffic Router not responding to API Port. 

We should not poll Traffic Router that are status=OFFLINE and there should be 
some sort of timeouts in place to make sure it doesn't take more than x seconds 
to return information from API

There is some comments in the code that seems to indication prior issues.

`# TODO: what happens when the request to CCR times out?`



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Created] (TC-369) ORT recreates certain files on each run.

2017-06-06 Thread Joseph Pappano (JIRA)
Joseph Pappano created TC-369:
-

 Summary: ORT recreates certain files on each run.
 Key: TC-369
 URL: https://issues.apache.org/jira/browse/TC-369
 Project: Traffic Control
  Issue Type: Bug
  Components: Traffic Ops ORT
Affects Versions: 2.1.0
Reporter: Joseph Pappano
Priority: Minor


each time ORT runs there will be subtle differences in parent.config and other 
files and they are needlessly recreated.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Assigned] (TC-369) ORT recreates certain files on each run.

2017-06-06 Thread Derek Gelinas (JIRA)

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

Derek Gelinas reassigned TC-369:


Assignee: Derek Gelinas

> ORT recreates certain files on each run.
> 
>
> Key: TC-369
> URL: https://issues.apache.org/jira/browse/TC-369
> Project: Traffic Control
>  Issue Type: Bug
>  Components: Traffic Ops ORT
>Affects Versions: 2.1.0
>Reporter: Joseph Pappano
>Assignee: Derek Gelinas
>Priority: Minor
>
> each time ORT runs there will be subtle differences in parent.config and 
> other files and they are needlessly recreated.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[GitHub] incubator-trafficcontrol pull request #646: [TC-364] - adds the ability to a...

2017-06-06 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-trafficcontrol/pull/646


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (TC-364) TO API - create ability to assign/remove delivery services to/from a user

2017-06-06 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/TC-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16039370#comment-16039370
 ] 

ASF GitHub Bot commented on TC-364:
---

Github user asfgit closed the pull request at:

https://github.com/apache/incubator-trafficcontrol/pull/646


> TO API - create ability to assign/remove delivery services to/from a user
> -
>
> Key: TC-364
> URL: https://issues.apache.org/jira/browse/TC-364
> Project: Traffic Control
>  Issue Type: New Feature
>  Components: Traffic Ops API
>Reporter: Jeremy Mitchell
>Priority: Minor
>
> Create api endpoints to:
> - assign 1 or more ds's to a user
> - remove a ds from a user
> - retrieve ds's not currently assigned to user
> these functions should be limited to the ops role or higher.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


Build failed in Jenkins: incubator-trafficcontrol-rat #52

2017-06-06 Thread Apache Jenkins Server
See 


--
Started by upstream project "incubator-trafficcontrol-master-build" build 
number 53
originally caused by:
 Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on ubuntu-4 (ubuntu trusty) in workspace 

[incubator-trafficcontrol-rat] $ /bin/bash -xe /tmp/hudson4131537518666226550.sh
+ rm -rf 

 

 '
[operations-center-context] Requesting copy of artifacts matching '**/*.tar.gz' 
from 'Last successful build (either stable or unstable)' of 
incubator-trafficcontrol-master-build
[operations-center-context] Copied 1 artifacts matching '**/*.tar.gz' from 
'Last successful build (either stable or unstable)' of 
incubator-trafficcontrol-master-build:
[operations-center-context]   trafficcontrol-incubating-2.1.0.tar.gz
[incubator-trafficcontrol-rat] $ /bin/bash -xe /tmp/hudson3677041290852804239.sh
+ set -exu
++ ls trafficcontrol-incubating-2.1.0.tar.gz
+ tarball=trafficcontrol-incubating-2.1.0.tar.gz
+ tar xzf trafficcontrol-incubating-2.1.0.tar.gz
++ pwd
++ basename trafficcontrol-incubating-2.1.0.tar.gz .tar.gz
+ 
tcdir=
+ cd 

++ date +%Y
+ grep 'Copyright 2017 The Apache Software Foundation' NOTICE
Copyright 2017 The Apache Software Foundation
+ set +x
Searching for class files:
PASSED: No class files found.
Searching for jar files:
PASSED: No jar files found.
Searching for tar files:
PASSED: No tar files found.
Searching for tgz files:
PASSED: No tgz files found.
Searching for zip files:
PASSED: No zip files found.
+ ratver=apache-rat-0.13-20170427.032418-37.jar
++ mktemp -d
+ ratdir=/tmp/tmp.sFV8hdwrPH
+ ratjar=/tmp/tmp.sFV8hdwrPH/apache-rat-0.13.SNAPSHOT.jar
+ curl -L -o /tmp/tmp.sFV8hdwrPH/apache-rat-0.13.SNAPSHOT.jar 
https://repository.apache.org/content/repositories/snapshots/org/apache/rat/apache-rat/0.13-SNAPSHOT/apache-rat-0.13-20170427.032418-37.jar
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  Speed
  0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 
0100 1587k  100 1587k0 0  1657k  0 --:--:-- --:--:-- --:--:-- 1658k
+ curl -L -o /tmp/tmp.sFV8hdwrPH/apache-rat-0.13.SNAPSHOT.jar.sha1 
https://repository.apache.org/content/repositories/snapshots/org/apache/rat/apache-rat/0.13-SNAPSHOT/apache-rat-0.13-20170427.032418-37.jar.sha1
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  Speed
  0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 
010040  100400 0 98  0 --:--:-- --:--:-- --:--:--98
++ sha1sum /tmp/tmp.sFV8hdwrPH/apache-rat-0.13.SNAPSHOT.jar
++ awk '{print $1}'
++ cat /tmp/tmp.sFV8hdwrPH/apache-rat-0.13.SNAPSHOT.jar.sha1
+ [[ ac5cfd859902d5c858baed8dbcf91c014ce9ae23 == 
ac5cfd859902d5c858baed8dbcf91c014ce9ae23 ]]
++ pwd
++ pwd
+ java -jar /tmp/tmp.sFV8hdwrPH/apache-rat-0.13.SNAPSHOT.jar -E 

 -d 

+ rm -rf /tmp/tmp.sFV8hdwrPH
++ perl -lne 'print if /\(\d+\) Unknown Licenses/' ratreport.txt
+ unknown=
+ [[ '' != 0 ]]
+ echo ' Unknown Licenses'
 Unknown Licenses
+ perl -lne 'print if /Files with unapproved licenses:/ .. /^\*\*\*/' 
ratreport.txt
+ sed s:::
Files with unapproved licenses:

  trafficcontrol-incubating-2.1.0/BUILD_NUMBER
  trafficcontrol-incubating-2.1.0/traffic_ops/experimental/auth/server.key
  
trafficcontrol-incubating-2.1.0/traffic_ops/experimental/ui/app/src/styles/loading.scss
  
trafficcontrol-incubating-2.1.0/traffic_ops/experimental/ui/app/src/styles/theme.scss
  trafficcontrol-incubating-2.1.0/traffic_ops/experimental/webfront/server.key
  
trafficcontrol-incubating-2.1.0/traffic_ops/experimental/webfront/simpleserver/server.key
  trafficcontrol-incubating-2.1.0/traffic_portal/app/src/styles/loading.scss
  
trafficcontrol-incubating-2.1.0/traffic_stats/vendor/github.com/influxdata/influxdb/client/v2/client.go
  
trafficcontrol-incubating-2.1.0/traffic_stats/vendor/github.com/influxdata/influxdb/client/v2/udp.go
  
trafficcontrol-incubating-

[GitHub] incubator-trafficcontrol issue #645: Change Traffic Ops `/update` to `priv >...

2017-06-06 Thread rob05c
Github user rob05c commented on the issue:

https://github.com/apache/incubator-trafficcontrol/pull/645
  
@mitchell852 Done


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-trafficcontrol pull request #647: Add steering targets

2017-06-06 Thread dg4prez
GitHub user dg4prez opened a pull request:

https://github.com/apache/incubator-trafficcontrol/pull/647

Add steering targets

Adds the capability to add or delete as many steering targets as the user 
would like.  Also allows setting order or weight values.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/dg4prez/incubator-trafficcontrol 
add_steering_targets

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-trafficcontrol/pull/647.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #647


commit 878b7742c6830b208d8d5dd9732c3383aa02531f
Author: Derek Gelinas 
Date:   2017-04-13T14:15:53Z

allow for n number of targets

commit 756bdfa4c8fa61313d922cee40e74de9399b7486
Author: Derek Gelinas 
Date:   2017-05-30T17:02:42Z

allows for a variable number of delivery services

commit 06ce75ca8a45733b2fed42dc1ef10a4861dcc17f
Author: Derek Gelinas 
Date:   2017-05-31T19:47:10Z

more changes

commit 3e85003b8cbd94d775d38fdede3638bf67f382ca
Author: Derek Gelinas 
Date:   2017-05-31T19:51:21Z

update schema

commit 8eb870f1399b930686886e033e5870bfd7f91b86
Author: Derek Gelinas 
Date:   2017-06-01T18:24:58Z

UI working

commit 38b124cb38876e87521bf463f1c38ba8dcc8fe0b
Author: Derek Gelinas 
Date:   2017-06-01T18:33:03Z

add target types to seeds

commit dbb164ffa3c8c424490ff3e0ae7c68cb175ccece
Author: Derek Gelinas 
Date:   2017-06-06T14:57:14Z

adds migration

commit f64f40a0cd7eec08a07523406d34d3e45f5a1110
Author: Derek Gelinas 
Date:   2017-06-06T17:41:15Z

API uses weight or order

commit 299e36544d61eba8d8544dba1e126166a862429f
Author: Derek Gelinas 
Date:   2017-06-06T18:00:40Z

update docs and fix logic to prevent more than one value




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-trafficcontrol pull request #648: changed pathing for traffic_port...

2017-06-06 Thread dewrich
GitHub user dewrich opened a pull request:

https://github.com/apache/incubator-trafficcontrol/pull/648

changed pathing for traffic_portal alignment



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/dewrich/incubator-trafficcontrol tp_alignment

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-trafficcontrol/pull/648.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #648


commit 6698eeba0ee74cc182cb307da8213dfffeb8d27f
Author: Dewayne Richardson 
Date:   2017-06-06T21:25:36Z

changed pathing for traffic_portal alignment




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-trafficcontrol pull request #648: changed pathing for traffic_port...

2017-06-06 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-trafficcontrol/pull/648


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


Build failed in Jenkins: incubator-trafficcontrol-rat #53

2017-06-06 Thread Apache Jenkins Server
See 


--
Started by upstream project "incubator-trafficcontrol-master-build" build 
number 54
originally caused by:
 Started by an SCM change
 Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on H15 (ubuntu xenial) in workspace 

[incubator-trafficcontrol-rat] $ /bin/bash -xe /tmp/hudson6794762683680045597.sh
+ rm -rf 

 

 '
[operations-center-context] Requesting copy of artifacts matching '**/*.tar.gz' 
from 'Last successful build (either stable or unstable)' of 
incubator-trafficcontrol-master-build
[operations-center-context] Copied 1 artifacts matching '**/*.tar.gz' from 
'Last successful build (either stable or unstable)' of 
incubator-trafficcontrol-master-build:
[operations-center-context]   trafficcontrol-incubating-2.1.0.tar.gz
[incubator-trafficcontrol-rat] $ /bin/bash -xe /tmp/hudson5044504946642386842.sh
+ set -exu
++ ls trafficcontrol-incubating-2.1.0.tar.gz
+ tarball=trafficcontrol-incubating-2.1.0.tar.gz
+ tar xzf trafficcontrol-incubating-2.1.0.tar.gz
++ pwd
++ basename trafficcontrol-incubating-2.1.0.tar.gz .tar.gz
+ 
tcdir=
+ cd 

++ date +%Y
+ grep 'Copyright 2017 The Apache Software Foundation' NOTICE
Copyright 2017 The Apache Software Foundation
+ set +x
Searching for class files:
PASSED: No class files found.
Searching for jar files:
PASSED: No jar files found.
Searching for tar files:
PASSED: No tar files found.
Searching for tgz files:
PASSED: No tgz files found.
Searching for zip files:
PASSED: No zip files found.
+ ratver=apache-rat-0.13-20170427.032418-37.jar
++ mktemp -d
+ ratdir=/tmp/tmp.X3298fzmJR
+ ratjar=/tmp/tmp.X3298fzmJR/apache-rat-0.13.SNAPSHOT.jar
+ curl -L -o /tmp/tmp.X3298fzmJR/apache-rat-0.13.SNAPSHOT.jar 
https://repository.apache.org/content/repositories/snapshots/org/apache/rat/apache-rat/0.13-SNAPSHOT/apache-rat-0.13-20170427.032418-37.jar
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  Speed
  0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 0  
0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 0100 
1587k  100 1587k0 0  1251k  0  0:00:01  0:00:01 --:--:-- 1252k
+ curl -L -o /tmp/tmp.X3298fzmJR/apache-rat-0.13.SNAPSHOT.jar.sha1 
https://repository.apache.org/content/repositories/snapshots/org/apache/rat/apache-rat/0.13-SNAPSHOT/apache-rat-0.13-20170427.032418-37.jar.sha1
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  Speed
  0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 0  
0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 0100 
   40  100400 0 64  0 --:--:-- --:--:-- --:--:--64
++ sha1sum /tmp/tmp.X3298fzmJR/apache-rat-0.13.SNAPSHOT.jar
++ awk '{print $1}'
++ cat /tmp/tmp.X3298fzmJR/apache-rat-0.13.SNAPSHOT.jar.sha1
+ [[ ac5cfd859902d5c858baed8dbcf91c014ce9ae23 == 
ac5cfd859902d5c858baed8dbcf91c014ce9ae23 ]]
++ pwd
++ pwd
+ java -jar /tmp/tmp.X3298fzmJR/apache-rat-0.13.SNAPSHOT.jar -E 

 -d 

+ rm -rf /tmp/tmp.X3298fzmJR
++ perl -lne 'print if /\(\d+\) Unknown Licenses/' ratreport.txt
+ unknown=
+ [[ '' != 0 ]]
+ echo ' Unknown Licenses'
 Unknown Licenses
+ perl -lne 'print if /Files with unapproved licenses:/ .. /^\*\*\*/' 
ratreport.txt
+ sed s:::
Files with unapproved licenses:

  trafficcontrol-incubating-2.1.0/BUILD_NUMBER
  trafficcontrol-incubating-2.1.0/traffic_ops/experimental/auth/server.key
  
trafficcontrol-incubating-2.1.0/traffic_ops/experimental/ui/app/src/styles/loading.scss
  
trafficcontrol-incubating-2.1.0/traffic_ops/experimental/ui/app/src/styles/theme.scss
  trafficcontrol-incubating-2.1.0/traffic_ops/experimental/webfront/server.key
  
trafficcontrol-incubating-2.1.0/traffic_ops/experimental/webfront/simpleserver/server.key
  trafficcontrol-incubating-2.1.0/traffic_portal/app/src/styles/loading.scss
  
trafficcontrol-incubating-2.1.0/traffic_stats/vendor/githu