QA:Testcase Create Cinder Volumes

From FedoraProject

Revision as of 10:22, 20 September 2012 by Eglynn (Talk | contribs)

Jump to: navigation, search

Description

Setup required for the OpenStack Volumes.


How to test

In the Folsom release of OpenStack, the nova-volume service was deprecated by the split out cinder service.

To create the cinder-volumes Volume Group for the openstack-cinder-volume service

sudo truncate -s20G /var/lib/cinder/cinder-volumes.img
sudo vgcreate cinder-volumes $(sudo losetup --show -f /var/lib/cinder/cinder-volumes.img)

Because the volume service is dependent on the volume group being available, it's not started by default, so to do that:

sudo service openstack-cinder-volume start

Note! None of the above commands are persistent across reboots, so please rerun them after reboot, or configure them to run automatically on reboot.

Also note that in Folsom, the iSCSI target configuration files are dropped into /var/lib/nova/volumes, so we need to ensure that these are picked up by the tgt daemon.

Prepend that directory to the tgt target configuration file:

sudo sed -i '1iinclude /var/lib/nova/volumes/*' /etc/tgt/targets.conf

then restart tgtd:

sudo service tgtd restart

Expected Results

Check that no errors are reported in /var/log/cinder/* or by this command:

sudo service openstack-cinder-volume status