[Block-Storage] LVMISCSIDriver does not support local disk with lvm
Bug #1321336 reported by
Mark Vanderwiel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack + Chef |
Fix Released
|
Medium
|
Mark Vanderwiel |
Bug Description
block storage cookbook only supports creating 40gb loop device, does not support local disk w/ lvm
Changed in openstack-chef: | |
milestone: | none → icehouse-rc1 |
Changed in openstack-chef: | |
milestone: | icehouse-rc1 → icehouse-stable |
Changed in openstack-chef: | |
importance: | Undecided → Medium |
To post a comment you must log in.
current implementation for openstack- block-storage cookbook for lvm driver only allow user to create on loop device and map to cinder-volumes virtual group. >>>>>>> >>>>>>> >>> volume. drivers. lvm.LVMISCSIDri ver' ']['block- storage' ]['volume' ]['create_ volume_ group'] ']['block- storage' ]['volume' ]['volume_ group_size' ] ']['block- storage' ]['volume' ]['volume_ group'] 'openstack' ]['block- storage' ]['volume' ]['state_ path']} /#{vg_name} .img"
>>>>>>>
when 'cinder.
if node['openstack
volume_size = node['openstack
seek_count = volume_size.to_i * 1024
# default volume group is 40G
seek_count = 40 * 1024 if seek_count == 0
vg_name = node['openstack
vg_file = "#{node[
# create volume group
execute 'Create Cinder volume group' do
command "dd if=/dev/zero of=#{vg_file} bs=1M seek=#{seek_count} count=0; vgcreate #{vg_name} $(losetup --show -f #{vg_file})"
action :run
not_if "vgs #{vg_name}"
end
>>>>>>>>>>>>>>>>>>
It is not suitable for client who want to use local disk as cinder volume storage. We need allow client to choose what kind of device they want to use as cinder volume.