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:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.swp
|
28
NOTES
28
NOTES
@@ -3,29 +3,13 @@ to install with single node:
|
|||||||
# configure will all test
|
# configure will all test
|
||||||
> puppet apply nova/tests/all.pp
|
> puppet apply nova/tests/all.pp
|
||||||
|
|
||||||
# create priv/pub key pairs, this assumes the default project/user
|
# download the image to test with:
|
||||||
>cd ~
|
> mkdir /vagrant/images/lucid_ami && cd /vagrant/images/lucid_ami
|
||||||
>sudo nova-manage project zipfile nova novaadmin
|
|
||||||
>unzip nova.zip
|
|
||||||
# set up credentials
|
|
||||||
>source novarc
|
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
>glance add name=ramdisk disk_format=ari container_format=ari is_public=True < initrd.img-2.6.32-23-server
|
# now run the test code:
|
||||||
>glance add name=kernel disk_format=aki container_format=aki is_public=True < vmlinuz-2.6.32-23-server
|
> ./ext/tests.sh
|
||||||
>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
|
# this will verify that you can insert an image in the glance db
|
||||||
>nova flavor-list
|
# and use it to boot an image
|
||||||
# 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 :(
|
|
||||||
|
12
ext/test.sh
Normal file
12
ext/test.sh
Normal 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
|
Reference in New Issue
Block a user