Failure to insert image documents containing tags with . or $
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Medium
|
Igor Degtiarov |
Bug Description
Savanna [Glance] image tags require a Hadoop version for determing the correct base image to suggest for launching a cluster. These tags if they contain special charaters (most noteably '.') cause issue with the MongoDB that Ceilometer uses. Currently, I have hacked the image tag information to sub all special charaters to '_', and will submit this as a bug if that is the next step for this question.
The details are: once an image is inserted in Glance, Ceilometer starts collecting meters about the image. In the details that it collects about the image are all its properties. Ceilometer stores the meters in MongoDB. If a property name (not value) has a dot and/or dollar symbol in it, as you saw in case of Savanna, the insert of the meter into MongoDB fails.
Below is a document (called meter) that Ceilometer tries to insert into MongoDB for an image. Notice that it is a recursive set of key, value pairs, and in the hierarchy path resource_
Actually any meter (not just for Glance images) that have a key name containing a dot or dollar will not get in to MongoDB. But, OS services themselves (like Glance) may accept key names with dots and dollars. That is the crux of the issue. The only way to solve it to not have property names with the forbidden MongoDB characters.
{
'counter_
'user_id': None,
'message_
'timestamp': datetime.
'resource_id': '28cf4ad9-
'message_id': '5e32cef6-
'source': 'openstack',
'counter_
'counter_
'project_id': 'f1e1f2f638e546
'resource_
'status': 'active',
'name': 'XXX.image',
},
'size': 729067520
},
'counter_
}
Changed in ceilometer: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in fuel: | |
assignee: | nobody → MOS Ceilometer (mos-ceilometer) |
Changed in ceilometer: | |
milestone: | none → kilo-1 |
assignee: | nobody → Igor Degtiarov (idegtiarov) |
status: | Triaged → In Progress |
Changed in ceilometer: | |
status: | Fix Committed → Fix Released |
Changed in ceilometer: | |
milestone: | kilo-1 → 2015.1.0 |
This comes from stonesb1 in https:/ /answers. launchpad. net/savanna/ +question/ 238324