J.Andreina created KNOX-1184:

             Summary: [Service Discovery] Atlas endpoint url is not updated 
properly in the generated topology
                 Key: KNOX-1184
                 URL: https://issues.apache.org/jira/browse/KNOX-1184
             Project: Apache Knox
          Issue Type: Bug
    Affects Versions: 0.14.0
         Environment: knox proxy and service discovery enabled
            Reporter: J.Andreina
             Fix For: 1.1.0

Service discovery:

Verified knox proxy feature through the generated topology file from service 
discovery feature


Generated topology file should have only the active atlas endpoint url , as 
HaProvider for atlas is not yet supported
when we access atlas through knox proxy, should'nt expose the atlas ip and port 


Generated topology has both passive and active url for "ATLAS" service and 
passive url for "ATLAS-API" service.
Hence accessing atlas through knox proxy redirects me to the atlas active 
endpoint url, hence knox proxy fails. 
Explained the failure case in scenario 1 below


Atlas has 2 host

host1 - acive_host
host2 - passive_host

{color:red}Scenario 1:

Generated topology using service discovery feature


Here accessing the atlas through knox proxy redirects me to active atlas host1 

{color:#d04437}accessing url : https://<gateway-host>:8443/gateway/ui/atlas
redirected url : http:/host1:21000/login.jsp{color}

{color:#14892c}Scenario 2:
when i manually modified the atlas endpoint to only active url in generated 
topology file then the knox proxy works fine


{color:#14892c}accessing url : https://gateway-host:8443/gateway/ui/atlas
redirected url: https://gateway-host:8443/gateway/ui/atlas/login.jsp{color}

This message was sent by Atlassian JIRA

Reply via email to