glance-registry process spins if rsyslog restarted with syslog logging enabled
| Affects | Status | Importance | Assigned to | Milestone | ||
|---|---|---|---|---|---|---|
| glance (Ubuntu) | ||||||
| | Trusty |
Undecided
|
Unassigned | |||
| | Utopic |
Undecided
|
Unassigned | |||
| | Vivid |
Undecided
|
Unassigned | |||
| | Wily |
Undecided
|
Unassigned | |||
| | python-eventlet (Ubuntu) |
High
|
Unassigned | |||
| | Trusty |
High
|
Unassigned | |||
| | Utopic |
High
|
Unassigned | |||
| | Vivid |
High
|
Unassigned | |||
| | Wily |
High
|
Unassigned | |||
Bug Description
[Impact]
Glance, when configured to log to syslog, will spin consuming 100% cpu if syslog is restarted, locking all function.
[Test Case]
Install OpenStack Glance as part of a OpenStack Cloud
Configure to log to syslog
Restart syslog (sudo service rsyslog restart)
[Regression Potential]
Minimal - disconnected sockets are added to the list of types to re-raise exceptions for.
[Original Bug Report]
When configured to log to syslog, if the rsyslog process is restarted, then the glance-registry process goes into a spin, consuming 100% of CPU - strace:
poll([{fd=3, events=
sendto(3, "<14>2015-05-06 14:58:16.186 2579"..., 112, 0, NULL, 0) = -1 ENOTCONN (Transport endpoint is not connected)
gettimeofday(
poll([{fd=3, events=
sendto(3, "<14>2015-05-06 14:58:16.186 2579"..., 112, 0, NULL, 0) = -1 ENOTCONN (Transport endpoint is not connected)
This maybe related to bug 1081022 but that should have only impacted 12.04 deployments.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: glance-registry 1:2014.1.4-0ubuntu2
ProcVersionSign
Uname: Linux 3.13.0-51-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.10
Architecture: amd64
Date: Wed May 6 15:00:00 2015
Ec2AMI: ami-00000350
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.small.osci
Ec2Kernel: aki-00000002
Ec2Ramdisk: ari-00000002
PackageArchitec
SourcePackage: glance
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
modified.
| James Page (james-page) wrote : | #1 |
| James Page (james-page) wrote : | #2 |
| James Page (james-page) wrote : | #3 |
Raising a task for eventlet as this appears to be related to https:/
| Launchpad Janitor (janitor) wrote : | #4 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in glance (Ubuntu): | |
| status: | New → Confirmed |
| Changed in python-eventlet (Ubuntu): | |
| status: | New → Confirmed |
| James Page (james-page) wrote : | #6 |
I'm reticent to pull in the patch detail in #3 as this is not upstream - the codebase in the master branch is fundamentally the same as that found in eventlet in 14.04.
| Changed in python-eventlet (Ubuntu): | |
| importance: | Undecided → High |
| Changed in glance (Ubuntu): | |
| importance: | Undecided → High |
| no longer affects: | glance (Ubuntu) |
| Changed in glance (Ubuntu Trusty): | |
| status: | New → Invalid |
| Changed in glance (Ubuntu Utopic): | |
| status: | New → Invalid |
| Changed in glance (Ubuntu Vivid): | |
| status: | New → Invalid |
| Changed in glance (Ubuntu Wily): | |
| status: | Confirmed → Invalid |
| Changed in python-eventlet (Ubuntu Trusty): | |
| status: | New → Confirmed |
| importance: | Undecided → High |
| Changed in python-eventlet (Ubuntu Wily): | |
| status: | Confirmed → New |
| Changed in python-eventlet (Ubuntu Vivid): | |
| importance: | Undecided → High |
| Changed in python-eventlet (Ubuntu Utopic): | |
| importance: | Undecided → High |
| Changed in glance (Ubuntu Wily): | |
| importance: | High → Undecided |
| James Page (james-page) wrote : | #7 |
Also confirmed with kilo - using eventlet 0.16.0
| Changed in python-eventlet (Ubuntu Vivid): | |
| status: | New → Confirmed |
| Changed in python-eventlet (Ubuntu Wily): | |
| status: | New → Confirmed |
| James Page (james-page) wrote : | #9 |
| Changed in python-eventlet (Ubuntu Utopic): | |
| status: | New → Confirmed |
| description: | updated |
Hello James, or anyone else affected,
Accepted python-eventlet into trusty-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in python-eventlet (Ubuntu Trusty): | |
| status: | Confirmed → Fix Committed |
| tags: | added: verification-needed |
| Changed in python-eventlet (Ubuntu Utopic): | |
| status: | Confirmed → Fix Committed |
| Chris J Arges (arges) wrote : | #11 |
Hello James, or anyone else affected,
Accepted python-eventlet into utopic-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in python-eventlet (Ubuntu Vivid): | |
| status: | Confirmed → Fix Committed |
| Chris J Arges (arges) wrote : | #12 |
Hello James, or anyone else affected,
Accepted python-eventlet into vivid-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Stuart McLaren (stuart-mclaren) wrote : | #13 |
Note that this behaviour was originally reported here:
| Launchpad Janitor (janitor) wrote : | #14 |
This bug was fixed in the package python-eventlet - 0.17.3-2ubuntu2
---------------
python-eventlet (0.17.3-2ubuntu2) wily; urgency=medium
* d/p/handle-
raised correctly, resolving issues with disconnected syslog sockets
in OpenStack Glance (LP: #1452312).
-- James Page <email address hidden> Tue, 26 May 2015 16:45:17 +0100
| Changed in python-eventlet (Ubuntu Wily): | |
| status: | Confirmed → Fix Released |
| George Shuklin (george-shuklin) wrote : | #15 |
Hello.
I can't see update nor in trusty-updates nor in trusty-
| Edward Hope-Morley (hopem) wrote : | #16 |
@george-shuklin the package will remain in trusty-proposed until it has been verified. If you want to help test this package please enable the proposed pocket in your /etc/apt/
| Seyeong Kim (xtrusia) wrote : | #17 |
0. set up keystone, glance
1. stop rsyslogd while glance-api, registry is running
2. run comamnd "glance image-list"
3. CPU usage is getting high
trusty
ii python-eventlet 0.13.0-1ubuntu2.2 all concurrent networking library for Python
utopic
ii python-eventlet 0.13.0-1ubuntu3.3 all concurrent networking library for Python
vivid
ii python-eventlet 0.16.1-0ubuntu1.1 all concurrent networking library - Python 2.x
| tags: |
added: verification-done removed: verification-needed |
| George Shuklin (george-shuklin) wrote : | #18 |
@hopem, We've running on this (proposed) code for few weeks already, works fine.
| Launchpad Janitor (janitor) wrote : | #19 |
This bug was fixed in the package python-eventlet - 0.13.0-1ubuntu2.2
---------------
python-eventlet (0.13.0-1ubuntu2.2) trusty; urgency=medium
* d/p/handle-
raised correctly, resolving issues with disconnected syslog sockets
in OpenStack Glance (LP: #1452312).
-- James Page <email address hidden> Tue, 26 May 2015 17:22:24 +0100
| Changed in python-eventlet (Ubuntu Trusty): | |
| status: | Fix Committed → Fix Released |
| Chris J Arges (arges) wrote : Update Released | #20 |
The verification of the Stable Release Update for python-eventlet has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
| Launchpad Janitor (janitor) wrote : | #21 |
This bug was fixed in the package python-eventlet - 0.13.0-1ubuntu3.3
---------------
python-eventlet (0.13.0-1ubuntu3.3) utopic; urgency=medium
* d/p/handle-
raised correctly, resolving issues with disconnected syslog sockets
in OpenStack Glance (LP: #1452312).
-- James Page <email address hidden> Tue, 26 May 2015 17:20:06 +0100
| Changed in python-eventlet (Ubuntu Utopic): | |
| status: | Fix Committed → Fix Released |
| Launchpad Janitor (janitor) wrote : | #22 |
This bug was fixed in the package python-eventlet - 0.16.1-0ubuntu1.1
---------------
python-eventlet (0.16.1-0ubuntu1.1) vivid; urgency=medium
* d/p/handle-
raised correctly, resolving issues with disconnected syslog sockets
in OpenStack Glance (LP: #1452312).
-- James Page <email address hidden> Tue, 26 May 2015 17:28:40 +0100
| Changed in python-eventlet (Ubuntu Vivid): | |
| status: | Fix Committed → Fix Released |


Using the reproducer on bug 1081022 would indicate that this is something different, as the installation does not exhibit quite the same issue.