Problem deleting volume devices that attached to other VMs, when the users detach volumes.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Low
|
Unassigned |
Bug Description
When I detached volume from my virtual-machine, "nova-compute process" deleted volume devices that attached to other virtual-machine.
As you know, when detaching volumes from virtual-machine, nova-compute is going to delete volume devices.
However nova-compute deleted volume devices that attached to other virtual-machine.
So, file-system of those volumes had changed "read-only".
My Environment is following:
- OpenStack Juno 2014.2.1
- Hypervisor : KVM on Ubuntu 12.04.2
- Storage : Netapp iSCSI
I tried to check "logic of deleting volume devices", and I found that nova had a critical issue in deleting logic.
deleting logic is :
nova/virt/
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' % (iqn,iscsi_
iqn_luns.
for dev in ['/dev/
for iqn_lun in iqn_luns:
if iqn_lun in dev: <- this logic has problem.
self.
my case of problem is :
1. there are 1~19 of lun-id volumes that are attached virtual-machine on same hypervisor.
2. and then, If I detach volume that have lun-id 1.
3. nova-compute is going to delete devices of volumes that have lun-id 11~19 by "_delete_mpath function" in openstack nova.
more information is :
1. problem logic : if iqn_lun in dev:
2. "dev" has all disk on the hypervisor
/dev/disk/
/dev/disk/
/dev/disk/
/dev/disk/
/dev/disk/
3. iqn_lun has "iqn.xxx.
iqn_lun = '%s-lun-%s' % (iqn, iscsi_propertie
4. nova-compute try to delete devices that have "iqn.xxx.
/dev/
/dev/disk/
/dev/disk/
/dev/disk/
This Bug is very critical because the nova-compute can delete other vm's devices when this case is occurred,
so that file-system of volume can change read-only.
Actually this case was occurred and my customer's file-system was changed read-only.
I think that nova-compute try to delete device in case of exactly same lun-id.
Please fix this bug ASAP.
Thank you.
description: | updated |
Changed in nova: | |
status: | New → Confirmed |
assignee: | nobody → Jin Liu (jin-t) |
Changed in nova: | |
assignee: | Jin Liu (jin-t) → Sean Dague (sdague) |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
assignee: | Sean Dague (sdague) → nobody |
status: | In Progress → Confirmed |
Changed in nova: | |
assignee: | nobody → jangpro2 (jangseon-ryu) |
Changed in nova: | |
status: | Confirmed → In Progress |
Changed in nova: | |
status: | In Progress → Confirmed |
Changed in nova: | |
assignee: | jangseon ryu (jangseon-ryu) → nobody |
Fix proposed to branch: master /review. openstack. org/165663
Review: https:/