Comment 3 for bug 1337210

Revision history for this message
Nurit Vilosny (nuritv) wrote :

Hi Ivan,
please do the following:

1. attach a volume to vm and see that it works.

2. configure the cinder to work with ISER driver:
      a. in /etc/cinder/cinder.conf change or add -
       [DEFAULT]
        volume_driver=cinder.volume.drivers.lvm.LVMISERDriver

       b. in /etc/tgt/conf.d/cinder.conf uncomment the line
           include /etc/cinder/volumes/*

3. try to attach a volume and you'll get an error message.

(also in screen-c-vol.log:
2014-07-02 11:58:02.170 ERROR oslo.messaging.rpc.dispatcher [req-f81d07d1-2d81-4f42-8eca-5115680ba9a8 ed3b90ac5a304fd8ae5114a3f999c7ba 3b137a73f4ed48a2b986738b18949642] Exception during message handling: Resource could not be found.
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/volume/manager.py", line 783, in initialize_connection
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher volume)
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/volume/drivers/lvm.py", line 524, in create_export
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher return self._create_export(context, volume)
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/volume/drivers/lvm.py", line 533, in _create_export
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher data = self.target_helper.create_export(context, volume, volume_path)
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/volume/iscsi.py", line 53, in create_export
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher chap_auth)
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/brick/iscsi/iscsi.py", line 227, in create_iscsi_target
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher raise exception.NotFound()
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher NotFound: Resource could not be found.
2014-07-02 11:58:02.170 TRACE oslo.messaging.rpc.dispatcher
2014-07-02 11:58:02.173 ERROR oslo.messaging._drivers.common [req-f81d07d1-2d81-4f42-8eca-5115680ba9a8 ed3b90ac5a304fd8ae5114a3f999c7ba 3b137a73f4ed48a2b986738b18949642] Returning exception Resource could not be found. to caller
2014-07-02 11:58:02.173 ERROR oslo.messaging._drivers.common [req-f81d07d1-2d81-4f42-8eca-5115680ba9a8 ed3b90ac5a304fd8ae5114a3f999c7ba 3b137a73f4ed48a2b986738b18949642] ['Traceback (most recent call last):\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n incoming.message))\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch\n result = getattr(endpoint, method)(ctxt, **new_args)\n', ' File "/opt/stack/cinder/cinder/volume/manager.py", line 783, in initialize_connection\n volume)\n', ' File "/opt/stack/cinder/cinder/volume/drivers/lvm.py", line 524, in create_export\n return self._create_export(context, volume)\n', ' File "/opt/stack/cinder/cinder/volume/drivers/lvm.py", line 533, in _create_export\n data = self.target_helper.create_export(context, volume, volume_path)\n', ' File "/opt/stack/cinder/cinder/volume/iscsi.py", line 53, in create_export\n chap_auth)\n', ' File "/opt/stack/cinder/cinder/brick/iscsi/iscsi.py", line 227, in create_iscsi_target\n raise exception.NotFound()\n', 'NotFound: Resource could not be found.\n']