You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/06/19 12:26:01 UTC

[GitHub] [trafficcontrol] Vijay-1 opened a new issue #3687: Ignoring ADMIN_DOWN Cache Servers while setting parent_pending flag

Vijay-1 opened a new issue #3687: Ignoring ADMIN_DOWN Cache Servers while setting parent_pending flag
URL: https://github.com/apache/trafficcontrol/issues/3687
 
 
   **Test setup:**
   Edge Group - one edge(EDGE-1) and its parent group has two Mids (MID-1 and MID-2)
   Assign this EDGE-1 to a delivery service DS-1.
   
   **Test Case:** 
   ADMIN-DOWN one of the MIDs (MID-1); Execute ORT in EDGE-1
   ORT run fails complaining that its parent is pending.
    
   **Reason:**
   During ORT run, EDGE-1 uses "/api/1.3/servers/<host-name>/update_status" to deduce whether its parent has executed ORT successfully (upd_pending -> false).This API (traffic_ops_golang's getServerUpdateStatus function in servers_update_status.go) uses a DB query which ignores only the OFFLINE Mids and not the ADMIN_DOWN Mids and hence ORT run in Edge fails saying 
    
   Fix:
   Rewrite the db query to ignore ADMIN_DOWN MIDS. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services