update share_type's name to an exist share_type name, Postgres database will error, but not mysql.

Bug #1843436 reported by haixin
6
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://paste.openstack.org/show/774664/

but mysql database does not has that error,

The following code affects the problem described above:
https://review.opendev.org/#/c/669651/24/manila/db/sqlalchemy/api.py@3978.
if change ~model.deleted to model.deleted != "False".it will lead to unit test failed.
https://ce298eee25173aa90c34-ca4b089b4b338eb03b97f6a00e3061e2.ssl.cf2.rackcdn.com/669651/25/check/openstack-tox-py27/49413f1/job-output.txt

Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :
Changed in manila:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.