Openstack with Fiber storage

asked 2013-07-08 09:40:49 -0600

Y Sertdemir gravatar image


We are trying to build openstack cloud (Grizzly) on our system. We have a Fiber storage to try if we can use it as openstack volume. I am really new to Openstack so I cannot decide how can we use fiber storage in openstack. I installed OpenStack controller and everything seems to be fine. Unfortunately, I stuck at cinder volume creation, as it tries to create an iscsi target, but I do not have one. I guess I need to forward cinder to LVM group directly but I do not know how. I am using multipath for defined LUNs and it works fine. OS is ubuntu 12.04.

I had these errors on cinder-volume.log

ProcessExecutionError: Unexpected error while running command. Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvremove -f cinder-volumes/volume-afb2b4a1-44c6-4f2f-aea3-a9ba4e80abec Exit code: 5 Stdout: '' Stderr: ' WARNING: Ignoring duplicate config node: filter (seeking filter)\n Can\'t remove open logical volume "volume-afb2b4a1-44c6-4f2f-aea3-a9ba4e80abec"\n' 2013-07-08 17:20:41 INFO [cinder.volume.manager] volume volume-afb2b4a1-44c6-4f2f-aea3-a9ba4e80abec: deleted successfully 2013-07-08 17:21:16 INFO [cinder.volume.manager] Updating volume status 2013-07-08 17:21:47 INFO [cinder.volume.manager] volume volume-0a6f175e-66b3-4c8f-af9c-d11f5dea582a: creating 2013-07-08 17:21:48 INFO [cinder.volume.iscsi] Creating iscsi_target for: volume-0a6f175e-66b3-4c8f-af9c-d11f5dea582a 2013-07-08 17:21:48 ERROR [cinder.volume.iscsi] Failed to create iscsi target for volume id:volume-0a6f175e-66b3-4c8f-af9c-d11f5dea582a. Please ensure your tgtd config file contains 'include /var/lib/cinder/volumes/*' 2013-07-08 17:21:48 ERROR [cinder.volume.manager] volume volume-0a6f175e-66b3-4c8f-af9c-d11f5dea582a: create failed 2013-07-08 17:21:48 ERROR [cinder.openstack.common.rpc.amqp] Exception during message handling


[DEFAULT] rootwrap_config = /etc/cinder/rootwrap.conf api_paste_confg = /etc/cinder/api-paste.ini #iscsi_helper = tgtadm volume_name_template = volume-%s volume_group = cinder-volumes verbose = True auth_strategy = keystone state_path = /var/lib/cinder lock_path = /var/lock/cinder volumes_dir = /var/lib/cinder/volumes

My LVM Group name is cinder-volumes

edit retag flag offensive close merge delete


The error message has "Please ensure your tgtd config file contains 'include /var/lib/cinder/volumes/*'" - did you do that?

darragh-oreilly gravatar imagedarragh-oreilly ( 2013-07-09 11:36:55 -0600 )edit

darragh-oreilly, tgtd config file has that text. I guess that main problem is "Failed to create iscsi target for volume id:volume-0a6f175e-66b3-4c8f-af9c-d11f5dea582a", I do not have iscsi environment in my openstack, I am using fiber channel storage. I stuck at this level, I do not know how to pro

Y Sertdemir gravatar imageY Sertdemir ( 2013-07-09 23:20:12 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-07-10 02:29:32 -0600

darragh-oreilly gravatar image

As you probably know, iscsi can be done entirely in software - if you have the tgt package installed, then you have it. The fact that cinder-volumes is being backed by FC luns should not matter.

This is what works for me on Ubuntu:

root@controller:/# cat /etc/tgt/targets.conf 
# Empty targets configuration file -- please see the package
# documentation directory for an example.
# You can drop individual config snippets into /etc/tgt/conf.d
include /etc/tgt/conf.d/*.conf

root@controller:/# ls /etc/tgt/conf.d/*.conf

root@controller:/# cat /etc/tgt/conf.d/cinder_tgt.conf
include /var/lib/cinder/volumes/*
edit flag offensive delete link more


Yes, I used tgt to "share" the FC LUNS for my VMs and it works. I did not test it yet though.

Y Sertdemir gravatar imageY Sertdemir ( 2013-09-06 16:59:59 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2013-07-08 09:40:49 -0600

Seen: 594 times

Last updated: Jul 10 '13