Ask Your Question

Revision history [back]

Please test the root resizing of your centos image. We found that none of the publically (googleable) centos images for openstack actually re-sized the root partition. Tested by doing a df and fdisk -l on the vms. The results show the same disk size as whatever the image had.

Ubuntu and fedora images did not have this problem.

The problem being that growpart and growroot are either absent, or not correctly working. This has to be done at boot time and can't be fixed up afterwards, so a bad image is basically useless if you want nova boot --flavor flav_id to actually resize the disk to the size specified in flav_id.

Post install you will see an error like this if you try to fix it up. [cloud-user@vm-test1 ~]$ growpart /dev/vda 1 FAILED: unable to determine partition type

Here is a list of all the images that we tested. In the end we had to get a custom image built by our openstack provider. Most of the centos image names are in the table.

root@node-8:~# nova image-list +--------------------------------------+-------------------------------------------------+--------+--------------------------------------+ | ID | Name | Status | Server | +--------------------------------------+-------------------------------------------------+--------+--------------------------------------+ | 13c6aba6956855a | CentOS 6.4 | ACTIVE | | | c68019ae4-8ea2-eb68fe2db306 | CentOS-6.4-x86_64-Minimal-OpenStack.image.qcow2 | ACTIVE | bunzip2 <image_file> | | 98af03df668d3 | Fedora-x86_64-20-20131211.1-sda.qcow2 | ACTIVE | disk resize works | | d7b4d7dbeeba7d | RHEL-6.5 | ACTIVE | | | e31c9bdd-8afc123 | TestVM | ACTIVE | | | ff5ac05b125eb202d | Ubuntu 12.04.3 LTS | ACTIVE | | | eea670ee6edbc4 | centos-6.5-20140117.0.x86_64 | ACTIVE | | | c6f9f78531c2 | centos-6_4-64-vanilla.qcow2 | ACTIVE | | | 1c7fe14cbb3d9e | centos60_x86_64.qcow2 | ACTIVE | | | d11521*31bfe7b | cirros-0.3.1-x86_64-disk.img | ACTIVE | In the official openstack docs |