cinder/cinder/brick
John Griffith a9112a9cd8 Fixup persistence file not found on tgt remove
After commit: beecd769af
we're experiencing a race in the tempest gating tests.

It appears that there are certain cases where a detach
and a delete call can overlap causing a race in the
remove_iscsi_target method.  The result is that when
the slower method gets around to the final removal of
the persistence file it's no longer there, so we
hit an unhandled exception.

This patch does two things:
1. It adds the volume lock to the detach_volume
method in the manager (already in place for delete).
This should mitigate the race and allow us to avoid it.

2. In the iscsi_remove_target method check if the
persist file has already been removed when we get
to the last check.  The fact is that if it was somehow
removed before we got here we don't really care, we're
just going to delete it anyway.

Change-Id: Ied45e1a66c8fb79c95ada66f8c59bd2839e200ad
Closes-Bug: 1277362
2014-02-10 05:30:01 +00:00
..
initiator Fixed a problem in iSCSI multipath 2014-01-06 22:23:36 -05:00
iscsi Fixup persistence file not found on tgt remove 2014-02-10 05:30:01 +00:00
local_dev Merge "LVM: remove redundant casts to float" 2014-02-05 01:51:39 +00:00
remotefs Remove vim header 2013-12-30 18:53:02 -06:00
README.txt This adds a README to brick 2013-09-04 16:08:05 -04:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-26 22:45:17 -06:00
exception.py Brick fix BrickException message formatting 2014-02-07 13:33:13 -08:00
executor.py Remove vim header 2013-12-30 18:53:02 -06:00

README.txt

Brick is a new library that currently is maintained in Cinder for
the Havana release.   It will eventually be moved external to Cinder,
possibly oslo, or pypi.  Any defects found in Brick, should be submitted
against Cinder and fixed there, then pulled into other projects that
are using brick.

* Brick is used outside of Cinder and therefore
  cannot have any dependencies on Cinder and/or
  it's database.