I believe config-drive is the way to fix injection problems. I use it and it works great. (I just wish there was a way to use it from Horizon...)
We'll never be able to inject into every image; also some people don't want us messing with their images. Config drive is effectively injection into a disk we create, so we pick a format that we know how to inject into. It also seems to meet the needs of people that would prefer that we don't mess with their images. Have you considered using config drive instead of primary disk injection? Justin On Wed, Apr 25, 2012 at 5:13 AM, Alvaro Lopez <[email protected]> wrote: > Dear. > > I've run into troubles with the resize of partitions and file injection; > using libvirt and raw images. > > According to https://bugs.launchpad.net/nova/+bug/929005 file injection > into images only works in the following situations: > 1.- whole disk image -> inject to partition 1. > 2.- separate kernel and ramdisk -> inject without partitions. > > In situation 1 (i.e. using whole disk images, with one partition > inside) the file injection works fine, the disk is resized to the > actual size, but the partition is not extended. This is because the > 'extend' function in 'nova/virt/disk/api.py' executes 'qemu-img', > 'e2fsck' and 'resize2fs' in a row, assuming that there are no > partitions at all. > > In situation 2 (i.e. using whole disk images) if there is no kernel > and ramdisk (but the file is a self-contained disk with an appropriate > kernel) file injection does not work, but the resize works fine (since > there are no partitions and the fsck and resize work as expected). > > Shouldn't the file injection be extended so as to make it work in any > situation? That is, add injection without partitions and without > kernel/ramdisk. > > Shouldn't the resize of disk take into account that it might be a disk > with a (single) partition inside? This would imply dealing with the > partitions (that is, delete and recreate them to the appropiate size). > > Regards, > -- > Álvaro López García [email protected] > > > > _______________________________________________ > Mailing list: https://launchpad.net/~openstack > Post to : [email protected] > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp >
_______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : [email protected] Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp

