From b46f0b9acbcd200252722829c61d690747d277ab Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Tue, 21 Jun 2011 00:17:40 -0700 Subject: [PATCH] Added some more stuff to the test script. --- ext/test.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/ext/test.sh b/ext/test.sh index 6d573aa..eb01323 100644 --- a/ext/test.sh +++ b/ext/test.sh @@ -1,15 +1,24 @@ +# Extract creds cd ~ sudo nova-manage project zipfile nova novaadmin unzip nova.zip source novarc +euca-add-keypair openstack > ~/cert.pem + +# Add images to glance and index 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 < /vagrant/images/lucid_ami/ubuntu-lucid.img glance index + +# List nova flavor-list nova image-list -nova boot test --flavor 1 --image 3 -euca-describe-instances -echo 'check the status of your VM with euca-describe-instances' -echo 'when it is in the running state, verigy that you can login' +# Run instance +euca-run-instances ami-00000003 -k openstack -t m1.tiny +euca-describe-instances + +echo 'check the status of your VM with euca-describe-instances' +echo 'when it is in the running state, verify that you can login' +echo 'using ssh -i ~/cert.pem root@ip.address'