Cinder with LVM backend scans guest LVM and creates LVM items which prevent volume deletion
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Mirantis OpenStack | Status tracked in 10.0.x | |||||
10.0.x |
Fix Released
|
High
|
Nikita Karpin | |||
7.0.x |
Fix Released
|
High
|
Sergii Rizvan | |||
8.0.x |
Fix Released
|
High
|
Sergii Rizvan | |||
9.x |
Fix Released
|
High
|
Nikita Karpin |
Bug Description
Environment:
MOS7.0
MOS8.0
Cinder with LVM/iSCSI backend
Step to reproduce:
1. Create volume;
2. Attach to an instance;
3. Create PV, VG and LV on this volume inside the instance;
4. Shutdown instance or detach volume;
5. Delete volume;
Expected result: Deleted volume
Actual result: Volume gets stuck on error_deleting state
Cause: Device mapper on the storage node created the following structure:
# dmsetup ls --tree
vg--01-vol--01 (252:4)
└─cinder-
└─ (253:5)
vg-01 - guest VG
vol-01 - guest LV
As result, the Cinder volume is dependent on this item and can't be deleted.
Workaround: Set global_filter parameter in the /etc/lvm/lvm.conf file on all Storage nodes to ["r/dev/sd*./"]
description: | updated |
tags: | added: ct1 |
Changed in mos: | |
milestone: | none → 7.0-updates |
milestone: | 7.0-updates → 8.0-updates |
milestone: | 8.0-updates → none |
tags: | added: area-cinder |
tags: | added: on-verification |
tags: | added: on-verification |
tags: | added: on-verification |
It's not a Cinder issue. We have to change /etc/lvm/lvm.conf during deployment