Comment 3 for bug 1187367

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to cinder (master)

Reviewed: https://review.openstack.org/111760
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=331071a3e2f1ee6783e6a908789af40835818eed
Submitter: Jenkins
Branch: master

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

    Related-Bug: #1187367

    Change-Id: Ie412ecabd3cbcac301340c82b4275adb7a7206c3