Journald dependencies not installed correctly for Glance OSA role

Bug #1828319 reported by Joshua Lyle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Unassigned

Bug Description

Journald is not able to be enabled for glance-api or able to be enabled with use_journal = True in /etc/glance/glance-api.conf. This is because there are no python journald bindings installed in the /openstack/venvs/glance-18.1.7.dev7 virtual environment.

The fix required running pip install systemd-python inside of the /openstack/venvs/glance-18.1.7.dev7 virtual environment to enable the systemd bindings and allow glance-api to correctly write to journald

Running head of stable/rocky at commit cf776e29a383fb7779858068369d3dfc4794141c

Running 1 infra node, 6 compute nodes, all on Ubuntu 18.04

The error that shows comes from uwsgi not being able to start glance-api after trying to enable systemd-journald journaling

May 8 20:25:30 computer uwsgi[xxxxx]: Traceback (most recent call last):
May 8 20:25:30 computer uwsgi[xxxxx]: File "/openstack/venvs/glance-18.1.7.dev7/bin/glance-wsgi-api", line 54, in <module>
May 8 20:25:30 computer uwsgi[xxxxx]: application = init_app()
May 8 20:25:30 computer uwsgi[xxxxx]: File "/openstack/venvs/glance-18.1.7.dev7/lib/python2.7/site-packages/glance/common/wsgi_app.py", line 63, in init_app
May 8 20:25:30 computer uwsgi[xxxxx]: logging.setup(CONF, "glance")
May 8 20:25:30 computer uwsgi[xxxxx]: File "/openstack/venvs/glance-18.1.7.dev7/lib/python2.7/site-packages/oslo_log/log.py", line 264, in setup
May 8 20:25:30 computer uwsgi[xxxxx]: _setup_logging_from_conf(conf, product_name, version)
May 8 20:25:30 computer uwsgi[xxxxx]: File "/openstack/venvs/glance-18.1.7.dev7/lib/python2.7/site-packages/oslo_log/log.py", line 361, in _setup_logging_from_conf
May 8 20:25:30 computer uwsgi[xxxxx]: journal = handlers.OSJournalHandler()
May 8 20:25:30 computer uwsgi[xxxxx]: File "/openstack/venvs/glance-18.1.7.dev7/lib/python2.7/site-packages/oslo_log/handlers.py", line 114, in __init__
May 8 20:25:30 computer uwsgi[xxxxx]: raise RuntimeError("Systemd bindings do not exist")
May 8 20:25:30 computer uwsgi[xxxxx]: RuntimeError: Systemd bindings do not exist
May 8 20:25:30 computer uwsgi[xxxxx]: unable to load app 0 (mountpoint='') (callable not found or import error)

description: updated
Revision history for this message
Dmitriy Rabotyagov (noonedeadpunk) wrote :

This has been fixed in train with https://review.opendev.org/#/c/670890/

Changed in openstack-ansible:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.