Vitrage fails after adding support to sqlalchemy

Bug #1718484 reported by Alfredo Moralejo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-vitrage
New
Undecided
Unassigned

Bug Description

https://review.openstack.org/#/c/504917/ has introduced sqlalchemy support to database backend which requires some additional configuration not included in puppet-vitrage. This is making jobs to fail with following error:

[Wed Sep 20 10:38:35.630845 2017] [:error] [pid 13855] [remote ::1:168] mod_wsgi (pid=13855): Target WSGI script '/var/www/cgi-bin/vitrage/app' cannot be loaded as Python module.
[Wed Sep 20 10:38:35.631734 2017] [:error] [pid 13855] [remote ::1:168] mod_wsgi (pid=13855): Exception occurred processing WSGI script '/var/www/cgi-bin/vitrage/app'.
[Wed Sep 20 10:38:35.631766 2017] [:error] [pid 13855] [remote ::1:168] Traceback (most recent call last):
[Wed Sep 20 10:38:35.631789 2017] [:error] [pid 13855] [remote ::1:168] File "/var/www/cgi-bin/vitrage/app", line 23, in <module>
[Wed Sep 20 10:38:35.631819 2017] [:error] [pid 13855] [remote ::1:168] application = app.load_app(conf)
[Wed Sep 20 10:38:35.631827 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/vitrage/api/app.py", line 73, in load_app
[Wed Sep 20 10:38:35.632655 2017] [:error] [pid 13855] [remote ::1:168] global_conf={'configkey': configkey})
[Wed Sep 20 10:38:35.632669 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
[Wed Sep 20 10:38:35.633612 2017] [:error] [pid 13855] [remote ::1:168] return loadobj(APP, uri, name=name, **kw)
[Wed Sep 20 10:38:35.633630 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
[Wed Sep 20 10:38:35.633647 2017] [:error] [pid 13855] [remote ::1:168] return context.create()
[Wed Sep 20 10:38:35.633654 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Wed Sep 20 10:38:35.633663 2017] [:error] [pid 13855] [remote ::1:168] return self.object_type.invoke(self)
[Wed Sep 20 10:38:35.633669 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
[Wed Sep 20 10:38:35.633677 2017] [:error] [pid 13855] [remote ::1:168] **context.local_conf)
[Wed Sep 20 10:38:35.633682 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
[Wed Sep 20 10:38:35.646563 2017] [:error] [pid 13855] [remote ::1:168] val = callable(*args, **kw)
[Wed Sep 20 10:38:35.646600 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/paste/urlmap.py", line 25, in urlmap_factory
[Wed Sep 20 10:38:35.647418 2017] [:error] [pid 13855] [remote ::1:168] app = loader.get_app(app_name, global_conf=global_conf)
[Wed Sep 20 10:38:35.647436 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 350, in get_app
[Wed Sep 20 10:38:35.647454 2017] [:error] [pid 13855] [remote ::1:168] name=name, global_conf=global_conf).create()
[Wed Sep 20 10:38:35.647461 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Wed Sep 20 10:38:35.647479 2017] [:error] [pid 13855] [remote ::1:168] return self.object_type.invoke(self)
[Wed Sep 20 10:38:35.647485 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 203, in invoke
[Wed Sep 20 10:38:35.647494 2017] [:error] [pid 13855] [remote ::1:168] app = context.app_context.create()
[Wed Sep 20 10:38:35.647507 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Wed Sep 20 10:38:35.647515 2017] [:error] [pid 13855] [remote ::1:168] return self.object_type.invoke(self)
[Wed Sep 20 10:38:35.647520 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
[Wed Sep 20 10:38:35.647527 2017] [:error] [pid 13855] [remote ::1:168] return fix_call(context.object, context.global_conf, **context.local_conf)
[Wed Sep 20 10:38:35.647532 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
[Wed Sep 20 10:38:35.647540 2017] [:error] [pid 13855] [remote ::1:168] val = callable(*args, **kw)
[Wed Sep 20 10:38:35.647545 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/vitrage/api/app.py", line 100, in app_factory
[Wed Sep 20 10:38:35.647554 2017] [:error] [pid 13855] [remote ::1:168] return setup_app(root=local_conf.get('root'), **appconfig)
[Wed Sep 20 10:38:35.647559 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/vitrage/api/app.py", line 43, in setup_app
[Wed Sep 20 10:38:35.647567 2017] [:error] [pid 13855] [remote ::1:168] hooks.DBHook(conf)]
[Wed Sep 20 10:38:35.647572 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/vitrage/api/hooks.py", line 83, in __init__
[Wed Sep 20 10:38:35.648356 2017] [:error] [pid 13855] [remote ::1:168] self.storage = storage.get_connection_from_config(conf)
[Wed Sep 20 10:38:35.648372 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib/python2.7/site-packages/vitrage/storage/__init__.py", line 32, in get_connection_from_config
[Wed Sep 20 10:38:35.654158 2017] [:error] [pid 13855] [remote ::1:168] connection_scheme = urlparse.urlparse(url).scheme
[Wed Sep 20 10:38:35.654174 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib64/python2.7/urlparse.py", line 142, in urlparse
[Wed Sep 20 10:38:35.655258 2017] [:error] [pid 13855] [remote ::1:168] tuple = urlsplit(url, scheme, allow_fragments)
[Wed Sep 20 10:38:35.655275 2017] [:error] [pid 13855] [remote ::1:168] File "/usr/lib64/python2.7/urlparse.py", line 181, in urlsplit
[Wed Sep 20 10:38:35.655293 2017] [:error] [pid 13855] [remote ::1:168] i = url.find(':')
[Wed Sep 20 10:38:35.655309 2017] [:error] [pid 13855] [remote ::1:168] AttributeError: 'NoneType' object has no attribute 'find'

Full log in:

https://centos.logs.rdoproject.org/weirdo-generic-puppet-openstack-scenario001/2963/weirdo-project/logs/apache/vitrage_wsgi_error_ssl.txt.gz

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers