Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TC-514] ORT: Change Traffic Ops hostname in middle of ORT run #988

Closed
limited opened this issue Aug 29, 2017 · 0 comments
Closed

[TC-514] ORT: Change Traffic Ops hostname in middle of ORT run #988

limited opened this issue Aug 29, 2017 · 0 comments
Assignees
Labels
bug something isn't working as intended low impact affects only a small portion of a CDN, and cannot itself break one Traffic Ops ORT *DEPRECATED* related to the traffic_ops_ort.pl script
Milestone

Comments

@limited
Copy link
Contributor

limited commented Aug 29, 2017

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

[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: ...<!--

Author: Steve Malenfant
JIRA Link: https://issues.apache.org/jira/browse/TC-514
Found Version: 2.1.0

@limited limited added this to the 2.1.0 milestone Aug 29, 2017
@limited limited added bug something isn't working as intended low impact affects only a small portion of a CDN, and cannot itself break one Traffic Ops ORT *DEPRECATED* related to the traffic_ops_ort.pl script labels Aug 29, 2017
hbeatty added a commit that referenced this issue Oct 2, 2017
@hbeatty hbeatty closed this as completed Oct 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working as intended low impact affects only a small portion of a CDN, and cannot itself break one Traffic Ops ORT *DEPRECATED* related to the traffic_ops_ort.pl script
Projects
None yet
Development

No branches or pull requests

3 participants