LVM.__init__() checks for VG existence before setting up LVM_SYSTEM_DIR
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Fergal Mc Carthy |
Bug Description
Running Kilo Stable version of OpenStack
While testing on a small OpenStack configuration using LVM as a backend I have configured the /etc/lvm/lvm.conf on my hosts to reject all devices except those on which the operating system is installed.
On the host where cinder-volume & cinder-backup are running I created a /etc/cinder/
When I try to start cinder-volume I get errors trying to initalise the LVM backend because the specified backing LVM VG is not found.
Looking in the logs I noticed that even though /etc/cinder/
This lead me to the 'cinder/
if lvm_conf and os.path.
Moving these 4 lines of code to before the create_vg check near the beginning of LVM.__init__() resolved the problem and allows me to start cinder-volume.
I notice that this code appears the same on the cinder/master branch, so I will propose a review for this against that branch later today.
affects: | nova → cinder |
Changed in cinder: | |
assignee: | nobody → Fergal Mc Carthy (fergal-mccarthy) |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/226543
Review: https:/