[Openstack-operators] Mitaka and gnocchi

mate200 at mailbox.org mate200 at mailbox.org
Thu Jun 1 13:33:48 UTC 2017


So, with gnocchi-api running directly all works fine. But if a run uwsgi with this config:
[uwsgi]http-socket = 10.10.10.69:8041# Set the correct path depending on your installationwsgi-file =
/usr/local/bin/gnocchi-apilogto = /var/log/gnocchi-uwsgi.logmaster = truedie-on-term = truethreads = 2# Adjust based on
the number of CPUprocesses = 2enabled-threads = truethunder-lock = trueplugins = pythonbuffer-size = 65535lazy-apps =
true
I periodically receive these errors in ceilometer-collector.log :
2017-06-01 13:25:55.677 1205875 DEBUG ceilometer.dispatcher.gnocchi [-] Resource 67896cdf-4f8e-4f33-aef3-26456ed3f4dc
updated _update_resource /usr/lib/python2.7/dist-packages/ceilometer/dispatcher/gnocchi.py:385
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi [-] Unable to establish connection to http://10.10.1
0.69:8041/v1/resource/instance_disk/2940f8ed-02e7-5cc3-ae3f-3fed97ec3953
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi Traceback (most recent call last):
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi   File "/usr/lib/python2.7/dist-
packages/ceilometer/dispatcher/gnocchi.py", line 76, in log_and_ignore
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi     func(self, *args, **kwargs)
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi   File "/usr/lib/python2.7/dist-
packages/ceilometer/dispatcher/gnocchi.py", line 371, in _process_resource
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi     self._update_resource, resource_extra)
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi   File "/usr/lib/python2.7/dist-
packages/ceilometer/dispatcher/gnocchi.py", line 409, in _if_not_cached
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi     method(resource_type, resource, *args, **kwargs)
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi   File "/usr/lib/python2.7/dist-
packages/ceilometer/dispatcher/gnocchi.py", line 384, in _update_resource
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi     resource_extra)
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi   File "/usr/local/lib/python2.7/dist-
packages/gnocchiclient/v1/resource.py", line 115, in update
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi     data=jsonutils.dumps(resource)).json()
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi   File "/usr/local/lib/python2.7/dist-
packages/gnocchiclient/v1/base.py", line 49, in _patch
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi     return self.client.api.patch(*args, **kwargs)
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi   File "/usr/lib/python2.7/dist-
packages/keystoneauth1/adapter.py", line 185, in patch
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi     return self.request(url, 'PATCH', **kwargs)
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi   File "/usr/local/lib/python2.7/dist-
packages/gnocchiclient/client.py", line 35, in request
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi     **kwargs)
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi   File "/usr/lib/python2.7/dist-
packages/keystoneauth1/adapter.py", line 98, in request
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi     return self.session.request(url, method,
**kwargs)
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi   File "/usr/lib/python2.7/dist-
packages/positional/__init__.py", line 94, in inner
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi     return func(*args, **kwargs)
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi   File "/usr/lib/python2.7/dist-
packages/keystoneauth1/session.py", line 452, in request
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi     resp = send(**kwargs)
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi   File "/usr/lib/python2.7/dist-
packages/keystoneauth1/session.py", line 496, in _send_request
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi     raise exceptions.ConnectFailure(msg)
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi ConnectFailure: Unable to establish connection to ht
tp://10.10.10.69:8041/v1/resource/instance_disk/2940f8ed-02e7-5cc3-ae3f-3fed97ec3953
2017-06-01 13:25:55.679 1205875 ERROR ceilometer.dispatcher.gnocchi 
2017-06-01 13:25:55.719 1205875 DEBUG ceilometer.dispatcher.gnocchi [-] Resource instance-00000008-67896cdf-4f8e-4f33-
aef3-26456ed3f4dc-tap433cd9c0-36 updated _update_resource /usr/lib/python2.7/dist-
packages/ceilometer/dispatcher/gnocchi.py:385

(More logs here: https://pastebin.com/V2EUT4t6 )
What it may be ?

On Wed, 2017-05-31 at 15:06 +0300, mate200 at mailbox.org wrote:
> Thanks Grodon ! I've found that I need !
> 
> 
> Regarding the output problem, for now I execute gnocchi-api -p 8041 &>> /var/log/gnocchi-uwsgi.log &
> and it solves the problem. Will try to execute api part with uwsgi options.
> 
> -- 
> Best regards,
> Mate200
> 
> 
> On Tue, 2017-05-30 at 20:11 +0000, gordon chung wrote:
> > On 30/05/17 10:42 AM, mate200 at mailbox.org wrote:
> > > Second thing, that I don't understand is how to get access to stored
> > > data. For instance, with ceilometer I can execute /ceilometer
> > > sample-list -m memory.usage -q resource_id=<id number> /
> > > and receive memory usage for some instance. Now, If i execute previous
> > > command I get '('Connection aborted.', BadStatusLine("''",))', so if I
> > > understand right I should use gnocchiclient.
> > > I've been playing with it for a few hours already, but still no luck.
> > > Could you point me in right direction ?
> > > 
> > 
> > gnocchi is a completely different api from ceilometer. see: 
> > http://gnocchi.xyz/gnocchiclient/shell.html for cli usage; 
> > http://gnocchi.xyz/rest.html for REST and 
> > https://www.slideshare.net/GordonChung/ceilometer-to-gnocchi if you're 
> > not sure what difference between ceilometer and gnocchi is (made that 
> > over a year ago, so it doesn't cover everything in gnocchi)
> > 
> > cheers,
> > -- 
> > gord
> > _______________________________________________
> > OpenStack-operators mailing list
> > OpenStack-operators at lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
> 
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
-- 
Best regards,
Mate200
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20170601/ca8dd6a5/attachment.html>


More information about the OpenStack-operators mailing list