wrong values for timestamp are stored in action table
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
senlin |
Fix Released
|
Medium
|
Duc Truong |
Bug Description
start_time and end_time for actions are stored as FLOAT(24,8) in the DB (https:/
E.g.:
mysql> create database test;
Query OK, 1 row affected (0.00 sec)
mysql> use test;
Database changed
mysql> create table test1 (id INT, time FLOAT(24,8));
Query OK, 0 rows affected (0.02 sec)
mysql> describe test1;
+------
| Field | Type | Null | Key | Default | Extra |
+------
| id | int(11) | YES | | NULL | |
| time | float(24,8) | YES | | NULL | |
+------
2 rows in set (0.02 sec)
mysql> insert into test1 (id, time) value (1, 1517248704);
Query OK, 1 row affected (0.00 sec)
mysql> select * from test1;
+------
| id | time |
+------
| 1 | 1517248768.00000000 |
+------
1 row in set (0.00 sec)
The value stored in the DB does not match the passed in value for float types. This causes action timeout to be inaccurate as it relies on the start_time stored in the DB.
Changed in senlin: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in senlin: | |
assignee: | nobody → Duc Truong (dtruong) |
Changed in senlin: | |
status: | Triaged → In Progress |
Fix proposed to branch: master /review. openstack. org/554385
Review: https:/