Add unnecessary record in mysql when I query quota with nonexistent tenant_id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
New
|
Undecided
|
Unassigned |
Bug Description
when I query quota with nonexistent tenant_id use trove cli, will add unnecessary record to mysql(database:
e.g.
#trove quota-show errtenant
+------
| Resource | In Use | Reserved | Limit |
+------
| backups | 0 | 0 | 5 |
| instances | 0 | 0 | 5 |
| volumes | 0 | 0 | 100 |
+------
MariaDB [(none)]> use trove
MariaDB [trove]> select * from quota_usages where tenant_
+------
| id | created | updated | tenant_id | in_use | reserved | resource |
+------
| 8a22d0e5-
| 4a306e8d-
| 790efe51-
+------
3 rows in set (0.00 sec)
It should not modify quota_usages in MySQL.
Changed in trove: | |
assignee: | nobody → Liu Yang (ly798) |
status: | New → In Progress |
Changed in trove: | |
assignee: | Liu Yang (ly798) → nobody |
status: | In Progress → New |
Change abandoned by Liu Yang (<email address hidden>) on branch: master /review. openstack. org/434598
Review: https:/