nova instance actions don't have finish time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Low
|
Unassigned |
Bug Description
taget@taget-
+------
| Action | Request_ID | Message | Start_Time |
+------
| create | req-76bac38a-
| stop | req-6431b956-
| start | req-0da5a5d1-
+------
query from db , got the finish time is null.
mysql> select * from instance_actions;
+------
| created_at | updated_at | deleted_at | id | action | instance_uuid | request_id | user_id | project_id | start_time | finish_time | message | deleted |
+------
| 2015-03-05 06:42:31 | 2015-03-05 06:42:42 | NULL | 1 | create | 8e126d7b-
| 2015-03-05 06:50:07 | 2015-03-05 06:50:26 | NULL | 2 | create | a3f69c3c-
| 2015-03-05 08:08:26 | 2015-03-05 08:08:40 | NULL | 3 | stop | a3f69c3c-
| 2015-03-05 08:14:52 | 2015-03-05 08:14:53 | NULL | 4 | start | a3f69c3c-
+------
the reason is that we save the start_time in compute api layer and for some async operations we don't
have a chance to save the finish time.
but instance_
the finish time when instance action event exit , just like what instance_
Changed in nova: | |
assignee: | nobody → jichenjc (jichenjc) |
status: | New → Confirmed |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
assignee: | Eli Qiao (taget-9) → nobody |
status: | In Progress → Confirmed |
hi jichenjc, do you want to work on it or it's on your todo list ?
I'v got patch on this bug.