From Fedora Project Wiki

No edit summary
No edit summary
Line 3: Line 3:
|setup=Follow [[QA:Testcase_setup_OpenStack_Nova]].
|setup=Follow [[QA:Testcase_setup_OpenStack_Nova]].
|actions=
|actions=
Start and enable the Glance API and registry services:
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 start openstack-glance-$svc.service; done
  $> 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.
Now [https://fedoraproject.org/wiki/Getting_started_with_OpenStack_on_Fedora_17#Configure_nova_to_use_keystone configure] glance to use keystone.
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=
|results=
Check that the services are running:
Check that the glance CLI works:
  $> for svc in api registry; do sudo service openstack-glance-$svc status; done
  $> glance index
 
And check for errors in the logs:
And check for errors in the logs:
  $> grep -i error /var/log/glance/*.log
  $> grep -i error /var/log/glance/*.log

Revision as of 09:44, 8 March 2012

Description

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

Setup

Follow QA:Testcase_setup_OpenStack_Nova.

How to test

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

Glance is now running in no-auth mode.

Now configure glance to use keystone.

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 &

Expected Results

Check that the glance CLI works:

$> glance index

And check for errors in the logs:

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