As of 4ad6ca1ac93bd82db5f93b14411ad7b5dfa62e62 (Outputs the message about failing to bind to IPv6) I'm getting failures when using cinder-rtstool. Everything seems to have gone fine except Cinder thinks it wrong due to invalid handling around the rtstool command output.
612355 83534c6ee13b44b0ade8a6c277f3ef7a - - -] Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf cinder-rtstool create /dev/cinder-volumes/volume-61b5cb64-7e68-4f4e-bfb4-bff4b4f3db76 iqn.2010-10.org.openstack:volume-61b5cb64-7e68-4f4e-bfb4-bff4b4f3db76 Qgu37jgpP6o5oUdqpcMD VTnw35w7pVFNKmZ4
Exit code: 1
Stdout: u''
Stderr: u'Traceback (most recent call last):\n File "/bin/cinder-rtstool", line 10, in <module>\n sys.exit(main())\n File "/usr/lib/python2.7/site-packages/cinder/cmd/rtstool.py", line 192, in main\n create(backing_device, name, userid, password, initiator_iqns)\n File "/usr/lib/python2.7/site-packages/cinder/cmd/rtstool.py", line 80, in create\n print(_(\'Failed to bind to IPv6.\'))\n File "/usr/lib/python2.7/site-packages/oslo/i18n/_message.py", line 167, in __str__\n raise UnicodeError(msg)\nUnicodeError\n'
2014-12-23 16:49:29.263 9517 ERROR oslo.messaging.rpc.dispatcher [req-00fb0e3c-b8bc-4dec-b643-52387bff0edb e26f0d5b843a4e6099fe77b33d612355 83534c6ee13b44b0ade8a6c277f3ef7a - - -] Exception during message handling: Failed to create iscsi target for volume volume-61b5cb64-7e68-4f4e-bfb4-bff4b4f3db76.
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 137, in _dispatch_and_reply
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 180, in _dispatch
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 126, in _do_dispatch
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher return f(*args, **kwargs)
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 894, in initialize_connection
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher volume)
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher return f(*args, **kwargs)
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 547, in create_export
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher return self._create_export(context, volume)
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 576, in _create_export
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher self.configuration)
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/iscsi.py", line 64, in create_export
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher conf.iscsi_write_cache)
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/brick/iscsi/iscsi.py", line 560, in create_iscsi_target
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher raise exception.ISCSITargetCreateFailed(volume_id=vol_id)
2014-12-23 16:49:29.263 9517 TRACE oslo.messaging.rpc.dispatcher ISCSITargetCreateFailed: Failed to create iscsi target for volume volume-61b5cb64-7e68-4f4e-bfb4-bff4b4f3db76.
Fix proposed to branch: master /review. openstack. org/143695
Review: https:/