Multi-node install : problem to spawn instance
Hi,
I tried to run nova on multiple nodes :
I've heard about the refactoring of the objectstore ; the existing S3ImageService in Bexar is totally different from the one in Cactus. It is now impossible to run the objectstore from a different node than the one running the compute-service (am I wrong ?)
However, if we are using Glance, we should not have the problem (running the image storage and the compute services on two different nodes), should we ?
So I tried to use Glance as my Image service : I use the 'file' storage as my default_storage.
I downloaded the image http://smoser.brickies.net/ubuntu/ttylinux-uec/ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz (http://smoser.brickies.net/ubuntu/tty...)
How can I register the following image with Glance so that it can be available for all my compute nodes ?
Indeed, I tried several things but it seems that I am still failing at the spawning step on my compute-node
Here are the 2 options that I tried :
1. #tar xzvf ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz #glance add name="image-test" is_public=True location=file:///root/workdir/venv/firstbranch/ttylinux-uec-amd64-12.1_2.6.35-22_1.img disk_format=ami container_format=ami #glance add name="image-test-kernel" is_public=True location=file:///root/workdir/venv/firstbranch/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz disk_format=aki container_format=aki #glance add name="image-test-rd" is_public=True location=file:///root/workdir/venv/firstbranch/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz disk_format=ari container_format=ari
2. #glance add name="image-test2" is_public=True location=file:///root/workdir/venv/firstbranch/ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz
Here is what is obtained when running euca-describe-images or glance details
#glance details
URI: http://0.0.0.0/images/6 Id: 6 Public: Yes Name: image-test Size: 0 Location: file:///root/workdir/venv/firstbranch/ttylinux-uec-amd64-12.1_2.6.35-22_1.img Disk format: ami
Container format: ami
URI: http://0.0.0.0/images/7 Id: 7 Public: Yes Name: image-test2 Size: 0 Location: file:///root/workdir/venv/firstbranch/ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz Disk format: raw
Container format: ovf
URI: http://0.0.0.0/images/8 Id: 8 Public: Yes Name: image-test-kernel Size: 0 Location: file:///root/workdir/venv/firstbranch/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz Disk format: aki
Container format: aki
URI: http://0.0.0.0/images/9 Id: 9 Public: Yes Name: image-test-rd Size: 0 Location: file:///root/workdir/venv/firstbranch/ttylinux-uec-amd64-12.1_2.6.35-22_1-initrd Disk format: ari
Container format: ari
#euca-describe_images
IMAGE ami-00000006 None (image-test) available public machine
IMAGE ami-00000007 None (image-test2) available public machine
IMAGE aki-00000008 None (image-test-kernel) available public kernel
IMAGE ari-00000009 None (image-test-rd) available public ramdisk
I tried to run-instance in the three following way : #euca-run-instances ami-00000007 -t m1.small (the one which I registered as a raw disk with the tar.gz) #euca-run-instances ami-00000006 --kernel aki-00000008 --ramdisk ari-00000009 -t m1.small (the one which I registered as a 3 part machine with the ami,ari,aki)
Each time I got something like #euca-describe-instances INSTANCE i-00000015 ami-00000006 172.24.0.8 172.24.0.8 shutdown None (project ...