[openstack-dev] [nova][cinder] heads-up on a tgtd/iscsiadm issue

Dan Prince dprince at redhat.com
Wed Sep 26 15:12:33 UTC 2012

----- Original Message -----
> From: "Eoghan Glynn" <eglynn at redhat.com>
> To: "OpenStack Development Mailing List" <openstack-dev at lists.openstack.org>
> Sent: Tuesday, September 25, 2012 11:42:50 AM
> Subject: [openstack-dev] [nova][cinder] heads-up on a tgtd/iscsiadm issue
> Folks,
> On the Fedora OpenStack testday[1] we ran into problems with tgtd
> picking up iscsi target config files for volumes.
> Since these commits[2],[3] the --conf option is used explicitly
> with 'tgt-admin update', with the result that it appears there is
> no problem with the target config being picked up by tgtd from
> /etc/cinder/volumes.
> However, if tgtd is then restarted, we see subsequent attempts to use
> (e.g. attach) pre-existing volumes fail with iscsiadm login timeouts.
> The issue can be worked around by adding the line:
>   include /etc/cinder/volumes/*
> to the tgt targets config file (/etc/tgt/targets.conf).
> It would be preferable[4] if this failed fast from the get-go, as
> opposed to only blowing up on tgtd restart.

Thanks for this Eoghan. To be clear the work around you mentioned is now the configuration requirement.

With the recent reverts users should also see this error message if they haven't configured things properly:

Failed to create iscsi target for volume id:volume-xxx... Please ensure your tgtd config file contains 'include /var/lib/cinder/volumes/*'

Hopefully this makes things much more clear.


> Cheers,
> Eoghan
> [1] https://fedoraproject.org/wiki/Test_Day:2012-09-18_OpenStack
> [2] https://github.com/openstack/nova/commit/0a09bf5f
> [3] https://github.com/openstack/cinder/commit/09036039
> [4] https://bugs.launchpad.net/cinder/+bug/1056246
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

More information about the OpenStack-dev mailing list