Revision history [back]

click to hide/show revision 1
initial version

gnocchi ToozError: Protocol Error: H, TTP/1.1 400 Bad Request

gnocchi-upgrade fails with these errors:

[Tue Mar 13 14:05:41.876639 2018] [:error] [pid 49715] [remote 10.105.2.89:68] mod_wsgi (pid=49715): Target WSGI script '/usr/lib/python2.7/site-packages/gnocchi/rest/app.wsgi' cannot be loaded as Python module. [Tue Mar 13 14:05:41.876664 2018] [:error] [pid 49715] [remote 10.105.2.89:68] mod_wsgi (pid=49715): Exception occurred processing WSGI script '/usr/lib/python2.7/site-packages/gnocchi/rest/app.wsgi'. [Tue Mar 13 14:05:41.876680 2018] [:error] [pid 49715] [remote 10.105.2.89:68] Traceback (most recent call last): [Tue Mar 13 14:05:41.876694 2018] [:error] [pid 49715] [remote 10.105.2.89:68] File "/usr/lib/python2.7/site-packages/gnocchi/rest/app.wsgi", line 25, in <module> [Tue Mar 13 14:05:41.876712 2018] [:error] [pid 49715] [remote 10.105.2.89:68] application = app.build_wsgi_app() [Tue Mar 13 14:05:41.876718 2018] [:error] [pid 49715] [remote 10.105.2.89:68] File "/usr/lib/python2.7/site-packages/gnocchi/rest/app.py", line 143, in build_wsgi_app [Tue Mar 13 14:05:41.876727 2018] [:error] [pid 49715] [remote 10.105.2.89:68] return load_app(service.prepare_service()) [Tue Mar 13 14:05:41.876732 2018] [:error] [pid 49715] [remote 10.105.2.89:68] File "/usr/lib/python2.7/site-packages/gnocchi/rest/app.py", line 92, in load_app [Tue Mar 13 14:05:41.876739 2018] [:error] [pid 49715] [remote 10.105.2.89:68] storage = gnocchi_storage.get_driver(conf) [Tue Mar 13 14:05:41.876744 2018] [:error] [pid 49715] [remote 10.105.2.89:68] File "/usr/lib/python2.7/site-packages/gnocchi/storage/__init__.py", line 163, in get_driver [Tue Mar 13 14:05:41.876761 2018] [:error] [pid 49715] [remote 10.105.2.89:68] conf.storage, incoming, coord) [Tue Mar 13 14:05:41.876767 2018] [:error] [pid 49715] [remote 10.105.2.89:68] File "/usr/lib/python2.7/site-packages/gnocchi/storage/file.py", line 40, in __init__ [Tue Mar 13 14:05:41.876774 2018] [:error] [pid 49715] [remote 10.105.2.89:68] super(FileStorage, self).__init__(conf, incoming, coord) [Tue Mar 13 14:05:41.876778 2018] [:error] [pid 49715] [remote 10.105.2.89:68] File "/usr/lib/python2.7/site-packages/gnocchi/storage/_carbonara.py", line 72, in __init__ [Tue Mar 13 14:05:41.876786 2018] [:error] [pid 49715] [remote 10.105.2.89:68] utils.get_coordinator_and_start(conf.coordination_url)) [Tue Mar 13 14:05:41.876790 2018] [:error] [pid 49715] [remote 10.105.2.89:68] File "/usr/lib/python2.7/site-packages/gnocchi/utils.py", line 76, in get_coordinator_and_start [Tue Mar 13 14:05:41.876798 2018] [:error] [pid 49715] [remote 10.105.2.89:68] coord.start(start_heart=True) [Tue Mar 13 14:05:41.876802 2018] [:error] [pid 49715] [remote 10.105.2.89:68] File "/usr/lib/python2.7/site-packages/tooz/coordination.py", line 687, in start [Tue Mar 13 14:05:41.876810 2018] [:error] [pid 49715] [remote 10.105.2.89:68] super(CoordinationDriverWithExecutor, self).start(start_heart) [Tue Mar 13 14:05:41.876814 2018] [:error] [pid 49715] [remote 10.105.2.89:68] File "/usr/lib/python2.7/site-packages/tooz/coordination.py", line 423, in start [Tue Mar 13 14:05:41.876820 2018] [:error] [pid 49715] [remote 10.105.2.89:68] self._start() [Tue Mar 13 14:05:41.876824 2018] [:error] [pid 49715] [remote 10.105.2.89:68] File "/usr/lib/python2.7/site-packages/tooz/drivers/redis.py", line 447, in _start [Tue Mar 13 14:05:41.876833 2018] [:error] [pid 49715] [remote 10.105.2.89:68] self._server_info = self._client.info() [Tue Mar 13 14:05:41.876837 2018] [:error] [pid 49715] [remote 10.105.2.89:68] File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__ [Tue Mar 13 14:05:41.876845 2018] [:error] [pid 49715] [remote 10.105.2.89:68] self.gen.throw(type, value, traceback) [Tue Mar 13 14:05:41.876849 2018] [:error] [pid 49715] [remote 10.105.2.89:68] File "/usr/lib/python2.7/site-packages/tooz/drivers/redis.py", line 55, in _translate_failures [Tue Mar 13 14:05:41.876855 2018] [:error] [pid 49715] [remote 10.105.2.89:68] cause=e) [Tue Mar 13 14:05:41.876859 2018] [:error] [pid 49715] [remote 10.105.2.89:68] File "/usr/lib/python2.7/site-packages/tooz/utils.py", line 225, in raise_with_cause [Tue Mar 13 14:05:41.876866 2018] [:error] [pid 49715] [remote 10.105.2.89:68] excutils.raise_with_cause(exc_cls, message, args, *kwargs) [Tue Mar 13 14:05:41.876870 2018] [:error] [pid 49715] [remote 10.105.2.89:68] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 143, in raise_with_cause [Tue Mar 13 14:05:41.876878 2018] [:error] [pid 49715] [remote 10.105.2.89:68] six.raise_from(exc_cls(message, args, *kwargs), kwargs.get('cause')) [Tue Mar 13 14:05:41.876882 2018] [:error] [pid 49715] [remote 10.105.2.89:68] File "/usr/lib/python2.7/site-packages/six.py", line 718, in raise_from [Tue Mar 13 14:05:41.876889 2018] [:error] [pid 49715] [remote 10.105.2.89:68] raise value [Tue Mar 13 14:05:41.876901 2018] [:error] [pid 49715] [remote 10.105.2.89:68] ToozError: Protocol Error: H, TTP/1.1 400 Bad Request

Here my conf files: /etc/httpd/conf.d/gnocchi-api.conf Listen 8041 <virtualhost *:8041=""> WSGIDaemonProcess gnocchi processes=12 threads=4 user=gnocchi group=gnocchi WSGIProcessGroup gnocchi WSGIScriptAlias / /usr/lib/python2.7/site-packages/gnocchi/rest/app.wsgi WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On ErrorLog /var/log/httpd/gnocchi_wsgi_error.log CustomLog /var/log/httpd/gnocchi_wsgi_access.log combined

<directory/> Require all granted </directory>

/etc/gnocchi/gnocchi.conf [DEFAULT] [api] auth_mode = keystone [keystone_authtoken] auth_type = password auth_url = http://10.105.2.89:5000/v3 project_domain_name = Default user_domain_name = Default project_name = services username = gnocchi password = gnocchi.. interface = internalURL region_name = RegionOne [archive_policy] [cors] [database] backend = sqlalchemy [healthcheck] [incoming] [indexer] url = mysql+pymysql://gnocchi:GNOCCHI_DBPASS@10.105.2.89/gnocchi [metricd] [oslo_middleware] [oslo_policy] [statsd] [storage] coordination_url = redis://10.105.2.89:6379 file_basepath = /var/lib/gnocchi driver = file

/etc/aodh/aodh.conf rpc_backend = rabbit auth_strategy = keystone [database] connection = mysql+pymysql://aodh:AODH_DBPASS@10.105.2.89/aodh [keystone_authtoken] auth_uri = http://10.105.2.89:5000 auth_url = http://10.105.2.89:35357 memcached_servers = 10.105.2.89:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = aodh password = aodh.. rabbit_host = 10.105.2.89 rabbit_userid = guest rabbit_password = guest [service_credentials] auth_type = password auth_url = http://10.105.2.89:5000/v3 project_domain_name = default user_domain_name = default project_name = services username = aodh password = aodh.. interface = internalURL region_name = RegionOne

any idea?