NFS driverS don't honor size parameter while creating a volume from an image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Sébastien Han |
Bug Description
The bug has been encountered with the NFS generic driver (cinder.
Step to reproduce (the first file is the image file fetched from glance by cinder):
vagrant@
tmpox4Fof
vagrant@
image: tmpox4Fof
file format: qcow2
virtual size: 2.0G (2147483648 bytes)
disk size: 240M
cluster_size: 65536
vagrant@
vagrant@
total 241M
drwxrwxr-x 2 vagrant vagrant 4.0K May 21 09:26 .
drwxr-xr-x 9 vagrant vagrant 4.0K May 21 09:23 ..
-rw-rw-r-- 1 vagrant vagrant 5.0G May 21 09:26 file
-rw------- 1 vagrant vagrant 241M May 21 09:24 tmpox4Fof
vagrant@
vagrant@
total 1021M
drwxrwxr-x 2 vagrant vagrant 4.0K May 21 09:26 .
drwxr-xr-x 9 vagrant vagrant 4.0K May 21 09:23 ..
-rw-rw-r-- 1 vagrant vagrant 2.0G May 21 09:26 file
-rw------- 1 vagrant vagrant 241M May 21 09:24 tmpox4Fof
vagrant@
image: file
file format: raw
virtual size: 2.0G (2147483648 bytes)
disk size: 780M
The main problem is that the rootfs size of the VM will be equal to the virtual size of the image
This is expected behavior I assume, the easiest way to fix it is to "qemu-img resize" and set the virtual size according to the size that the client asked for in the first place.
Changed in cinder: | |
milestone: | none → havana-2 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | havana-2 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/30298
Review: https:/