From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=A brief description of the functionality being tested. |setup=Optionally include information on preparing the test environment |actions= Be as specifi...")
 
(remove from cloud SIG category)
 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=A brief description of the functionality being tested.
|description=Test that the Glance API and registry services start without error.
|setup=Optionally include information on preparing the test environment
|setup=Follow [[QA:Testcase_setup_OpenStack_Nova]].
|actions=
|actions=
Be as specific as required for the target audience.  
 
# Start here ...
* Change glance configuration to use keystone:
# Next do this ...
$> sudo openstack-config-set /etc/glance/glance-api.conf paste_deploy flavor keystone
# Finally click that
$> sudo openstack-config-set /etc/glance/glance-api-paste.ini filter:authtoken admin_tenant_name service
$> sudo openstack-config-set /etc/glance/glance-api-paste.ini filter:authtoken admin_user glance
$> sudo openstack-config-set /etc/glance/glance-api-paste.ini filter:authtoken admin_password servicepass
$> sudo openstack-config-set /etc/glance/glance-registry.conf paste_deploy flavor keystone
$> sudo openstack-config-set /etc/glance/glance-registry-paste.ini filter:authtoken admin_tenant_name service
$> sudo openstack-config-set /etc/glance/glance-registry-paste.ini filter:authtoken admin_user glance
$> sudo openstack-config-set /etc/glance/glance-registry-paste.ini filter:authtoken admin_password servicepass
 
Start and enable the Glance API and registry services:
$> for svc in api registry; do sudo systemctl start openstack-glance-$svc.service; done
$> for svc in api registry; do sudo systemctl enable openstack-glance-$svc.service; done
 
|results=
|results=
The following must be true to consider this a successful test run. Be brief ... but explicit.  
Check that the services are running:
# Step #1 completes without error
$> for svc in api registry; do systemctl status openstack-glance-$svc.service; done
# The system boots into runlevel 5
 
# Program completes wth exit code 0
And check for errors in the logs:
$> grep -i error /var/log/glance/*.log
 
Check that the glance CLI works:
$> glance index
 
}}
}}


[[Category:OpenStack Test Cases]]
[[Category:OpenStack Test Cases]]
[[Category:Cloud SIG]]

Latest revision as of 06:16, 25 April 2012

Description

Test that the Glance API and registry services start without error.

Setup

Follow QA:Testcase_setup_OpenStack_Nova.

How to test

  • Change glance configuration to use keystone:
$> sudo openstack-config-set /etc/glance/glance-api.conf paste_deploy flavor keystone
$> sudo openstack-config-set /etc/glance/glance-api-paste.ini filter:authtoken admin_tenant_name service
$> sudo openstack-config-set /etc/glance/glance-api-paste.ini filter:authtoken admin_user glance
$> sudo openstack-config-set /etc/glance/glance-api-paste.ini filter:authtoken admin_password servicepass
$> sudo openstack-config-set /etc/glance/glance-registry.conf paste_deploy flavor keystone
$> sudo openstack-config-set /etc/glance/glance-registry-paste.ini filter:authtoken admin_tenant_name service
$> sudo openstack-config-set /etc/glance/glance-registry-paste.ini filter:authtoken admin_user glance
$> sudo openstack-config-set /etc/glance/glance-registry-paste.ini filter:authtoken admin_password servicepass

Start and enable the Glance API and registry services:

$> for svc in api registry; do sudo systemctl start openstack-glance-$svc.service; done
$> for svc in api registry; do sudo systemctl enable openstack-glance-$svc.service; done

Expected Results

Check that the services are running:

$> for svc in api registry; do systemctl status openstack-glance-$svc.service; done

And check for errors in the logs:

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

Check that the glance CLI works:

$> glance index