m (missed half of the service commands) |
No edit summary |
||
Line 31: | Line 31: | ||
== Temporary workaround for packaging issue == | == Temporary workaround for packaging issue == | ||
The config files in /etc/tgt/conf.d/ don't honor globbing. | |||
Only the main /etc/tgt/targets.conf seems to. So to avoid | |||
that issue causing tgtd to not start: | |||
sudo sed -i 's/include/#include/' /etc/tgt/conf.d/{nova,cinder}.conf | |||
sudo sed -i '1iinclude /etc/nova/volumes/*' /etc/tgt/targets.conf | |||
sudo sed -i '1iinclude / | sudo sed -i '1iinclude /etc/cinder/volumes/*' /etc/tgt/targets.conf | ||
then restart tgtd: | then restart tgtd: |
Revision as of 10:03, 25 September 2012
Description
Setup required for the OpenStack Volumes. In the Folsom release of OpenStack, the nova-volume service was deprecated by the split out cinder service.
How to test
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 systemctl start openstack-cinder-volume.service
Actions after each reboot
The above commands are not persistent across reboots, so please rerun these commands after reboot:
sudo losetup -f /var/lib/cinder/cinder-volumes.img sudo systemctl start openstack-cinder-volume.service
If you intend to make them persist automatically, then enable the service to start in the standard manner, but ensure that the losetup is run early in the boot process, or instead, use an implicitly persistent block device/partition.
Temporary workaround for packaging issue
The config files in /etc/tgt/conf.d/ don't honor globbing. Only the main /etc/tgt/targets.conf seems to. So to avoid that issue causing tgtd to not start:
sudo sed -i 's/include/#include/' /etc/tgt/conf.d/{nova,cinder}.conf sudo sed -i '1iinclude /etc/nova/volumes/*' /etc/tgt/targets.conf sudo sed -i '1iinclude /etc/cinder/volumes/*' /etc/tgt/targets.conf
then restart tgtd:
sudo systemctl restart tgtd.service
Expected Results
Check the volume group is listed by this command
vgs
Check that no errors are reported in /var/log/cinder/* or by this command:
sudo systemctl status openstack-cinder-volume.service