wrong key "router.interface" reported by ceilometer log

Bug #1310460 reported by Li Ma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Li Ma
Icehouse
Fix Released
Undecided
Unassigned

Bug Description

In my testbed, ceilometer throws an exception which is caused by the wrong key format of neutron:

2014-04-01 10:52:39.135 6104 ERROR notification [-] Insert msg to Mongodb occured error:Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ceilometer/billing/backend.py", line 74, in insert_data
    self.db[collection].insert(data, safe=True)
  File "/usr/lib64/python2.6/site-packages/pymongo/collection.py", line 357, in insert
    continue_on_error, self.__uuid_subtype), safe)
InvalidDocument: key 'router.interface' must not contain '.'

It seems that mongodb doesn't support "." in key.

The workaround is to change "." with "_" in l3_db.py.

Li Ma (nick-ma-z)
Changed in neutron:
assignee: nobody → Li Ma (nick-ma-z)
description: updated
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/90299

Changed in neutron:
status: New → In Progress
Li Ma (nick-ma-z)
description: updated
Kyle Mestery (mestery)
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/90299
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=7811c8a8ffce78dc14815203858854c450f1c8f6
Submitter: Jenkins
Branch: master

commit 7811c8a8ffce78dc14815203858854c450f1c8f6
Author: Li Ma <email address hidden>
Date: Fri Apr 25 00:24:57 2014 -0700

    Wrong key router.interface reported by ceilometer

    Ceilometer with MongoDB doesn't accept the key with dot.

    The dot in 'router.interface' should be replaced with '_',
    which is also the standard implementation of other keys in neutron.

    Change-Id: If7fcf7658db9ee2d7d1248bb0b016b4389c32c77
    Closes-Bug: #1310460

Changed in neutron:
status: In Progress → Fix Committed
Kyle Mestery (mestery)
Changed in neutron:
milestone: none → juno-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (stable/icehouse)

Related fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/95634

Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-1 → 2014.2
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.