Re: [openstack-dev] [Ceilometer] Complex resource_metadata could fail to store in MongoDB

2014-09-12 Thread Igor Degtiarov
Hi! After some local discussions with Dmitiy Uklov we have found solution. To solve the problem with dots inside keys in metadata dictionary we propose to reconstruct it before storing in MongoDB. Ex. If we get metadata: {'a.s.d': 'v'} it could be stored in MongoDB after a reconstruction

Re: [openstack-dev] [Ceilometer] Complex resource_metadata could fail to store in MongoDB

2014-09-08 Thread Igor Degtiarov
On Thu, Sep 4, 2014 at 1:16 PM, Nadya Privalova nprival...@mirantis.com wrote: IMHO it's ok and even very natural to expect escaped query from users. e.g, we store the following structure {metadata: { Zoo: {Foo.Boo: ''value}}} Yep but

[openstack-dev] [Ceilometer] Complex resource_metadata could fail to store in MongoDB

2014-08-29 Thread Igor Degtiarov
Hi, folks. I was interested in the problem with storing of samples, that contain complex resource_metadata, in MongoDB database [1]. If data is a dict that has a key(s) with dots (i.e. .), dollar signs (i.e. $), or null characters, it wouldn't be stored. It is happened because these characters