while a neutron event coming, now you will see:
2014-09-24 03:44:26.236 28518 ERROR powervc.neutron.client.powervc_bindings [-] Error handling 'INFO' level 'network.create.end' type message '{u'network': {u'status': u'ACTIVE', u'subnets': [], u'name': u'Imported Network for VLAN 1 - ETHERNET0(Default)', u'provider:physical_network': u'default', u'admin_state_up': True, u'tenant_id': u'1766381f0e0c4075af55d6051e0e7272', u'provider:network_type': u'vlan', u'shared': False, u'id': u'6361b585-9fe8-4782-ae22-8014519e2dca', u'provider:segmentation_id': 1}}'.
2014-09-24 03:44:26.236 28518 TRACE powervc.neutron.client.powervc_bindings Traceback (most recent call last):
2014-09-24 03:44:26.236 28518 TRACE powervc.neutron.client.powervc_bindings File "/opt/ibm/openstack/powervc-driver/powervc/common/messaging.py", line 82, in _dispatch
2014-09-24 03:44:26.236 28518 TRACE powervc.neutron.client.powervc_bindings if self._log and self._log.isEnabledFor('INFO'):
2014-09-24 03:44:26.236 28518 TRACE powervc.neutron.client.powervc_bindings AttributeError: ContextAdapter instance has no attribute 'isEnabledFor'
2014-09-24 03:44:26.236 28518 TRACE powervc.neutron.client.powervc_bindings
This is due to the code is using log.isEnabledFor() but neutron does not update oslo-incubate for the log utility, and in current neutron.openstack.common.log, there is not isEanabledFor
Reviewed: https:/ /review. openstack. org/123728 /git.openstack. org/cgit/ stackforge/ powervc- driver/ commit/ ?id=d82a609c658 92b9f7e319a6b91 f835535732d808
Committed: https:/
Submitter: Jenkins
Branch: master
commit d82a609c65892b9 f7e319a6b91f835 535732d808
Author: Terry Yao <email address hidden>
Date: Wed Sep 24 21:26:45 2014 +0800
Remove the log.isEnabledFor check as neutron log is not support yet
Remove the log.isEnabledFor in message.py as neutron does not sync the common. log.
oslo-incubate as nova's level, there is no isEnabledFor at this time in
neutron openstack.
Closes-Bug: #1373416 5e807d20dfa4d57 4c0a7016f60
Change-Id: I1abda8017f5578