Ricardo Martinelli de Oliveira created ATLAS-3818:
-----------------------------------------------------

             Summary: Set 0.0.0.0 in atlas.server.bind.address property forces 
Atlas to run on localhost
                 Key: ATLAS-3818
                 URL: https://issues.apache.org/jira/browse/ATLAS-3818
             Project: Atlas
          Issue Type: Bug
          Components: atlas-webui
    Affects Versions: 2.0.0
         Environment: kubernetes
            Reporter: Ricardo Martinelli de Oliveira


I'm working on getting Atlas run on a k8s environment, and that requires the 
application running in the pod to listen to 0.0.0.0 bind address as there is no 
way to know the pod IP address in advance. However, setting 
atlas.server.bind.address property to 0.0.0.0 will force Atlas to listen to 
localhost.

 

The problem relies on this code in atlas_config.py[1]:

 
{code:java}
if (host == '0.0.0.0'):
    host = DEFAULT_ATLAS_SERVER_HOST
print "starting atlas on host %s" % host
return host
{code}
 

 

So unless there's a good reason to return localhost when setting to 0.0.0.0 
this code is wrong.

 

[1] 
[https://github.com/apache/atlas/blob/master/distro/src/bin/atlas_config.py#L505-L506]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to