← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1310460] [NEW] wrong key "router.interface" reported by ceilometer log

 

Public bug reported:

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.

A simple and straightforward workaround is to change "." with "_" in
l3_db.py.

** Affects: neutron
     Importance: Undecided
     Assignee: Li Ma (nick-ma-z)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Li Ma (nick-ma-z)

** Description changed:

- In my testbed, ceilometer throws an exception which is caused wrong key
- format of neutron:
+ 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)
+   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.
  
  A simple and straightforward workaround is to change "." with "_" in
  l3_db.py.

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1310460

Title:
  wrong key "router.interface" reported by ceilometer log

Status in OpenStack Neutron (virtual network service):
  New

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.

  A simple and straightforward workaround is to change "." with "_" in
  l3_db.py.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1310460/+subscriptions


Follow ups

References