AttributeError: ContextAdapter instance has no attribute 'isEnabledFor' with python 2.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Matt Riedemann | ||
oslo-incubator |
Fix Released
|
Undecided
|
Joshua Harlow |
Bug Description
Running tempest against juno code on RHEL 6.5 (python 2.6), I'm seeing this in the cinder-volume logs:
I'm seeing several warnings from the taskflow code in the cinder volume log:
2014-07-17 02:36:27.703 57746 WARNING taskflow.utils.misc [req-b459108b-
2014-07-17 02:36:27.703 57746 TRACE taskflow.utils.misc Traceback (most recent call last):
2014-07-17 02:36:27.703 57746 TRACE taskflow.utils.misc File "/usr/lib/
2014-07-17 02:36:27.703 57746 TRACE taskflow.utils.misc callback(
2014-07-17 02:36:27.703 57746 TRACE taskflow.utils.misc File "/usr/lib/
2014-07-17 02:36:27.703 57746 TRACE taskflow.utils.misc if (self._
2014-07-17 02:36:27.703 57746 TRACE taskflow.utils.misc AttributeError: ContextAdapter instance has no attribute 'isEnabledFor'
2014-07-17 02:36:27.703 57746 TRACE taskflow.utils.misc
This is basically the same issue as keystone bug 1213284.
It looks like a limitation with logging in python 2.6.
We could just add isEnabledFor to the oslo log ContextAdapter in py26 for now to delegate to logger.isEnabledFor or punt (return False) until this is all moving to the server projects with oslo.log:
https:/
Changed in oslo: | |
assignee: | nobody → Joshua Harlow (harlowja) |
status: | New → In Progress |
Changed in cinder: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in oslo-incubator: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | juno-3 → 2014.2 |
Related fix here: https:/ /review. openstack. org/#/c/ 107809/