error thrown from poewrvc neutron agent

Bug #1373416 reported by Terry Yao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
powervc-driver
Fix Committed
Undecided
Unassigned

Bug Description

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to powervc-driver (master)

Reviewed: https://review.openstack.org/123728
Committed: https://git.openstack.org/cgit/stackforge/powervc-driver/commit/?id=d82a609c65892b9f7e319a6b91f835535732d808
Submitter: Jenkins
Branch: master

commit d82a609c65892b9f7e319a6b91f835535732d808
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
    oslo-incubate as nova's level, there is no isEnabledFor at this time in
    neutron openstack.common.log.

    Closes-Bug: #1373416
    Change-Id: I1abda8017f55785e807d20dfa4d574c0a7016f60

Changed in powervc-driver:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.