Me again,

looking into 
https://github.com/Juniper/contrail-controller/blob/R2.0/src/opserver/opserver.py,
 
it looks as if 127.0.0.1 is hardcoded there a couple of times?!

Best regards
Martin

> Am 29.04.2015 um 18:36 schrieb Martin Loschwitz <[email protected]>:
> 
> Hello Raj,
> 
> thanks for the pointer! Stupid me … so I am one step further now and see, in 
> the webinterface log,
> this:
> 
> 2015-04-29T16:28:27.942Z - error: URL 
> [http://77.247.XXX.XXX:8081/analytics/query] returned error ["Failure in 
> connection to the query DB"]
> 2015-04-29T16:28:27.942Z - error: Error Run Query: REST Server Error: Failure 
> in connection to the query DB
> 
> At the same time, I see the analytics API doing this:
> 
> [2015-04-29 18:26:43] "POST /analytics/query HTTP/1.1" 500 172 0.001288
> 
> In an strace, I see this:
> 
> [pid 47174] connect(8, {sa_family=AF_INET, sin_port=htons(6379), 
> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS (Operation now in 
> progress)
> 
> So it looks like it is connecting to redis on the local host, albeit having 
> the
> following in contrail-analytics-api.conf:
> 
> [REDIS]
> server = 77.247.XXX.XXX
> redis_server_port = 6379
> redis_query_port = 6379
> 
> What’s wrong here? :(
> 
> Best regards
> Martin
> 
>> Am 29.04.2015 um 18:16 schrieb Raj Reddy <[email protected]>:
>> 
>> by default analytics-api listens at 0.0.0.0:8081 -- both methods should have 
>> worked without any config change..
>> 
>> You should look at what's the listen ip using
>> netstat -anp | grep 8081..
>> 
>> regards,
>> -
>> Raj
>> 
>> On Apr 29, 2015, at 7:08 AM, Martin Gerhard Loschwitz 
>> <[email protected]>
>> wrote:
>> 
>>> Folks,
>>> 
>>> I see this when trying to query the analytics-api IP address:
>>> 
>>> cloud14# curl 77.247.XXX.XXX:8081/analytics/tables
>>> curl: (52) Empty reply from server
>>> 
>>> But when I reconfigure the API to listen on 127.0.0.1 and query that one, I 
>>> get:
>>> 
>>> cloud14# curl 127.0.0.1:8081/analytics/tables
>>> [{"href": "http://127.0.0.1:8081/analytics/table/MessageTable";, "type": 
>>> "LOG", "name": "MessageTable"} ...
>>> 
>>> What's going on here, and how do I fix the issue?
>>> 
>>> Best regards
>>> Martin
>>> 
>>> —
>>> Martin Gerhard Loschwitz
>>> OpenStack DACH e.V.
>>> Neuköllner Str. 306
>>> D-12357 Berlin
>>> 
>>> T: +49 1511 9305928
>>> W: http://www.openstack-dach.org/
>>> 
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org
>> 
> 
> 
> _______________________________________________
> Dev mailing list
> [email protected]
> http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org


_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

Reply via email to