thinlvm driver fails to create the pool if the outer vg is rounded to the GB

Bug #1218479 reported by Giulio Fidente
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Unassigned

Bug Description

When using the thinlvm driver, if the cinder-volumes VG is rounded to the GB (eg. using a 100G sized PV for the VG), cinder fails to allocate the volumes pool within it with the following error:

    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'

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

summary: - thinlvm driver fails to create the pool if the outer vg is perfectly
- rounded to the GB
+ thinlvm driver fails to create the pool if the outer vg is rounded to
+ the GB
description: updated
ugvddm (271025598-9)
Changed in cinder:
assignee: nobody → ugvddm (271025598-9)
description: updated
description: updated
Revision history for this message
Giulio Fidente (gfidente) wrote :

this was seen against the grizzly branch, not master

Revision history for this message
Eric Harney (eharney) wrote :

This should be fixed in Havana by the below changes but a similar fix is needed for Grizzly AFAICT.

https://review.openstack.org/#/c/34481/
https://review.openstack.org/#/c/37818/

tags: added: grizzly-backport-potential
ugvddm (271025598-9)
Changed in cinder:
assignee: ugvddm (271025598-9) → nobody
Changed in cinder:
status: New → Fix Released
Alan Pevec (apevec)
tags: removed: grizzly-backport-potential
no longer affects: cinder/grizzly
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.