use_syslog=True does not log to syslog via /dev/log anymore
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | OpenStack Compute (nova) |
Medium
|
Unassigned | ||
| | Juno |
Medium
|
Pádraig Brady | ||
| | oslo.log |
High
|
John Stanford | ||
| | nova (Ubuntu) |
Medium
|
Unassigned | ||
| | python-oslo.log (Ubuntu) |
High
|
Liang Chen | ||
Bug Description
python-oslo.log SRU:
[Impact]
* Nova services not able to write log to syslog
[Test Case]
* 1. Set use_syslog to True in nova.conf/
2. stop rsyslog service
3. restart nova/cinder services
4. restart rsyslog service
5. Log is not written to syslog after rsyslog is brought up.
[Regression Potential]
* none
Reproduced on:
https:/
/opt/stack/
/opt/stack/
/opt/stack/
/opt/stack/
How to reproduce:
Set
use_syslog=True
syslog_
for Openstack config files and restart processes inside their screens
Expected:
Openstack logs logged to syslog as well
Actual:
Nothing goes to syslog
| Changed in oslo.log: | |
| status: | New → Confirmed |
| Bogdan Dobrelya (bogdando) wrote : | #3 |
Which info is missing, please elaborate?
| Changed in oslo.log: | |
| status: | Incomplete → Confirmed |
| Bogdan Dobrelya (bogdando) wrote : | #4 |
Thanks Dmitry Mescheryakov for help, here is the root cause: https:/
/dev/log was missed by that change
| Bogdan Dobrelya (bogdando) wrote : | #5 |
Please return missed /dev/log https:/
| Bogdan Dobrelya (bogdando) wrote : | #6 |
Looks like /dev/log/ was removed by intentionally and this bug is invalid.
But I believe the commit 1188d88a73e75da
E.g. something like "/dev/log/ will not be used by Openstack services anymore due to portability reasons, please make sure syslog listens UDP:514 port in order to recieve logs from Openstack."
| summary: |
- use_syslog=True does not log to syslog + use_syslog=True does not log to syslog via /dev/log anymore |
| Changed in openstack-manuals: | |
| status: | New → Confirmed |
| Anne Gentle (annegentle) wrote : | #7 |
I think the best doc to place this in is the Cloud Administrator Guide.
| Changed in openstack-manuals: | |
| importance: | Undecided → Medium |
| Daniel Gauthier (gaud) wrote : | #8 |
I seem to have the same problem with cinder and nova . when those service have use_syslog set to True, nothing is sent to syslog even if rsyslog UDP:514 is accepting connection.
| J-PMethot (jpmethot) wrote : | #9 |
I understand that this "bug" is actually by design, for portability. However, it's not clear to me how openstack interacts with syslog instead of through /dev/log. Actually, from our tests, it seems to completely ignore the use_syslog=true now, just as the original report said.
I understand that this will be updated in the doc, but is there actually anything replacing the old way openstack used to interact with syslog? Or was there a conscious decision to drop syslog altogether?
| Bogdan Dobrelya (bogdando) wrote : | #10 |
I vote for return /dev/log and use another explicit ways to ensure portability as well. If ... else should do the job as well.
That 'drop' of /dev/log was not backwards compatible, for sure. Such changes first should go through a deprecation at least
| Sergey Vasilenko (xenolog) wrote : | #11 |
I vote for return /dev/log.
For portability will be better use if .. else statement.
| Changed in oslo.log: | |
| assignee: | nobody → Roman Podoliaka (rpodolyaka) |
| importance: | Undecided → High |
Fix proposed to branch: master
Review: https:/
| Changed in oslo.log: | |
| status: | Confirmed → In Progress |
Fix proposed to branch: master
Review: https:/
| Changed in oslo.log: | |
| assignee: | Roman Podoliaka (rpodolyaka) → Julien Danjou (jdanjou) |
| Tom Fifield (fifieldt) wrote : | #14 |
Docs Triage: Looks like was a bug that is being fixed in oslo, so removing manuals
| no longer affects: | openstack-manuals |
| Doug Hellmann (doug-hellmann) wrote : | #15 |
This was resolved in the incubated version of the logging code by https:/
| Bogdan Dobrelya (bogdando) wrote : | #16 |
@Doug, could you please elaborate, should the patches be contributed both to the main and incubated versions of Oslo.log?
Change abandoned by Roman Podoliaka (<email address hidden>) on branch: master
Review: https:/
| Doug Hellmann (doug-hellmann) wrote : | #18 |
@Bogdan, at this point the logging code has fully graduated to oslo.log. Following our process for dealing with graduated libraries, changes should happen first in openstack/oslo.log and then be backported to relevant stable branches in openstack/
Fix proposed to branch: master
Review: https:/
| Changed in oslo.log: | |
| assignee: | Julien Danjou (jdanjou) → John Stanford (e-john-6) |
| John Stanford (jxstanford) wrote : | #20 |
I just resubmitted Roman's change since the related portability ticket is still a work in progress, and it seems reasonable to treat portability as a separate issue from a commit that broke a working, if not portable, feature.
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2bf8164a908b51c
Author: John Stanford <email address hidden>
Date: Thu Feb 26 12:47:16 2015 -0800
Make use_syslog=True log to syslog via /dev/log
After upgrade from Icehouse to Juno OpenStack services don't log to
syslog via /dev/log anymore. This behaviour was introduced in commit
1188d88a73e
not a very portable default, breaking the backwards compatibility is
even worse.
This commit restores the original behaviour. /dev/log portability
issues will be addressed separately.
Closes-Bug: #1385295
Related-Bug: #1391428
Change-Id: I5c450595fde745
| Changed in oslo.log: | |
| status: | In Progress → Fix Committed |
| Changed in oslo.log: | |
| milestone: | none → 1.0.0 |
| status: | Fix Committed → Fix Released |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit 33f5c6f94d94d54
Author: Julien Danjou <email address hidden>
Date: Mon Nov 24 18:35:36 2014 +0100
Replace RFCSysLogHandler by a syslog() based one
Rather than using the Python provided logging module that reimplents the
whole syslog protocol and pointing it to /dev/log (which is not
portable), we use the system calls from the syslog module, which are
portable and default to the behaviour we actually want.
Closes-Bug: 1385295
Closes-Bug: 1391428
Change-Id: I39a36316bd8778
| description: | updated |
| description: | updated |
Fix proposed to branch: stable/kilo
Review: https:/
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 9a6c22663b57b7f
Author: Julien Danjou <email address hidden>
Date: Mon Nov 24 18:35:36 2014 +0100
Replace RFCSysLogHandler by a syslog() based one
Rather than using the Python provided logging module that reimplents the
whole syslog protocol and pointing it to /dev/log (which is not
portable), we use the system calls from the syslog module, which are
portable and default to the behaviour we actually want.
Closes-Bug: 1385295
Closes-Bug: 1391428
Partial-Bug: 1459046
(cherry picked from commit 33f5c6f94d94d54
Conflicts:
oslo_
requiremen
Change-Id: I2e47c896841cbd
| tags: | added: in-stable-kilo |
| description: | updated |
| Liang Chen (cbjchen) wrote : | #26 |
| Changed in python-oslo.log (Ubuntu): | |
| assignee: | nobody → Liang Chen (cbjchen) |
The attachment "vivid-kilo patch for python-oslo.log" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]
| tags: | added: patch |
| Pádraig Brady (p-draigbrady) wrote : | #28 |
Fix proposed for nova Juno stable
https:/
| Changed in nova (Ubuntu): | |
| status: | New → In Progress |
| Changed in cinder (Ubuntu): | |
| importance: | Undecided → Medium |
| Changed in nova (Ubuntu): | |
| importance: | Undecided → Medium |
| Changed in cinder (Ubuntu): | |
| status: | New → Invalid |
| Changed in nova (Ubuntu): | |
| status: | In Progress → Invalid |
| Changed in python-oslo.log (Ubuntu): | |
| importance: | Undecided → High |
| status: | New → In Progress |
| Chris J Arges (arges) wrote : | #29 |
For Ubuntu, Can you rebase this patch on the latest version of oslo.log? When done please re-subscribe sponsors.
| affects: | nova (Ubuntu) → nova |
| George Shuklin (george-shuklin) wrote : | #30 |
I think this patch is not merged to Juno https:/
| George Shuklin (george-shuklin) wrote : | #31 |
Sorry, My bad. I didn't saw merge message.
| affects: | cinder (Ubuntu) → nova (Ubuntu) |
| Chuck Short (zulcss) wrote : | #32 |
This should be fixed now.
| Changed in python-oslo.log (Ubuntu): | |
| status: | In Progress → Fix Released |
This issue was fixed in the openstack/oslo.log 1.0.0 release.

use_use=True <-- typo?