When updating time_to_live, index is not recreated when using mongodb
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When updating time_to_live, index is not dropped/recreated when using mongodb ...
output of getIndexes():
{
"v" : 1,
},
},
#:/etc/ceilometer# grep time_to_live ceilometer.conf
time_to_
According to this chunk of code, it should have been dropped/recreated (unless I'm wrong here):
indexes = self.db.
ttl = cfg.CONF.
if ttl <= 0:
if 'meter_ttl' in indexes:
return
if 'meter_ttl' in indexes:
# NOTE(sileht): manually check expireAfterSeconds because
# ensure_index doesn't update index options if the index already
# exists
if ttl == indexes[
)
1. have you restarted any database related service? such as ceilometer-api, ceilometer- collector?
2. are you using different config file for different service? in such case, are the config file's ttl value same?
3. which mongodb version are you using?