And then observe the instance running, observe the KVM VM running and SSH into the instance:

And then observe the instance running, observe the KVM VM running and SSH into the instance:

Line 164:

Line 211:

$> sudo virsh list

$> sudo virsh list

$> ssh -i nova_key.priv root@10.0.0.2

$> ssh -i nova_key.priv root@10.0.0.2

+

$> euca-get-console-output i-00000001

+

$> euca-terminate-instances i-00000001

+

+

== Volumes ==

+

+

If you use the Chrome browser, kill it before embarking on this section, as it has been [https://bugzilla.redhat.com/show_bug.cgi?id=727925 known] to cause the lvcreate command to fail with 'incorrect semaphore state' errors.

+

+

Start the SCSI target daemon

+

+

$> sudo service tgtd start

+

$> sudo chkconfig tgtd on

+

+

Create a new 1GB volume

+

+

$> VOLUME=$(euca-create-volume -s 1 -z nova | awk '{print $2}')

+

+

View the status of the new volume, and wait for it to become 'available'

Nova comes with a selection of fairly basic smoke tests which you can run against your installation. It can be useful to use these to sanity check your configuration.

+

+

First off, you need the nova-adminclient python library which isn't yet packaged:

+

+

$> sudo yum install python-pip

+

$> sudo pip-python install nova-adminclient

+

+

Then you need a user and project both named admin:

+

+

$> sudo nova-manage user admin admin

+

$> sudo nova-manage project create admin admin

+

$> sudo nova-manage project zipfile admin admin

+

$> unzip nova.zip

+

$> . ./novarc

+

+

Make sure you have the tty images imported as described above. You also need a block of floating IPs created, also as described above.

+

+

Then, run the tests from a fedpkg checkout:

+

+

$> fedpkg clone openstack-nova

+

$> cd openstack-nova

+

$> fedpkg switch-branch f16

+

$> fedpkg prep

+

$> cd nova-2011.3/smoketests

+

$> python ./run_tests.py

+

+

All the tests should pass.

+

+

If you run into import errors such as:

+

+

ImportError: No module named nose

+

+

or:

+

+

ImportError (No module named paramiko)

+

+

simply install the missing dependency as follows:

+

+

$> sudo yum install -y python-nose.noarch

+

$> sudo yum install -y python-paramiko.noarch

+

+

== Manual Setup of MySQL ==

+

+

As of <code>openstack-nova-2011.3-9.el6</code> and <code>openstack-nova-2011.3-8.fc16</code>, <code>openstack-nova</code> is now set up to use MySQL by default. If you're updating an older installation or prefer to set up MySQL manually instead of using the <code>openstack-nova-db-setup</code> script, this section shows how to do it.

+

+

First install and enable MySQL:

+

+

$> sudo yum install -y mysql-server

+

$> sudo service mysqld start

+

$> sudo chkconfig mysqld on

+

+

Set a password for the root account and delete the anonymous accounts:

Check that all the services started up correctly and look in the logs in /var/log/nova for errors. If there are none, then Nova is up and running!
Note the network service should only be started on a single node, when setting up multiple compute nodes.

As of openstack-nova-2011.3-9.el6 and openstack-nova-2011.3-8.fc16, openstack-nova is now set up to use MySQL by default. If you're updating an older installation or prefer to set up MySQL manually instead of using the openstack-nova-db-setup script, this section shows how to do it.