Activity log for bug #1260176

Date Who What changed Old value New value Message
2013-12-12 05:59:47 Lianhao Lu bug added bug
2013-12-12 07:21:56 Lianhao Lu description Currently, we see different user experience on different DB backend when creating alarms. On sqlalchemy, due to the foreign key constraints, an alarm can only be created if the corresponding user_id and project_id are existed in the DB, which means the alarm can NOT be created until a metering sample with the same user_id and project_id has been recorded in the DB. However, on mongoDB, there is no such restriction. The alarm can be created whenever the user wants. We should make different DB backends behave the same way. The question here is: which way we prefer for alarm creation, the sqlalchemy way or mongoDB way? Currently, we see different user experience on different DB backend when creating alarms. On sqlalchemy, due to the foreign key constraints, an alarm can only be created if the corresponding user_id and project_id are existed in the DB, which means the alarm can NOT be created until a metering sample with the same user_id and project_id has been recorded in the DB. However, on mongoDB, there is no such restriction. The alarm can be created whenever the user wants. We should make different DB backends behave the same way. method 1: drop sql foreign key constraints method 2: in sqlalchemy implementation of alarm creation, create new user_id/project_id, just like what we does now in record_metering_data.
2013-12-13 06:57:43 Lianhao Lu ceilometer: milestone icehouse-2
2013-12-13 06:57:43 Lianhao Lu ceilometer: assignee Lianhao Lu (lianhao-lu)
2014-01-07 03:45:49 OpenStack Infra ceilometer: status New In Progress
2014-01-22 15:22:55 Julien Danjou ceilometer: importance Undecided High
2014-01-22 15:22:57 Thierry Carrez ceilometer: milestone icehouse-2 icehouse-3
2014-01-25 00:09:50 OpenStack Infra ceilometer: status In Progress Fix Committed
2014-03-05 22:18:28 Thierry Carrez ceilometer: status Fix Committed Fix Released
2014-04-17 08:40:49 Thierry Carrez ceilometer: milestone icehouse-3 2014.1