Old lvm metadata on partitons breaks deployment of ceph-osd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
Medium
|
Aleksandr Didenko | ||
4.1.x |
Fix Released
|
Medium
|
Aleksandr Didenko | ||
5.0.x |
Fix Released
|
Medium
|
Aleksandr Didenko |
Bug Description
{
"api": "1.0",
"astute_sha": "a7eac46348dc77
"build_id": "2014-05-
"build_number": "24",
"fuellib_sha": "2f79c041515965
"fuelmain_sha": "d7f86968880a48
"mirantis": "yes",
"nailgun_sha": "bd09f89ef56176
"ostf_sha": "89bbddb78132e2
"production": "docker",
"release": "5.0"
}
Environment:
multinode, 1 controller+
"murano": True,
"sahara": True,
After several re-deployments of the same environment I've hit the following deployment error on controller+cephosd node:
/usr/bin/
raise Error('Device is in use by a device-mapper mapping (dm-crypt?)' % dev, ','.join(holders)
Checking the problem controller+cephosd node showed that we have "mongo" LVM on /dev/sda5 that is supposed to be used for ceph-osd (we're running mongodb on the different node):
# lvdisplay
--- Logical volume ---
LV Name /dev/mongo/mongodb
VG Name mongo
LV UUID EKaLrw-
LV Write Access read/write
LV Status available
# open 0
LV Size 173.66 GiB
Current LE 5557
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
# pvdisplay
--- Physical volume ---
PV Name /dev/sda5
VG Name mongo
PV Size 173.71 GiB / not usable 27.00 MiB
Allocatable yes
PE Size 32.00 MiB
Total PE 5558
Free PE 1
Allocated PE 5557
PV UUID aEx26m-
It looks like this is happening because we create /dev/sda5 partition during provisioning after lvm metadata cleaning and it may retain old lvm metadata:
2014-05-
2014-05-
2014-05-
2014-05-
2014-05-
...
2014-05-
2014-05-
2014-05-
....
2014-05-
2014-05-
2014-05-
2014-05-
....
2014-05-
2014-05-
2014-05-
2014-05-
2014-05-
2014-05-
2014-05-
2014-05-
As you can see in the logs above, we had no LVM data on our disks, but it appeared right after we created /dev/sda5 partition.
description: | updated |
tags: | added: customer-found release-notes |
no longer affects: | fuel/5.1.x |
Changed in fuel: | |
milestone: | 5.0.1 → 5.1 |
Fix proposed to branch: master /review. openstack. org/95795
Review: https:/