Last active
August 29, 2015 14:26
-
-
Save AlexYangYu/f498e871a6894f8c17ec to your computer and use it in GitHub Desktop.
BlockDeviceDriver Errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cinder Multi Backend | |
[root@node-67 ~]# cinder service-list | |
+------------------+-----------------------------+------+---------+-------+----------------------------+-----------------+ | |
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | | |
+------------------+-----------------------------+------+---------+-------+----------------------------+-----------------+ | |
| cinder-scheduler | node-67.domain.tld | nova | enabled | up | 2015-07-30T06:15:50.000000 | None | | |
| cinder-volume | node-67.domain.tld@iscsi | nova | enabled | up | 2015-07-30T06:15:50.000000 | None | | |
| cinder-volume | node-70.domain.tld@local-70 | nova | enabled | up | 2015-07-30T06:15:55.000000 | None | | |
+------------------+-----------------------------+------+---------+-------+----------------------------+-----------------+ | |
[root@node-67 ~]# cinder type-list | |
+--------------------------------------+---------+ | |
| ID | Name | | |
+--------------------------------------+---------+ | |
| 47604576-5e39-4442-81a3-d06bcc5190c0 | iscsi | | |
| 516878f5-061b-4a50-91d0-745cb819fe70 | node-70 | | |
+--------------------------------------+---------+ | |
[root@node-67 ~]# cinder extra-specs-list | |
+--------------------------------------+---------+---------------------------------------+ | |
| ID | Name | extra_specs | | |
+--------------------------------------+---------+---------------------------------------+ | |
| 47604576-5e39-4442-81a3-d06bcc5190c0 | iscsi | {u'volume_backend_name': u'iscsi'} | | |
| 516878f5-061b-4a50-91d0-745cb819fe70 | node-70 | {u'volume_backend_name': u'local-70'} | | |
+--------------------------------------+---------+---------------------------------------+ | |
#node-67(controller)上的cinder.conf | |
default_volume_type=iscsi | |
enabled_backends=iscsi | |
[iscsi] | |
volume_backend_name=iscsi | |
volume_group=cinder | |
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver | |
iscsi_ip_address=192.168.1.2 | |
iscsi_helper=tgtadm | |
#node-70(compute, cinder-volume)上的cinder.conf | |
enabled_backends=local-70 | |
[local-70] | |
volume_backend_name=local-70 | |
volume_driver=cinder.volume.drivers.block_device.BlockDeviceDriver | |
available_devices='/dev/sdb,/dev/sdc' | |
#创建卷的命令 | |
[root@node-67 ~]# cinder create --volume-type node-70 --display-name vol-node70-1 1 | |
[root@node-67 ~]# cinder list | |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ | |
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | | |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ | |
| 41ac1560-69ef-444f-9fcc-1dea385084c5 | available | vol-node70-1 | 1 | node-70 | false | | | |
| 6402e2dd-541b-4946-801e-5acaaf1ff01f | available | iscsi | 1 | iscsi | false | | | |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ | |
#创建虚拟机的命令 | |
nova boot --flavor 1 --image d88390ec-8c2f-4921-b86a-895aa5259479 --nic net-id=b6886586-8de6-4204-9661-6f2f90f0eb38 --availability-zone nova:node-70.domain.tld test | |
# 通过Horizon挂载硬盘 | |
# Node-70 cinder-volume 报错信息如下 | |
=================== | |
2015-07-30 05:45:00.611 5582 INFO cinder.brick.iscsi.iscsi [req-1093e970-7d67-40fa-849b-f71437a6a19b 1e50f536cbee493598e7982e6dd89300 ab9c250fe6404cbaab4ddc931a67fe40 - - -] Creating iscsi_target for volume: volume-41ac1560-69ef-444f-9fcc-1dea385084c5 | |
2015-07-30 05:45:00.765 5582 ERROR cinder.brick.iscsi.iscsi [req-1093e970-7d67-40fa-849b-f71437a6a19b 1e50f536cbee493598e7982e6dd89300 ab9c250fe6404cbaab4ddc931a67fe40 - - -] Failed to create iscsi target for volume id:volume-41ac1560-69ef-444f-9fcc-1dea385084c5. | |
2015-07-30 05:45:00.773 5582 ERROR oslo.messaging.rpc.dispatcher [req-1093e970-7d67-40fa-849b-f71437a6a19b 1e50f536cbee493598e7982e6dd89300 ab9c250fe6404cbaab4ddc931a67fe40 - - -] Exception during message handling: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead. | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last): | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 137, in _dispatch_and_reply | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher incoming.message)) | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 180, in _dispatch | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args) | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 126, in _do_dispatch | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args) | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/osprofiler/profiler.py", line 105, in wrapper | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher return f(*args, **kwargs) | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 893, in initialize_connection | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher volume) | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/osprofiler/profiler.py", line 105, in wrapper | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher return f(*args, **kwargs) | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/block_device.py", line 84, in create_export | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher self.configuration) | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/cinder/volume/iscsi.py", line 61, in create_export | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher bsoflags=conf.iscsi_bsoflags) | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/cinder/brick/iscsi/iscsi.py", line 544, in create_iscsi_target | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher LOG.error("%s" % e) | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo_i18n/_message.py", line 167, in __str__ | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher raise UnicodeError(msg) | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead. | |
2015-07-30 05:45:00.773 5582 TRACE oslo.messaging.rpc.dispatcher | |
2015-07-30 05:45:00.777 5582 ERROR oslo.messaging._drivers.common [req-1093e970-7d67-40fa-849b-f71437a6a19b 1e50f536cbee493598e7982e6dd89300 ab9c250fe6404cbaab4ddc931a67fe40 - - -] Returning exception Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead. to caller | |
2015-07-30 05:45:00.778 5582 ERROR oslo.messaging._drivers.common [req-1093e970-7d67-40fa-849b-f71437a6a19b 1e50f536cbee493598e7982e6dd89300 ab9c250fe6404cbaab4ddc931a67fe40 - - -] ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 137, in _dispatch_and_reply\n incoming.message))\n', ' File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 180, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', ' File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 126, in _do_dispatch\n result = getattr(endpoint, method)(ctxt, **new_args)\n', ' File "/usr/lib/python2.6/site-packages/osprofiler/profiler.py", line 105, in wrapper\n return f(*args, **kwargs)\n', ' File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 893, in initialize_connection\n volume)\n', ' File "/usr/lib/python2.6/site-packages/osprofiler/profiler.py", line 105, in wrapper\n return f(*args, **kwargs)\n', ' File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/block_device.py", line 84, in create_export\n self.configuration)\n', ' File "/usr/lib/python2.6/site-packages/cinder/volume/iscsi.py", line 61, in create_export\n bsoflags=conf.iscsi_bsoflags)\n', ' File "/usr/lib/python2.6/site-packages/cinder/brick/iscsi/iscsi.py", line 544, in create_iscsi_target\n LOG.error("%s" % e)\n', ' File "/usr/lib/python2.6/site-packages/oslo_i18n/_message.py", line 167, in __str__\n raise UnicodeError(msg)\n', 'UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.\n'] | |
2015-07-30 05:45:01.888 5582 INFO cinder.brick.iscsi.iscsi [req-1da210e4-73e1-4042-b124-62c47fdebf6b 1e50f536cbee493598e7982e6dd89300 ab9c250fe6404cbaab4ddc931a67fe40 - - -] Creating iscsi_target for volume: volume-41ac1560-69ef-444f-9fcc-1dea385084c5 | |
2015-07-30 05:45:01.988 5582 ERROR cinder.brick.iscsi.iscsi [req-1da210e4-73e1-4042-b124-62c47fdebf6b 1e50f536cbee493598e7982e6dd89300 ab9c250fe6404cbaab4ddc931a67fe40 - - -] Failed to create iscsi target for volume id:volume-41ac1560-69ef-444f-9fcc-1dea385084c5. | |
2015-07-30 05:45:01.989 5582 ERROR oslo.messaging.rpc.dispatcher [req-1da210e4-73e1-4042-b124-62c47fdebf6b 1e50f536cbee493598e7982e6dd89300 ab9c250fe6404cbaab4ddc931a67fe40 - - -] Exception during message handling: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead. | |
2015-07-30 05:45:01.989 5582 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last): | |
2015-07-30 05:45:01.989 5582 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 137, in _dispatch_and_reply | |
2015-07-30 05:45:01.989 5582 TRACE oslo.messaging.rpc.dispatcher incoming.message)) | |
2015-07-30 05:45:01.989 5582 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 180, in _dispatch | |
2015-07-30 05:45:01.989 5582 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment