cinder/cinder/cmd
Eric Harney eadff0df7e Prevent double-attachment race in attachment_reserve
If multiple attachments are requested simultaneously,
a volume can be attached to an instance more than once.

This fixes this problem by detecting that a race has
occurred in _attachment_reserve, and backing out one of
the invalid attachment records.

This means that if the attachment API is called
repeatedly and quickly for the same volume, some requests
may fail, but this is much better than incorrectly
creating multiple attachments.

Closes-Bug: #1833736

Change-Id: Ic2463338b698c5cf805c0ae06d0229f54f64b3fc
(cherry picked from commit 7f3a77b66f)
Depends-On: https://review.opendev.org/671370
2019-07-31 11:38:37 -04:00
..
__init__.py Use pbr entry_points to setup the cinder scripts 2014-12-08 09:53:22 -05:00
api.py Prevent double-attachment race in attachment_reserve 2019-07-31 11:38:37 -04:00
backup.py Cleanup code duplication in cinder.cmd.backup module 2018-11-30 09:40:39 +00:00
manage.py Merge "Fix non iSCSI attach serialization" 2018-11-02 08:42:20 +00:00
rtstool.py fix misspelling of 'configuration' 2018-09-03 15:13:11 +08:00
scheduler.py Merge "Add 'conf' param for TextGuruMeditation autorun setup" 2016-03-03 19:01:46 +00:00
status.py Add Upgrade Check for Drivers Removed in Stein 2019-05-31 13:38:12 -05:00
volume.py Fix cinder-volume uses latest req-id for all log calls 2018-06-08 13:48:32 +00:00
volume_usage_audit.py Fix pylint warnings for "unnecessary not" 2018-09-10 15:12:18 -04:00