With a cinder volume attach I receive the following backtrace from cinder-volume container:
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher [req-d783fc46-682f-421c-ad9a-607ca3e8ee25 0823a3ed7aff4dd1b73c1213cc6747d6 39e82b5267dd4456ba4641f18752ee6e - - -] Exception during message handling: (RequiredOptError(),)
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher executor_callback))
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher executor_callback)
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher return f(*args, **kwargs)
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 1082, in initialize_connection
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher volume)
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher return f(*args, **kwargs)
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 643, in create_export
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher volume_path)
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/targets/iscsi.py", line 220, in create_export
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher **portals_config)
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/targets/lio.py", line 130, in create_iscsi_target
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher self._execute(*command_args, run_as_root=True)
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 246, in inner
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher do_log=False, semaphores=semaphores, delay=delay):
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher return self.gen.next()
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 200, in lock
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher ext_lock = external_lock(name, lock_file_prefix, lock_path)
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 137, in external_lock
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher lock_file_path = _get_lock_path(name, lock_file_prefix, lock_path)
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 131, in _get_lock_path
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher raise cfg.RequiredOptError('lock_path')
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher RequiredOptError: value required for option: lock_path
2015-07-10 18:30:19.146 95 ERROR oslo_messaging.rpc.dispatcher
2015-07-10 18:30:19.147 95 ERROR oslo_messaging._drivers.common [req-d783fc46-682f-421c-ad9a-607ca3e8ee25 0823a3ed7aff4dd1b73c1213cc6747d6 39e82b5267dd4456ba4641f18752ee6e - - -] Returning exception value required for option: lock_path to caller
2015-07-10 18:30:19.147 95 ERROR oslo_messaging._drivers.common [req-d783fc46-682f-421c-ad9a-607ca3e8ee25 0823a3ed7aff4dd1b73c1213cc6747d6 39e82b5267dd4456ba4641f18752ee6e - - -] ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply\n executor_callback))\n', ' File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch\n executor_callback)\n', ' File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch\n result = func(ctxt, **new_args)\n', ' File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper\n return f(*args, **kwargs)\n', ' File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 1082, in initialize_connection\n volume)\n', ' File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper\n return f(*args, **kwargs)\n', ' File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 643, in create_export\n volume_path)\n', ' File "/usr/lib/python2.7/site-packages/cinder/volume/targets/iscsi.py", line 220, in create_export\n **portals_config)\n', ' File "/usr/lib/python2.7/site-packages/cinder/volume/targets/lio.py", line 130, in create_iscsi_target\n self._execute(*command_args, run_as_root=True)\n', ' File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 246, in inner\n do_log=False, semaphores=semaphores, delay=delay):\n', ' File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__\n return self.gen.next()\n', ' File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 200, in lock\n ext_lock = external_lock(name, lock_file_prefix, lock_path)\n', ' File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 137, in external_lock\n lock_file_path = _get_lock_path(name, lock_file_prefix, lock_path)\n', ' File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 131, in _get_lock_path\n raise cfg.RequiredOptError(\'lock_path\')\n', 'RequiredOptError: value required for option: lock_path\n']
Reviewed: https:/ /review. openstack. org/200693 /git.openstack. org/cgit/ stackforge/ kolla/commit/ ?id=bdfcd74cf29 7ae448a63f43428 2b56fdf4d20d7a
Committed: https:/
Submitter: Jenkins
Branch: master
commit bdfcd74cf297ae4 48a63f434282b56 fdf4d20d7a
Author: Steven Dake <email address hidden>
Date: Fri Jul 10 12:48:21 2015 -0700
Turn off oslo_conccurrency locking in volume driver
Since the volume driver is only accessed through one process, we
probably don't need concurrency locking.
Change-Id: I50f0cb4a7ef92a 5fefe5fafb9f3dd adf0bf796b0
Closes-Bug: #1473535