From Fedora Project Wiki

No edit summary
No edit summary
Line 7: Line 7:
  $> sudo truncate -s20G /var/lib/nova/nova-volumes.img
  $> sudo truncate -s20G /var/lib/nova/nova-volumes.img
  $> sudo vgcreate nova-volumes $(sudo losetup --show -f /var/lib/nova/nova-volumes.img)
  $> sudo vgcreate nova-volumes $(sudo losetup --show -f /var/lib/nova/nova-volumes.img)
Set nova to use the Qpid backend for messaging
$> <nowiki>echo '--rpc_backend=nova.rpc.impl_qpid' | sudo tee -a /etc/nova/nova.conf</nowiki>


If you are testing OpenStack in a virtual machine, you need to configure nova to use qemu without KVM and hardware virtualization:
If you are testing OpenStack in a virtual machine, you need to configure nova to use qemu without KVM and hardware virtualization:

Revision as of 18:17, 27 January 2012

Description

Test that the various Nova services start without error.

Setup

Follow QA:Testcase_start_OpenStack_Glance_services.

Create a nova-volumes Volume Group for the openstack-nova-volume service

$> sudo truncate -s20G /var/lib/nova/nova-volumes.img
$> sudo vgcreate nova-volumes $(sudo losetup --show -f /var/lib/nova/nova-volumes.img)

Set nova to use the Qpid backend for messaging

$> echo '--rpc_backend=nova.rpc.impl_qpid' | sudo tee -a /etc/nova/nova.conf

If you are testing OpenStack in a virtual machine, you need to configure nova to use qemu without KVM and hardware virtualization:

$> echo '--libvirt_type=qemu' | sudo tee -a /etc/nova/nova.conf 

How to test

Start the services:

$> for svc in api compute network volume scheduler; do sudo service openstack-nova-$svc start; done
$> for svc in api compute network volume scheduler; do sudo chkconfig openstack-nova-$svc on; done

Expected Results

Check that the services are running:

$> for svc in api compute network volume scheduler; do sudo service openstack-nova-$svc status; done

And check for errors in the logs:

$> grep -i error /var/log/nova/*.log

Make sure the API server is responding:

$> curl -v -H 'Accept: application/json' http://localhost:8774/v1.1/