update share_type's name to an exist share_type name, Postgres database will error, but not mysql.
Bug #1843436 reported by
haixin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
manila type-create Example_1 --snapshot_support False False
manila type-create Example_2 --snapshot_support False False
manila type-update Example_2 --name "Example_1"
if the datebase is Postgres database will get DB error follow:
Error traceback: http://
but mysql database does not has that error,
The following code affects the problem described above:
https:/
if change ~model.deleted to model.deleted != "False".it will lead to unit test failed.
https:/
To post a comment you must log in.
This bug was fixed by enforcing the uniqueness constraint added to the ShareTypes model: /review. opendev. org/#/c/ 669651/ 24..29/ manila/ db/sqlalchemy/ api.py /review. opendev. org/#/c/ 669651/ 26/manila/ db/sqlalchemy/ api.py@ 3978
https:/
https:/