lvremove can't delete volume with --force on Ubuntu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Committed
|
High
|
Dmitry Burmistrov | ||
10.0.x |
Won't Fix
|
High
|
MOS Linux | ||
5.0.x |
Won't Fix
|
High
|
Ivan Kolodyazhny | ||
5.1.x |
Won't Fix
|
High
|
Ivan Kolodyazhny | ||
6.0.x |
Fix Committed
|
High
|
Dmitry Burmistrov | ||
7.0.x |
Won't Fix
|
High
|
Unassigned | ||
8.0.x |
Won't Fix
|
High
|
Unassigned | ||
9.x |
Fix Committed
|
High
|
Dmitry Burmistrov |
Bug Description
VERSION:
feature_groups:
- mirantis
production: "docker"
release: "5.1"
api: "1.0"
build_number: "506"
build_id: "2014-09-
astute_sha: "b622d9b36dbdd1
fuellib_sha: "e3f947cc414221
ostf_sha: "1de6ed1c0b72f6
nailgun_sha: "82091e0d61f252
fuelmain_sha: "ca1b4839a70a10
After long-running Rally job several volumes stay in Error_Deleting state. Cinder log contain the following pattern:
Failed to create iscsi target for vol
ume id:volume-
Command: sudo cinder-rootwrap /etc/cinder/
Exit code: 22
Stdout: 'Command:\n\ttgtadm -C 0 --lld iscsi --op new --mode logicalunit --tid 2 --lun 1 -b /dev/cinder/
Stderr: 'tgtadm: this logical unit number already exists\n'
(see the whole log attached)
Rally scenario:
{
"NovaServer
{
"args": {
},
},
},
},
}
}
}
]
}
Issue is reproduced only with Ubuntu 12.04 and lvm2 v.2.02.66. It works good on CentOS with lvm2 v.2.02.100 and Ubuntu 14.04 with lvm2 v.2.02.98
In CentOS lvm2 fixed in 2.02.86 (https:/
Short steps to reproduce:
# dd if=/dev/zero of=/root/tmp bs=1G count=2
# losetup /dev/loop0 /root/tmp
# pvcreate /dev/loop0
# vgcreate testvg /dev/loop0
# lvcreate -L 1G testvg -n test
Then in parallel write to a new volume (e.g.: sudo dd if=/dev/zero of=/dev/testvg/test bs=1G count=2) and run 'lvremove -f /dev/testvg/test' command.
Expected result:
Logical volume "test" successfully removed
Actual result:
Can't remove open logical volume "test"
Changed in mos: | |
importance: | Undecided → Medium |
assignee: | nobody → Ivan Kolodyazhny (e0ne) |
milestone: | none → 5.1.1 |
tags: | added: scale |
summary: |
- Volumes hanging in Error Deleting state + lvremove can't delete volume |
description: | updated |
Most probably the reason is in race between 2 operations on volumes 656b2524- 93cb-4a29- a4d8-98765451a7 a3 and 3082fd2c- a976-45ad- b9ac-889c10ed79 d2 as both of them were processed within 0.02 seconds and both failed