Juno glance spins with use_syslog=True

Bug #1422317 reported by Mark Goddard
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Invalid
Undecided
Unassigned
Juno
Triaged
High
Unassigned

Bug Description

With syslog enabled on Juno (use_syslog=True in glance-api.conf), glance spins on startup, consuming all available CPU cycles.

With some carefully placed calls to exit(), the line in glance causing the problem was determined to be https://github.com/openstack/glance/blob/stable/juno/glance/openstack/common/log.py#L523. After this point the code gets lost in logging.handlers.SyslogHandler().

I noticed that the <component>.openstack.common.log source file was somewhat different in glance compared to several other OpenStack components. An update to glance.openstack.common missed the juno branch by a couple of commits https://github.com/openstack/glance/commit/d4f890798a0588a80e21fad044d4df5d0964dc70. Cherry picking this commit fixed the issue for me.

Revision history for this message
Louis Taylor (kragniz) wrote :

This should be fixed when glance moves to oslo_log. Work in progress patch: https://review.openstack.org/#/c/149344/

Revision history for this message
Mark Goddard (mgoddard) wrote :

Ok, that's good to hear. Will the change be applied to stable/juno? If not, should we apply the commit listed above as a cherry pick from master?

Revision history for this message
Mark Goddard (mgoddard) wrote :

Apologies, the actual config option is use_syslog, rather than enable_syslog.

description: updated
Revision history for this message
Ian Cordasco (icordasc) wrote :

The switch to oslo_log from glance/openstack/common/log.py is not going to be backported to stable/juno, no. This is definitely something I have heard of people encountering before (and I'm frankly surprised there wasn't already a bug for it).

Changed in glance:
status: New → Triaged
importance: Undecided → High
status: Triaged → Invalid
importance: High → Undecided
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.