Uploaded image for project: 'Traffic Control'
  1. Traffic Control
  2. TC-514

ORT: Change Traffic Ops hostname in middle of ORT run

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • 2.1.0, 2.2.0
    • 2.1.0, 2.2.0
    • Traffic Ops ORT
    • None
    • Traffic Ops 2.1 and ORT 2.1

    Description

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

      Attachments

        Issue Links

          Activity

            People

              smalenfant Steve Malenfant
              smalenfant Steve Malenfant
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: