Race condition when deleting iscsi devices
Bug #1297635 reported by
Sam Morrison
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
If you have two instances on the same compute node that each have a volume attached (using iscsi backend)
If you delete both of them triggering a disconnect volume the following happens:
First request will delete the device
echo 1> /sys/block/
The second request triggers an iscsi_rescan which then rediscovers the device.
The volume is then deleted from the backend cinder.
now you have a device which is pointing back to a deleted volume.
This is using an NetApp device where all the devices are in the same IQN and using multipath on stable/havana
tags: | added: volumes |
tags: | added: multipath |
Changed in nova: | |
status: | Triaged → Confirmed |
To post a comment you must log in.
If I understand correctly the deleted part happens only if volume is set to "delete_ on_termination" . Otherwise - yes, this seems like something we want to serialize in the libvirt iscsi volume driver.