volume_type_projects deleted column is bogus
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
In Progress
|
Undecided
|
Tushar Trambak Gite |
Bug Description
The cinder db table volume_
https:/
When the CinderBase model already has a deleted column which is declared as a Boolean here:
https:/
The problem with this is in the DB the deleted column values for the volume_
For example:
mysql> select id, deleted_at, deleted from volume_
+----+-
| id | deleted_at | deleted |
+----+-
| 1 | 2020-08-14 15:52:09 | 1 |
| 2 | 2020-08-14 15:52:09 | 2 |
| 3 | 2020-08-14 15:52:09 | 3 |
+----+-
3 rows in set (0.00 sec)
Since it's not declared as a Boolean, then it gets the ID value when it's soft deleted. IF we have code that checks for deleted == 1, then this doesn't work.
The column should be declared as Boolean.
Changed in cinder: | |
assignee: | nobody → Tushar Trambak Gite (tushargite96) |
This is related to this 'fix'
https:/ /bugs.launchpad .net/cinder/ +bug/1496747