Re: [Openstack] Ceilometer getting a "Connection refused" from

2013-07-02 Thread Ashok Kumaran
Glad its working ! your connection refused error should disappear now

Best,
Ashok

On Tue, Jul 2, 2013 at 3:33 PM, Jobin Raju George wrote:

>
> Hey, Ashok!
>
>
> I did the following:
>
> 1) Changed bind_ip=10.112.107.107 in /etc/mongodb.conf
> 2) Restarted mongodb using service mongodb restart.
> 3) Confirmed mongodb is running(mongodb start/running, process 15257)
> 4) Did a telnet 10.112.107.107 27017 and yes it is working now!
>
>
> Thanks a lot for your efforts!
>
>
> On Tue, Jul 2, 2013 at 3:26 PM, Ashok Kumaran wrote:
>
>> I believe that is the problem.
>>
>> Can you change the bind_ip=10.112.107.107 and then restart mongodb,then
>> try to do a telnet from your compute? let me know the outcome
>>
>>  On Tue, Jul 2, 2013 at 3:23 PM, Jobin Raju George wrote:
>>
>>> Oh yes, it is! Is that the issue?
>>>
>>>
>>> On Tue, Jul 2, 2013 at 3:22 PM, Ashok Kumaran 
>>> wrote:
>>>
 Okay, Can you check what has been set on parameter bind_ip in mongodb
 conf in your controller?
 is it 127.0.0.1?




 On Tue, Jul 2, 2013 at 3:13 PM, Jobin Raju George 
 wrote:

> Dear Ashok, thanks for you attention. Here are the outputs of commands
> you told me to execute:
>
> 1)
>
> netstat -ntlp | grep 27017
> tcp0  0 127.0.0.1:27017 0.0.0.0:*
> LISTEN  1482/mongod
>
>
> 2)
>
> telnet 10.112.107.107 27017
> Trying 10.112.107.107...
> telnet: Unable to connect to remote host: Connection refused
>
>
>
> On Tue, Jul 2, 2013 at 2:58 PM, Ashok Kumaran <
> ashokkumara...@gmail.com> wrote:
>
>> Hi
>>
>> I know nothing about Ceilometer, but I thought I could figure out the
>> mongodb connection issue, i have slight experience in mongodb.
>>
>> In your controller node can you check whether 27017 is listening for
>> external connections?
>> #netstat -ntlp|grep 27017 -- paste the output
>> Also from your compute do a #telnet 10.112.107.107 27017, let me know
>> the output.
>> need to know the above things before we move into the further
>> troubleshooting
>>
>>
>>
>>  On Tue, Jul 2, 2013 at 2:48 PM, Jobin Raju George <
>> jobin...@gmail.com> wrote:
>>
>>>  10.112.107.107 is the IP address of the controller node where
>>> nova, keystone, ceilometer have been installed(and so is mongodb). I 
>>> have
>>> installed ceilometer on the compute node also and configured it so that 
>>> it
>>> knows that mongodb listens on 10.112.107.107:27017 but I don't know
>>> why it is refusing connection. However, I don't see a connection 
>>> refused in
>>> mongodb's logs. Here are the last few lines of my ceilometer-api logs:
>>> http://pastebin.ubuntu.com/5835646/
>>>
>>>
>>> On Tue, Jul 2, 2013 at 2:42 PM, Julien Danjou wrote:
>>>
 On Tue, Jul 02 2013, Jobin Raju George wrote:

 > Here is my /etc/ceilometer/ceilometer.conf:
 > http://pastebin.ubuntu.com/5835612/

 So the problem is that you configured it to use mongodb at
 mongodb://10.112.107.107:27017/ceilometer but mongodb doesn't seem
 to
 answer on this IP/port considering the error. I really dont'get
 what you
 don't get, it seems pretty obvious to me you should install MongoDB
 where you configured Ceilometer to look, right?

 --
 Julien Danjou
 # Free Software hacker # freelance consultant
 # http://julien.danjou.info

>>>
>>>
>>>
>>> --
>>>
>>>   Thanks and regards,
>>>
>>> Jobin Raju George
>>>
>>> Third Year, Information Technology
>>>
>>> College of Engineering Pune
>>>
>>> Alternate e-mail: georgejr10...@coep.ac.in
>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~openstack
>>> Post to : openstack@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~openstack
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Regds,
>>
>> Ashok ,
>> Delivery Consultant,
>> HP.
>>
>
>
>
> --
>
>   Thanks and regards,
>
> Jobin Raju George
>
> Third Year, Information Technology
>
> College of Engineering Pune
>
> Alternate e-mail: georgejr10...@coep.ac.in
>
>


 --
 Regds,

 Ashok ,
 Delivery Consultant,
 HP.

>>>
>>>
>>>
>>> --
>>>
>>>   Thanks and regards,
>>>
>>> Jobin Raju George
>>>
>>> Third Year, Information Technology
>>>
>>> College of Engineering Pune
>>>
>>> Alternate e-mail: georgejr10...@coep.ac.in
>>>
>>>
>>
>>
>> --
>> Regds,
>>
>> Ashok ,
>> Delivery Consultant,
>> HP.
>>
>
>
>
> --
>
>   Thanks and regards,
>
> Jobin Raju George
>
> Third Year, Information Technology
>

Re: [Openstack] Ceilometer getting a "Connection refused" from

2013-07-02 Thread Jobin Raju George
10.112.107.107 is the IP address of the controller node where nova,
keystone, ceilometer have been installed(and so is mongodb). I have
installed ceilometer on the compute node also and configured it so that it
knows that mongodb listens on 10.112.107.107:27017 but I don't know why it
is refusing connection. However, I don't see a connection refused in
mongodb's logs. Here are the last few lines of my ceilometer-api logs:
http://pastebin.ubuntu.com/5835646/


On Tue, Jul 2, 2013 at 2:42 PM, Julien Danjou  wrote:

> On Tue, Jul 02 2013, Jobin Raju George wrote:
>
> > Here is my /etc/ceilometer/ceilometer.conf:
> > http://pastebin.ubuntu.com/5835612/
>
> So the problem is that you configured it to use mongodb at
> mongodb://10.112.107.107:27017/ceilometer but mongodb doesn't seem to
> answer on this IP/port considering the error. I really dont'get what you
> don't get, it seems pretty obvious to me you should install MongoDB
> where you configured Ceilometer to look, right?
>
> --
> Julien Danjou
> # Free Software hacker # freelance consultant
> # http://julien.danjou.info
>



-- 

Thanks and regards,

Jobin Raju George

Third Year, Information Technology

College of Engineering Pune

Alternate e-mail: georgejr10...@coep.ac.in
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Ceilometer getting a "Connection refused" from

2013-07-02 Thread Julien Danjou
On Tue, Jul 02 2013, Jobin Raju George wrote:

> Here is my /etc/ceilometer/ceilometer.conf:
> http://pastebin.ubuntu.com/5835612/

So the problem is that you configured it to use mongodb at
mongodb://10.112.107.107:27017/ceilometer but mongodb doesn't seem to
answer on this IP/port considering the error. I really dont'get what you
don't get, it seems pretty obvious to me you should install MongoDB
where you configured Ceilometer to look, right?

-- 
Julien Danjou
# Free Software hacker # freelance consultant
# http://julien.danjou.info


signature.asc
Description: PGP signature
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Ceilometer getting a "Connection refused" from

2013-07-02 Thread Jobin Raju George
Here is my /etc/ceilometer/ceilometer.conf:
http://pastebin.ubuntu.com/5835612/


On Tue, Jul 2, 2013 at 2:28 PM, Julien Danjou  wrote:

> On Tue, Jul 02 2013, Jobin Raju George wrote:
>
> > Please feel free to ask for clarification.
>
> Could you paste the content of your configuration file?
>
> --
> Julien Danjou
> /* Free Software hacker * freelance consultant
>http://julien.danjou.info */
>



-- 

Thanks and regards,

Jobin Raju George

Third Year, Information Technology

College of Engineering Pune

Alternate e-mail: georgejr10...@coep.ac.in
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Ceilometer getting a "Connection refused" from

2013-07-02 Thread Julien Danjou
On Tue, Jul 02 2013, Jobin Raju George wrote:

> Please feel free to ask for clarification.

Could you paste the content of your configuration file?

-- 
Julien Danjou
/* Free Software hacker * freelance consultant
   http://julien.danjou.info */


signature.asc
Description: PGP signature
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Ceilometer getting a "Connection refused" from

2013-07-02 Thread Jobin Raju George
I have a controller node and a compute node on two different hosts. When I
query ceilometer from the compute node, I get a "Connection refused" errror
from port no 27017 of controller node, which I suppose is the port no where
mongo listens. I haven't installed mongodb in the compute node, though the
error points to the controller node's mongodb port.


This is the query is posted:

curl -X GET -H 'X-Auth-Token:' "
http://127.0.0.1:8777/v2/meters/instance?q.field=metadata.event_type&q.value=compute.instance.delete.start
"


The result I get:

The output 

(Since the output was too long, I considered not pasting it here, apologies
for inconvenience).

What is the reason behind this and how should I correct this?

Please feel free to ask for clarification.
-- 

Thanks and regards,

Jobin Raju George

Third Year, Information Technology

College of Engineering Pune

Alternate e-mail: georgejr10...@coep.ac.in
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp