Public bug reported: The issue in Bug #1065511 is occurring again in the Grizzly (2013.1) packages of Cinder. Setting a "state_path = /var/lib/cinder" in "/etc/cinder/cinder.conf" allows tgtd to create the files in the correct directory.
root@controller:~# lsb_release -rd Description: Ubuntu 13.04 Release: 13.04 root@controller:~# dpkg -s cinder-volume Package: cinder-volume Status: install ok installed Priority: extra Section: net Installed-Size: 101 Maintainer: Chuck Short <zul...@ubuntu.com> Architecture: all Source: cinder Version: 1:2013.1-0ubuntu1 2013-04-22 00:36:54 INFO [cinder.volume.manager] volume volume-5e49e238-7c52-4227-949c-4b32001b707f: creating 2013-04-22 00:36:54 ERROR [cinder.volume.manager] volume volume-5e49e238-7c52-4227-949c-4b32001b707f: create failed 2013-04-22 00:36:54 ERROR [cinder.openstack.common.rpc.amqp] Exception during message handling Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/amqp.py", line 430, in _process_data rval = self.proxy.dispatch(ctxt, version, method, **args) File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/dispatcher.py", line 133, in dispatch return getattr(proxyobj, method)(ctxt, **kwargs) File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 282, in create_volume LOG.error(_("volume %s: create failed"), volume_ref['name']) File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__ self.gen.next() File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 274, in create_volume model_update = self.driver.create_export(context, volume_ref) File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 484, in create_export chap_auth) File "/usr/lib/python2.7/dist-packages/cinder/volume/iscsi.py", line 127, in create_iscsi_target utils.ensure_tree(FLAGS.volumes_dir) File "/usr/lib/python2.7/dist-packages/cinder/utils.py", line 1166, in ensure_tree os.makedirs(path) File "/usr/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/usr/lib/python2.7/dist-packages/volumes' ** Affects: cinder (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cinder in Ubuntu. https://bugs.launchpad.net/bugs/1171312 Title: cinder incorrectly creating tgt files in /usr/lib/python2.7/dist- packages/volumes/ To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cinder/+bug/1171312/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs