ericholguin opened a new issue, #6856:
URL: https://github.com/apache/trafficcontrol/issues/6856

   <!--
   ************ STOP!! ************
   If this issue identifies a security vulnerability, DO NOT submit it! 
Instead, contact
   the Apache Traffic Control Security Team at 
[email protected] and follow the
   guidelines at https://apache.org/security regarding vulnerability disclosure.
   
   - For *SUPPORT QUESTIONS*, use the #traffic-control channel on the ASF slack 
(https://s.apache.org/tc-slack-request)
   or the Traffic Control Users mailing list (send an email to 
[email protected] to subscribe).
   - Before submitting, please **SEARCH GITHUB** for a similar issue or PR
       * https://github.com/apache/trafficcontrol/issues
       * https://github.com/apache/trafficcontrol/pulls
   -->
   
   <!-- Do not submit security vulnerabilities or support requests here - see 
above -->
   ## This Bug Report affects these Traffic Control components:
   <!-- delete all those that don't apply -->
   
   - Traffic Ops
   
   ## Current behavior:
   <!-- Describe how the bug happens -->
   
   This is a very specific scenario, currently it works as such:
   
   There must exist an active MSO Delivery Service with an origin server 
assigned (Must have the status ONLINE or REPORTED),
   If you update the status of the origin to ADMIN_DOWN this should result in a 
409, (Making sure all the other fields are the exact same):
   
   ```http
   HTTP/1.1 409 Conflict
   Content-Type: application/json
   Transfer-Encoding: chunked
   {
       "alerts": [
           {
               "text": "setting server status to 'ADMIN_DOWN' would leave 
Active Delivery Service #3 with no 'ONLINE' or 'REPORTED' ORG servers",
               "level": "error"
           }
       ]
   }
   ```
   
   However if you change the profileNames, replacing the previous profile to 
another you will get the same result but that server will no longer exist in 
any `GET` requests. However the server is still in the DB.
   
   This only happens if you remove the previous profileName, adding additional 
profiles will not create this issue. 
   
   The only `GET` request that still shows that the previous servers exist is 
`/api/4.0/deliveryservices/{dsId}/servers/eligible`
   
   ## Expected behavior:
   <!-- Describe what the behavior would be without the bug -->
   
   Server should be appearing in any and all valid `GET` requests
   
   ## Steps to reproduce:
   <!-- If the current behavior is a bug, please provide the *STEPS TO 
REPRODUCE* and
   include the applicable TC version.
   -->
   
   There must exist an active MSO Delivery Service with an origin server 
assigned (Must have the status ONLINE or REPORTED),
   If you update the status of the origin to ADMIN_DOWN this should result in a 
409, (Making sure all the other fields are the exact same) Update the 
profileNames to something other than the current profile.


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to