Cinder service not logging exceptions from stevedore library
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
Huang Zhiteng |
Bug Description
After upgrading my cinder-scheduler service, I tried to create a volume and got the following exception
2013-02-21 17:51:29.538 WARNING cinder.
2013-02-21 17:51:29.571 1362 ERROR cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
2013-02-21 17:51:29.571 1362 TRACE cinder.
This however wasn't the real exception being thrown. The real exception was in the python-stevedore lib but because the cinder scheduler service was ignoring the log from this library it never got printed to log.
I'd edited the following line to get cinder to handle the stevedore logs and got the real exception
import logging
- LOG = logging.
+ LOG = logging.
After change:
2013-02-21 18:05:51.050 13533 ERROR cinder.
2013-02-21 18:05:51.050 13533 ERROR cinder.
2013-02-21 18:05:51.050 13533 TRACE cinder.
2013-02-21 18:05:51.050 13533 TRACE cinder.
2013-02-21 18:05:51.050 13533 TRACE cinder.
2013-02-21 18:05:51.050 13533 TRACE cinder.
2013-02-21 18:05:51.050 13533 TRACE cinder.
2013-02-21 18:05:51.050 13533 TRACE cinder.
2013-02-21 18:05:51.050 13533 TRACE cinder.
2013-02-21 18:05:51.050 13533 TRACE cinder.
2013-02-21 18:05:51.050 13533 TRACE cinder.
2013-02-21 18:05:51.050 13533 TRACE cinder.
2013-02-21 18:05:51.050 13533 TRACE cinder.
2013-02-21 18:05:51.050 13533 TRACE cinder.
2013-02-21 18:05:51.050 13533 TRACE cinder.
Changed in cinder: | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → grizzly-rc1 |
Changed in cinder: | |
assignee: | nobody → John Griffith (john-griffith) |
Changed in cinder: | |
assignee: | John Griffith (john-griffith) → Huang Zhiteng (zhiteng-huang) |
Changed in cinder: | |
milestone: | grizzly-rc1 → none |
Changed in cinder: | |
milestone: | none → grizzly-rc2 |
Changed in cinder: | |
milestone: | grizzly-rc2 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/24289
Review: https:/