updated tests and notes for single node install.

- create test script for verifying installation.
- updated NOTES to refer to test script.
This commit is contained in:
Dan Bode
2011-06-18 12:32:50 -07:00
parent f4b9cf30c1
commit b66311a12a
3 changed files with 20 additions and 23 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.swp

30
NOTES
View File

@@ -3,29 +3,13 @@ to install with single node:
# configure will all test
> puppet apply nova/tests/all.pp
# create priv/pub key pairs, this assumes the default project/user
>cd ~
>sudo nova-manage project zipfile nova novaadmin
>unzip nova.zip
# set up credentials
>source novarc
# download the image to test with:
> mkdir /vagrant/images/lucid_ami && cd /vagrant/images/lucid_ami
# test that you can download something into glance:
>mkdir lucid_ami && cd lucid_ami
> wget -q -O - http://173.203.107.207/ubuntu-lucid.tar | tar xSv
>wget -q -O - http://173.203.107.207/ubuntu-lucid.tar | tar xSv
# now run the test code:
> ./ext/tests.sh
>glance add name=ramdisk disk_format=ari container_format=ari is_public=True < initrd.img-2.6.32-23-server
>glance add name=kernel disk_format=aki container_format=aki is_public=True < vmlinuz-2.6.32-23-server
>glance add name=lucid_ami disk_format=ami container_format=ami is_public=True ramdisk_id=<ramdisk ID> kernel_id=<kernel ID> < ubuntu-lucid.img
# verify that the images are in the glance db
>glance index
# see what flavors nova knows about
>nova flavor-list
# verify that nova is aware of the new images
>nova image-list
# boot an image
>nova boot test --flavor <flavor ID> --image <image ID>
# this last test still does not work for me :(
# this will verify that you can insert an image in the glance db
# and use it to boot an image

12
ext/test.sh Normal file
View File

@@ -0,0 +1,12 @@
cd ~
sudo nova-manage project zipfile nova novaadmin
unzip nova.zip
source novarc
glance add name=ramdisk disk_format=ari container_format=ari is_public=True < /vagrant/images/lucid_ami/initrd.img-2.6.32-23-server
glance add name=kernel disk_format=aki container_format=aki is_public=True < /vagrant/images/lucid_ami/vmlinuz-2.6.32-23-server
glance add name=lucid_ami disk_format=ami container_format=ami is_public=True ramdisk_id=1 kernel_id=2 < ubuntu-lucid.img
glance index
nova flavor-list
nova image-list
nova boot test --flavor 1 --image 3
euca-describe-instances