QA:Testcase start OpenStack Glance services

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(remove from cloud SIG category)
 
(6 intermediate revisions by 4 users not shown)
Line 3: Line 3:
 
|setup=Follow [[QA:Testcase_setup_OpenStack_Nova]].
 
|setup=Follow [[QA:Testcase_setup_OpenStack_Nova]].
 
|actions=
 
|actions=
 +
 +
* 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:
 
Start and enable the Glance API and registry services:
Line 8: Line 18:
 
  $> for svc in api registry; do sudo systemctl enable openstack-glance-$svc.service; done
 
  $> for svc in api registry; do sudo systemctl enable openstack-glance-$svc.service; done
  
Glance is now running in no-auth mode.
+
|results=
 +
Check that the services are running:
 +
$> for svc in api registry; do systemctl status openstack-glance-$svc.service; done
  
Now [https://fedoraproject.org/wiki/Getting_started_with_OpenStack_on_Fedora_17#Configure_nova_to_use_keystone configure] glance to use keystone.
+
And check for errors in the logs:
 +
$> grep -i error /var/log/glance/*.log
  
Stop and restart the glance services directly with sudo:
 
$> for svc in api registry; do sudo systemctl stop openstack-glance-$svc.service; done
 
$> sudo /usr/bin/glance-api --config-file /etc/glance/glance-api.conf &
 
$> sudo /usr/bin/glance-registry --config-file /etc/glance/glance-registry.conf &
 
 
 
|results=
 
 
Check that the glance CLI works:
 
Check that the glance CLI works:
 
  $> glance index
 
  $> glance index
  
And check for errors in the logs:
 
$> grep -i error /var/log/glance/*.log
 
 
}}
 
}}
  
 
[[Category:OpenStack Test Cases]]
 
[[Category:OpenStack Test Cases]]
[[Category:Cloud SIG]]
 

Latest revision as of 06:16, 25 April 2012

Contents

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