最近跟着搭建opensatck yoga版本,在安装 完成cinder组件后,无法创建实例显示 cinder.exception.VolumeBackendAPIException: 从存储卷后端 API 返回了不正确或意外的响应:Create export for volume failed (资源没有找到。).
错误如下
2022-06-01 20:24:26.774 155645 INFO oslo.privsep.daemon [req-4c880966-f9b3-442c-9bce-84f1d109c286 a568986290a743f4ac4912589a8e04d7 - - - -] Running privsep helper: ['sudo', 'cinder-rootwrap', '/etc/cinder/rootwrap.conf', 'privsep-helper', '--config-file', '/etc/cinder/cinder.conf', '--privsep_context', 'cinder.privsep.sys_admin_pctxt', '--privsep_sock_path', '/tmp/tmp3gtrk7uk/privsep.sock']
2022-06-01 20:24:27.549 155645 INFO oslo.privsep.daemon [req-4c880966-f9b3-442c-9bce-84f1d109c286 a568986290a743f4ac4912589a8e04d7 - - - -] Spawned new privsep daemon via rootwrap
2022-06-01 20:24:27.409 156329 INFO oslo.privsep.daemon [-] privsep daemon starting
2022-06-01 20:24:27.414 156329 INFO oslo.privsep.daemon [-] privsep process running with uid/gid: 0/0
2022-06-01 20:24:27.417 156329 INFO oslo.privsep.daemon [-] privsep process running with capabilities (eff/prm/inh): CAP_CHOWN|CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_FOWNER|CAP_NET_ADMIN|CAP_SYS_ADMIN/CAP_CHOWN|CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_FOWNER|CAP_NET_ADMIN|CAP_SYS_ADMIN/none
2022-06-01 20:24:27.417 156329 INFO oslo.privsep.daemon [-] privsep daemon running as pid 156329
2022-06-01 20:24:27.767 155645 WARNING cinder.volume.targets.tgt [req-4c880966-f9b3-442c-9bce-84f1d109c286 a568986290a743f4ac4912589a8e04d7 - - - -] Failed to create iscsi target for Volume ID: volume-a0faeace-0906-4c0a-85b5-17a1f0049f13. It could be caused by problem with concurrency. Also please ensure your tgtd config file contains 'include /var/lib/cinder/volumes/*'
2022-06-01 20:24:28.897 155645 WARNING cinder.volume.targets.tgt [req-4c880966-f9b3-442c-9bce-84f1d109c286 a568986290a743f4ac4912589a8e04d7 - - - -] Failed to create iscsi target for Volume ID: volume-a0faeace-0906-4c0a-85b5-17a1f0049f13. It could be caused by problem with concurrency. Also please ensure your tgtd config file contains 'include /var/lib/cinder/volumes/*'
2022-06-01 20:24:31.003 155645 WARNING cinder.volume.targets.tgt [req-4c880966-f9b3-442c-9bce-84f1d109c286 a568986290a743f4ac4912589a8e04d7 - - - -] Failed to create iscsi target for Volume ID: volume-a0faeace-0906-4c0a-85b5-17a1f0049f13. It could be caused by problem with concurrency. Also please ensure your tgtd config file contains 'include /var/lib/cinder/volumes/*'
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager [req-4c880966-f9b3-442c-9bce-84f1d109c286 a568986290a743f4ac4912589a8e04d7 - - - -] Create export for volume failed (资源没有找到。).: cinder.exception.NotFound: 资源没有找到。
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager Traceback (most recent call last):
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager File "/usr/lib/python3/dist-packages/cinder/volume/manager.py", line 4785, in _connection_create
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager model_update = self.driver.create_export(ctxt.elevated(),
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager File "/usr/lib/python3/dist-packages/cinder/volume/drivers/lvm.py", line 833, in create_export
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager export_info = self.target_driver.create_export(
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager File "/usr/lib/python3/dist-packages/cinder/volume/targets/iscsi.py", line 194, in create_export
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager tid = self.create_iscsi_target(iscsi_name,
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager File "/usr/lib/python3/dist-packages/cinder/utils.py", line 664, in _wrapper
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager return r(f, *args, **kwargs)
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager File "/usr/lib/python3/dist-packages/tenacity/__init__.py", line 423, in __call__
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager do = self.iter(retry_state=retry_state)
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager File "/usr/lib/python3/dist-packages/tenacity/__init__.py", line 372, in iter
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager raise retry_exc.reraise()
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager File "/usr/lib/python3/dist-packages/tenacity/__init__.py", line 189, in reraise
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager raise self.last_attempt.result()
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager File "/usr/lib/python3.10/concurrent/futures/_base.py", line 439, in result
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager return self.__get_result()
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager File "/usr/lib/python3.10/concurrent/futures/_base.py", line 391, in __get_result
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager raise self._exception
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager File "/usr/lib/python3/dist-packages/tenacity/__init__.py", line 426, in __call__
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager result = fn(*args, **kwargs)
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager File "/usr/lib/python3/dist-packages/cinder/volume/targets/tgt.py", line 207, in create_iscsi_target
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager raise exception.NotFound()
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager cinder.exception.NotFound: 资源没有找到。
2022-06-01 20:24:31.004 155645 ERROR cinder.volume.manager
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server [req-4c880966-f9b3-442c-9bce-84f1d109c286 a568986290a743f4ac4912589a8e04d7 - - - -] Exception during message handling: cinder.exception.VolumeBackendAPIException: 从存储卷后端 API 返回了不正确或意外的响应:Create export for volume failed (资源没有找到。).
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/cinder/volume/manager.py", line 4785, in _connection_create
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server model_update = self.driver.create_export(ctxt.elevated(),
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/cinder/volume/drivers/lvm.py", line 833, in create_export
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server export_info = self.target_driver.create_export(
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/cinder/volume/targets/iscsi.py", line 194, in create_export
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server tid = self.create_iscsi_target(iscsi_name,
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/cinder/utils.py", line 664, in _wrapper
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server return r(f, *args, **kwargs)
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/tenacity/__init__.py", line 423, in __call__
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server do = self.iter(retry_state=retry_state)
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/tenacity/__init__.py", line 372, in iter
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server raise retry_exc.reraise()
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/tenacity/__init__.py", line 189, in reraise
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server raise self.last_attempt.result()
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.10/concurrent/futures/_base.py", line 439, in result
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server return self.__get_result()
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.10/concurrent/futures/_base.py", line 391, in __get_result
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server raise self._exception
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/tenacity/__init__.py", line 426, in __call__
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server result = fn(*args, **kwargs)
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/cinder/volume/targets/tgt.py", line 207, in create_iscsi_target
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server raise exception.NotFound()
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server cinder.exception.NotFound: 资源没有找到。
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server During handling of the above exception, another exception occurred:
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/dispatcher.py", line 309, in dispatch
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/dispatcher.py", line 229, in _do_dispatch
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/cinder/volume/manager.py", line 4858, in attachment_update
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server connection_info = self._connection_create(context,
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/cinder/volume/manager.py", line 4790, in _connection_create
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server raise exception.VolumeBackendAPIException(data=err_msg)
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server cinder.exception.VolumeBackendAPIException: 从存储卷后端 API 返回了不正确或意外的响应:Create export for volume failed (资源没有找到。).
2022-06-01 20:24:31.007 155645 ERROR oslo_messaging.rpc.server
解决方法如下
此处内容需要评论回复后(审核通过)方可阅读。
问题在tgt配置文件,加上即可,要不然tgt会报错找不到
如果碰到任何问题 也可以加 作者微信交流奥
28 条评论
大佬,这个咋搞呢,搞不定了→_→
求审核通过,这个报错好难
我想看看如何解决的
我也遇到这个问题
让我康康
感谢博主,真的成功了,祝博主完事顺利୧(๑•̀⌄•́๑)૭
我想看方法
testOωO
ad
求解答
我用的也是Y版,遇到了一模一样的问题,捣鼓两天了,没解决,求解答
啥问题解决了吗OωO
没有
用楼主的办法解决了,这个确实是个大坑
123
什么原因
解决了吗
123
评论可见么?
我的也出现这个问题
解决了吗
我也遇到了这个问题OωO
解决了吗
123
回复 可见 白嫖奥
我想看看如何解决的