QA:Testcase start OpenStack Nova services

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
Line 4: Line 4:
  
 
|actions=
 
|actions=
 +
Configure nova to use keystone auth:
 +
$> sudo sed -i -e 's/# \(pipeline = .*\keystone\)/\1/g' /etc/nova/api-paste.ini
 +
$> . ./keystonerc
 +
$> sudo openstack-config-set /etc/nova/api-paste.ini filter:authtoken admin_token $ADMIN_TOKEN
 +
 
Start the services:
 
Start the services:
 
  $> for svc in api cert compute network volume scheduler; do sudo systemctl start openstack-nova-$svc.service; done
 
  $> for svc in api cert compute network volume scheduler; do sudo systemctl start openstack-nova-$svc.service; done
 
  $> for svc in api cert compute network volume scheduler; do sudo systemctl enable openstack-nova-$svc.service; done
 
  $> for svc in api cert compute network volume scheduler; do sudo systemctl enable openstack-nova-$svc.service; done
 
Nova is initially running in no-auth mode.
 
 
Now [https://fedoraproject.org/wiki/Getting_started_with_OpenStack_on_Fedora_17#Configure_nova_to_use_keystone configure] to use keystone auth.
 
  
 
|results=
 
|results=
Line 18: Line 19:
 
  $> 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
  
 
}}
 
}}

Revision as of 10:40, 8 March 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 sed -i -e 's/# \(pipeline = .*\keystone\)/\1/g' /etc/nova/api-paste.ini
$> . ./keystonerc
$> sudo openstack-config-set /etc/nova/api-paste.ini filter:authtoken admin_token $ADMIN_TOKEN

Start the services:

$> for svc in api cert compute network volume scheduler; do sudo systemctl start openstack-nova-$svc.service; done
$> for svc in api cert compute network volume scheduler; 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