From b66311a12a7ac3b00c02f4912238f1ca23475c8f Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Sat, 18 Jun 2011 12:32:50 -0700 Subject: [PATCH] updated tests and notes for single node install. - create test script for verifying installation. - updated NOTES to refer to test script. --- .gitignore | 1 + NOTES | 30 +++++++----------------------- ext/test.sh | 12 ++++++++++++ 3 files changed, 20 insertions(+), 23 deletions(-) create mode 100644 .gitignore create mode 100644 ext/test.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/NOTES b/NOTES index 2940056..2445e79 100644 --- a/NOTES +++ b/NOTES @@ -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= 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 --image - -# 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 diff --git a/ext/test.sh b/ext/test.sh new file mode 100644 index 0000000..29ed893 --- /dev/null +++ b/ext/test.sh @@ -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