2019-05-16 13:51:41 |
Joshua Lyle |
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) |
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) |
|