jhowar201 opened a new issue #3934: STEERING location response not listing all 
targets
URL: https://github.com/apache/trafficcontrol/issues/3934
 
 
   ## I'm submitting a ...
   - [x] bug report
   - [ ] new feature / enhancement request
   - [ ] improvement request (usability, performance, tech debt, etc.)
   - [ ] other <!--(Please do not submit support requests here - see above)-->
   
   ## Traffic Control components affected ...
   <!-- (check all that apply with "[x]") -->
   - [ ] CDN in a Box
   - [ ] Documentation
   - [ ] Grove
   - [ ] Traffic Control Client
   - [ ] Traffic Monitor
   - [ ] Traffic Ops
   - [ ] Traffic Ops ORT
   - [x] Traffic Portal
   - [x] Traffic Router
   - [ ] Traffic Stats
   - [ ] Traffic Vault
   - [ ] unknown
   
   ## Current behavior:
   <!-- Describe how the bug manifests / how the current features are 
insufficient. -->
   STEERING delivery services are only returning one target from the TR 
response in location even when configured with multiple targets with 
equal/differing weight/order.
   ```{"locations":["https://edge1.origin1.cdn.example.com/?trred=false"]}```
   
   ## Expected / new behavior:
   <!-- Describe what the behavior would be without the bug / how the feature 
would improve Traffic Control -->
   Expected that all targets would be listed in the locations response and 
order is based on target metric as previous versions:
   
```{"locations":["https://edge1.origin1.cdn.example.com/?trred=false","https://edge1.origin2.cdn.example.com/?trred=false"]}
   
   
   ## Minimal reproduction of the problem with instructions:
   <!--
   If the current behavior is a bug or you can illustrate your feature request 
better with an example,
   please provide the *STEPS TO REPRODUCE* and include the applicable TC 
version.
   -->
   Attempted to change STEERING target weights to various values such as 0, -1 
or 50/50 and while the response service in the location changed, it only ever 
responds with a single service for redirect even when configured for 50/50 
weight on 2 targets. 
   Confirmed the TR is getting the weights as it sees the changes in the json 
and picks up the correct values for all targets in its logs. 
   Issue occurs when using any target sorting mechanism (WEIGHT vs ORDER etc), 
response may change but only 1 target is ever listed in location field.
   TP/TR Version: 3.0.0-10043.861616b3
   
   ## Anything else:
   <!-- e.g. stacktraces, related issues, suggestions how to fix -->
   This looks similar to https://github.com/apache/trafficcontrol/issues/3476 
but I have confirmed RGB is off on the steering DS as well as its 2 target 
services when testing. 
   
   <!--
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
   distributed with this work for additional information
   regarding copyright ownership.  The ASF licenses this file
   to you under the Apache License, Version 2.0 (the
   "License"); you may not use this file except in compliance
   with the License.  You may obtain a copy of the License at
   
       http://www.apache.org/licenses/LICENSE-2.0
   
   Unless required by applicable law or agreed to in writing,
   software distributed under the License is distributed on an
   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   KIND, either express or implied.  See the License for the
   specific language governing permissions and limitations
   under the License.
   -->

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to