target-lun 0 can be delete when detaching volume.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Low
|
jangseon ryu |
Bug Description
target-lun 0 can delete when detaching volume.
Environment
===========
- OpenStack Release : Liberty
- OS : Ubuntu 14.04.2 LTS
- Hypervisor : KVM
- Cinder Storage : iSCSI (EMC VNX)
Description
===========
I am using EMC Storage as volume backend.
Recently, I discovered problem logic when detaching volume.
As you know, nova-compute try to delete device and mapper of detaching volume.
AFAIK, EMC Storage has lun-0 device in compute node.
$ls -al /dev/disk/
lrwxrwxrwx 1 root root 9 Feb 24 20:05 ip-x.x.
lrwxrwxrwx 1 root root 9 Feb 24 20:05 ip-x.x.
lrwxrwxrwx 1 root root 9 Feb 24 20:05 ip-x.x.
lrwxrwxrwx 1 root root 9 Feb 24 20:05 ip-x.x.
But nova-compute can delete device of lun-0 when failing to get 'target_lun'
https:/
def _delete_mpath(self, iscsi_properties, multipath_device, ips_iqns):
entries = self._get_
# Loop through ips_iqns to construct all paths
iqn_luns = []
for ip, iqn in ips_iqns:
iqn_lun = '%s-lun-%s' %
i think that it needs to modify that code.
Changed in nova: | |
assignee: | nobody → jangpro2 (jangseon-ryu) |
description: | updated |
Changed in nova: | |
importance: | Undecided → Low |
status: | New → In Progress |
description: | updated |
tags: | added: volumes |
Liberty is already EOL and this bug report has been 'In Progress' status for a year, but there is no activity. So set it to 'Invalid' status.
This bug can be reopened (set back to "New") if someone reproduce the bug at newton, ocata or master.