QA:Testcase start OpenStack Nova services

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(add nova db setup)
(remove from cloud SIG category)
 
(7 intermediate revisions by 4 users not shown)
Line 3: Line 3:
 
|setup=Follow [[QA:Testcase_start_OpenStack_Glance_services]].
 
|setup=Follow [[QA:Testcase_start_OpenStack_Glance_services]].
  
Create a nova-volumes Volume Group for the openstack-nova-volume service
+
|actions=
 +
Configure nova to use keystone auth:
 +
$> sudo openstack-config-set /etc/nova/nova.conf DEFAULT auth_strategy keystone
 +
$> sudo openstack-config-set /etc/nova/api-paste.ini filter:authtoken admin_tenant_name service
 +
$> sudo openstack-config-set /etc/nova/api-paste.ini filter:authtoken admin_user nova
 +
$> sudo openstack-config-set /etc/nova/api-paste.ini filter:authtoken admin_password servicepass
  
$> 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
 
 
$> <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:
 
 
$> <nowiki>echo '--libvirt_type=qemu' | sudo tee -a /etc/nova/nova.conf</nowiki>
 
 
Set up the nova MySQL database:
 
 
$> sudo openstack-nova-db-setup
 
 
|actions=
 
 
Start the services:
 
Start the services:
  $> for svc in api compute network volume scheduler; do sudo service openstack-nova-$svc start; done
+
  $> for svc in api cert compute network objectstore scheduler volume; do sudo systemctl start openstack-nova-$svc.service; done
  $> for svc in api compute network volume scheduler; do sudo chkconfig openstack-nova-$svc on; done
+
  $> for svc in api cert compute network objectstore scheduler volume; do sudo systemctl enable openstack-nova-$svc.service; done
  
 
|results=
 
|results=
 
Check that the services are running:
 
Check that the services are running:
  $> for svc in api compute network volume scheduler; do sudo service openstack-nova-$svc status; done
+
  $> for svc in api cert compute network volume scheduler; do sudo systemctl status openstack-nova-$svc.service; done
 
And check for errors in the logs:
 
And check for errors in the logs:
 
  $> grep -i error /var/log/nova/*.log
 
  $> grep -i error /var/log/nova/*.log
 
Make sure the API server is responding:
 
Make sure the API server is responding:
  $> curl -v -H 'Accept: application/json' http://localhost:8774/v1.1/
+
  $> nova flavor-list
  
 
}}
 
}}
  
 
[[Category:OpenStack Test Cases]]
 
[[Category:OpenStack Test Cases]]
[[Category:Cloud SIG]]
 

Latest revision as of 06:17, 25 April 2012

Contents

Description

Test that the various Nova services start without error.

Setup

Follow QA:Testcase_start_OpenStack_Glance_services.

How to test

Configure nova to use keystone auth:

$> sudo openstack-config-set /etc/nova/nova.conf DEFAULT auth_strategy keystone
$> sudo openstack-config-set /etc/nova/api-paste.ini filter:authtoken admin_tenant_name service
$> sudo openstack-config-set /etc/nova/api-paste.ini filter:authtoken admin_user nova
$> sudo openstack-config-set /etc/nova/api-paste.ini filter:authtoken admin_password servicepass

Start the services:

$> for svc in api cert compute network objectstore scheduler volume; do sudo systemctl start openstack-nova-$svc.service; done
$> for svc in api cert compute network objectstore scheduler volume; do sudo systemctl enable openstack-nova-$svc.service; done

Expected Results

Check that the services are running:

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

And check for errors in the logs:

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

Make sure the API server is responding:

$> nova flavor-list