Description of problem: When using the thinlvm driver, if the cinder-volumes VG is manually created and perfectly rounded to the GB (eg. using vgcreate -L 100G), cinder fails to allocate the volumes pool within it Version-Release number of selected component (if applicable): openstack-cinder-2013.1.3-2.el6ost.noarch Steps to Reproduce: 1. truncate -s 100G backingfile 2. losetup -f backingfile 3. vgcreate cinder-volumes /dev/loopX 4. configure cinder with the thinlvm driver 5. create a new volume in cinder Actual results: the following appears in the volume.log (and the POOL creation fails): Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -T -L 100g cinder-volumes/cinder-volumes-pool Exit code: 5 Stdout: '' Stderr: ' Volume group "cinder-volumes" has insufficient free space (25599 extents): 25600 required.\n'
Giulio, why is this not a packstack bug?
compared to the vg/lv structure in use by the regular lvm driver, the thinlvm driver uses an additional layer: VG (cinder-volumes) | |-> LVs POOL | |-> LV (volume UUID) the thinlvm driver expects the outer VG to be available (as per the regular lvm driver) but it will create the LVs POOL on its own if it doesn't exist yet I think we could get packstack to create the LVs POOL but the bug currently affects Cinder because we let Cinder to create it (packstack only creates the more external VG).
Should be fixed in Havana-3.
Auto adding >= MODIFIED bugs to beta
verified using openstack-cinder-2013.2-8.el6ost.noarch
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2013-1859.html