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

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

GitHub user smalenfant opened a pull request:

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

    [TC-514] ORT: Use CLI provided traffic_ops_hosts

    - Script was fetching tm.url from GLOBAL profile. If the URL was different 
(multiple TO for example), it was failing on cookies which didn't have same 
secret
    - Note that the URL won't change unless there is a reverse proxy 
configured. There is still a chance cookies might be different.
    
    @dg4prez Please review.

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

    $ git pull https://github.com/smalenfant/incubator-trafficcontrol sm-tc-514

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

    https://github.com/apache/incubator-trafficcontrol/pull/830.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 #830
    
----
commit 3f314679c201f6425c7115f565a3a14d744bfc69
Author: Steve Malenfant <steve.malenf...@cox.com>
Date:   2017-08-17T13:24:05Z

    Use CLI provided traffic_ops_hosts
    - Script was fetching tm.url from GLOBAL profile. If the URL was different 
(multiple TO for example), it was failing on cookies which didn't have same 
secret
    - Note that the URL won't change unless there is a reverse proxy 
configured. There is still a chance cookies might be different.

----


> ORT: Change Traffic Ops hostname in middle of ORT run
> -----------------------------------------------------
>
>                 Key: TC-514
>                 URL: https://issues.apache.org/jira/browse/TC-514
>             Project: Traffic Control
>          Issue Type: Bug
>          Components: Traffic Ops ORT
>    Affects Versions: 2.1.0, 2.2.0
>         Environment: Traffic Ops 2.1 and ORT 2.1
>            Reporter: Steve Malenfant
>            Assignee: Steve Malenfant
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> I'm not sure if this is 2.1 specifics... Worth discussing.
> - Could this prevent load balancing traffic ops from working?
> - Cookies might be different (you need to sync secrets?). These are in the 
> cdn.conf and not the database...
> When you instruct the traffic_ops_ort to go to a secondary Traffic Ops, it 
> will start on the CLI designated but will move back to the primary during the 
> "Start processing packages" process.
> Code in question : 
> https://github.com/apache/incubator-trafficcontrol/blob/2.1.x/traffic_ops/bin/traffic_ops_ort.pl#L201
> {code:java}
> [root@edge06 ~]# /opt/ort/traffic_ops_ort.pl -dispersion=0 report DEBUG 
> https://traffic-ops-0002.coxlab.net chs:w@term@rk
> Mon Aug 14 13:29:06 UTC 2017
> DEBUG OS release is EL7.
> DEBUG Script running in report mode.
> 302
> DEBUG https://traffic-ops-0002.coxlab.net/login returned HTTP 302.
> DEBUG Cookie is 
> mojolicious=eyJhdXRoX2RhdGEi4iJjaHMiLCJleHBpcmVzIjoxNTAyNzMxNzQ2fQ----136010205dc8d4951e2e2194b6b463eb3d141f1e.
> DEBUG YUM_OPTS: .
> DEBUG Total connections in LWP cache: 1
> INFO Traffic Ops host: https://traffic-ops-0002.coxlab.net
> ...
> INFO: ======== Start processing packages ========
> DEBUG Total connections in LWP cache: 1
> INFO Traffic Ops host: https://traffic-ops-0001.coxlab.net
> DEBUG lwp_get called with /ort/psp6cdedge06/packages
> ERROR https://traffic-ops-0001.coxlab.net/ort/edge06/packages returned HTTP 
> 401! Unauthorized 
> ERROR result for https://traffic-ops-0001/ort/psp6cdedge06/packages is: 
> ...<!--
> {code}



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

Reply via email to