commit 331071a3e2f1ee6783e6a908789af40835818eed
Author: Ivan Kolodyazhny <email address hidden>
Date: Mon Aug 4 18:16:10 2014 +0300
Catch DBDuplicateEntry instead of IntegrityError
'iscsi_target_create_safe' method didn't catch DB exceptions
correct.
Need to catch both db_exc.DBError and db_exc.DBDuplicateEntry
due to current oslo.db limitations: it doesn't handle correct
DBDuplicateEntry with different SQLite versions
Reviewed: https:/ /review. openstack. org/111760 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=331071a3e2f 1ee6783e6a90878 9af40835818eed
Committed: https:/
Submitter: Jenkins
Branch: master
commit 331071a3e2f1ee6 783e6a908789af4 0835818eed
Author: Ivan Kolodyazhny <email address hidden>
Date: Mon Aug 4 18:16:10 2014 +0300
Catch DBDuplicateEntry instead of IntegrityError
'iscsi_ target_ create_ safe' method didn't catch DB exceptions
correct.
Need to catch both db_exc.DBError and db_exc. DBDuplicateEntr y Entry with different SQLite versions
due to current oslo.db limitations: it doesn't handle correct
DBDuplicate
Related-Bug: #1187367
Change-Id: Ie412ecabd3cbca c301340c82b4275 adb7a7206c3