<div dir="ltr">This got resolved after i started tgtd.service<br><br>For some reason devstack on F20 didn't have it started by default<br><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 16, 2014 at 11:08 PM, Deepak Shetty <span dir="ltr"><<a href="mailto:dpkshetty@gmail.com" target="_blank">dpkshetty@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">(Sending to users list, as realised this may not be a -dev list related)<br>---------------------------------------------------------------------------------------------------<div>
<div class="h5"><br><div><div class="gmail_quote">
<div dir="ltr"><div><div><div><div><div><span style="font-family:courier new,monospace">I am trying devstack on F20 setup with Manila sources.<br><br></span></div><span style="font-family:courier new,monospace">When i am trying to do<br>
<b>manila create --name cinder_vol_share_using_nfs2 --share-network-id 36ec5a17-cef6-44a8-a518-457a6f36faa0 NFS 2 </b><br><br></span></div><span style="font-family:courier new,monospace">I see the below error in c-vol due to which even tho' my service VM is started, manila create errors out as cinder volume is not getting exported as iSCSI<br>
</span>
<p><span style="font-family:courier new,monospace">
2014-06-16 16:39:36.151 INFO cinder.volume.flows.manager.create_volume [req-15d0b435-f6ce-41cd-ae4a-3851b07cf774 1a7816e5f0144c539192360cdc9672d5 b65a066f32df4aca80fa9a<br>
6d5c795095] Volume 8bfd424d-9877-4c20-a9d1-058c06b9bdda: being created as raw with specification: {'status': u'creating', 'volume_size': 2, 'volume_name': u'volume-8bfd<br>
424d-9877-4c20-a9d1-058c06b9bdda'}<br>
2014-06-16 16:39:36.151 DEBUG cinder.openstack.common.processutils [req-15d0b435-f6ce-41cd-ae4a-3851b07cf774 1a7816e5f0144c539192360cdc9672d5 b65a066f32df4aca80fa9a6d5c<br>
795095] Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-8bfd424d-9877-4c20-a9d1-058c06b9bdda stack-volumes -L 2g from (pid=4<br>
623) execute /opt/stack/cinder/cinder/openstack/common/processutils.py:142<br>
2014-06-16 16:39:36.828 INFO cinder.volume.flows.manager.create_volume [req-15d0b435-f6ce-41cd-ae4a-3851b07cf774 1a7816e5f0144c539192360cdc9672d5 b65a066f32df4aca80fa9a<br>
6d5c795095] Volume volume-8bfd424d-9877-4c20-a9d1-058c06b9bdda (8bfd424d-9877-4c20-a9d1-058c06b9bdda): created successfully<br>
2014-06-16 16:39:38.404 WARNING cinder.context [-] Arguments dropped when creating context: {'user': u'd9bb59a6a2394483902b382a991ffea2', 'tenant': u'b65a066f32df4aca80<br>
fa9a6d5c795095', 'user_identity': u'd9bb59a6a2394483902b382a991ffea2 b65a066f32df4aca80fa9a6d5c795095 - - -'}<br>
2014-06-16 16:39:38.426 DEBUG cinder.volume.manager [req-083cd582-1b4d-4e7c-a70c-2c6282d8d799 d9bb59a6a2394483902b382a991ffea2 b65a066f32df4aca80fa9a6d5c795095] Volume <br>
8bfd424d-9877-4c20-a9d1-058c06b9bdda: creating export from (pid=4623) initialize_connection /opt/stack/cinder/cinder/volume/manager.py:781<br>
2014-06-16 16:39:38.428 INFO cinder.brick.iscsi.iscsi [req-083cd582-1b4d-4e7c-a70c-2c6282d8d799 d9bb59a6a2394483902b382a991ffea2 b65a066f32df4aca80fa9a6d5c795095] Creat<br>
ing iscsi_target for: volume-8bfd424d-9877-4c20-a9d1-058c06b9bdda<br>
2014-06-16 16:39:38.440 DEBUG cinder.brick.iscsi.iscsi [req-083cd582-1b4d-4e7c-a70c-2c6282d8d799 d9bb59a6a2394483902b382a991ffea2 b65a066f32df4aca80fa9a6d5c795095] Crea<br>
ted volume path /opt/stack/data/cinder/volumes/volume-8bfd424d-9877-4c20-a9d1-058c06b9bdda,<br>
content: <br></span>
<span style="font-family:courier new,monospace"><b><target iqn.2010-10.org.openstack:volume-8bfd424d-9877-4c20-a9d1-058c06b9bdda></b><br></span>
<span style="font-family:courier new,monospace"><b> backing-store /dev/stack-volumes/volume-8bfd424d-9877-4c20-a9d1-058c06b9bdda</b><br></span>
<span style="font-family:courier new,monospace"><b> lld iscsi</b><br></span>
<span style="font-family:courier new,monospace"><b> IncomingUser kZQ6rqqT7W6KGQvMZ7Lr k4qcE3G9g5z7mDWh2woe</b><br></span>
<span style="font-family:courier new,monospace"><b> </target></b><br>
from (pid=4623) create_iscsi_target /opt/stack/cinder/cinder/brick/iscsi/iscsi.py:183<br>
2014-06-16 16:39:38.440 DEBUG cinder.openstack.common.processutils [req-083cd582-1b4d-4e7c-a70c-2c6282d8d799 d9bb59a6a2394483902b382a991ffea2 b65a066f32df4aca80fa9a6d5c<br>
795095] Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgt-admin --update iqn.2010-10.org.openstack:volume-8bfd424d-9877-4c20-a9d1-058c06b9bdd<br>
a from (pid=4623) execute /opt/stack/cinder/cinder/openstack/common/processutils.py:142<br>
2014-06-16 16:39:38.981 DEBUG cinder.openstack.common.processutils [req-083cd582-1b4d-4e7c-a70c-2c6282d8d799 d9bb59a6a2394483902b382a991ffea2 b65a066f32df4aca80fa9a6d5c<br>
795095] Result was 107 from (pid=4623) execute /opt/stack/cinder/cinder/openstack/common/processutils.py:167<br>
2014-06-16 16:39:38.981 WARNING cinder.brick.iscsi.iscsi [req-083cd582-1b4d-4e7c-a70c-2c6282d8d799 d9bb59a6a2394483902b382a991ffea2 <b>b65a066f32df4aca80fa9a6d5c795095] Fa</b><br></span>
<span style="font-family:courier new,monospace"><b>iled to create iscsi target for volume id:volume-8bfd424d-9877-4c20-a9d1-058c06b9bdda: Unexpected error while running command.</b><br></span>
<span style="font-family:courier new,monospace"><b>Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgt-admin --update iqn.2010-10.org.openstack:volume-8bfd424d-9877-4c20-a9d1-058c06b9bdda</b><br></span>
<span style="font-family:courier new,monospace"><b>Exit code: 107</b><br>
Stdout: 'Command:\n\ttgtadm -C 0 --lld iscsi --op new --mode target --tid 1 -T iqn.2010-10.org.openstack:volume-8bfd424d-9877-4c20-a9d1-058c06b9bdda\nexited with code: 107.\n'<br>
Stderr: 'tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected\ntgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected\ntgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected\ntgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected\n'<br>
2014-06-16 16:39:38.982 ERROR oslo.messaging.rpc.dispatcher [req-083cd582-1b4d-4e7c-a70c-2c6282d8d799 d9bb59a6a2394483902b382a991ffea2 b65a066f32df4aca80fa9a6d5c795095] Exception during message handling: Failed to create iscsi target for volume volume-8bfd424d-9877-4c20-a9d1-058c06b9bdda.<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher incoming.message))<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/volume/manager.py", line 783, in initialize_connection<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher volume)<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/volume/drivers/lvm.py", line 524, in create_export<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher return self._create_export(context, volume)<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/volume/drivers/lvm.py", line 533, in _create_export<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher data = self.target_helper.create_export(context, volume, volume_path)<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/volume/iscsi.py", line 53, in create_export<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher chap_auth)<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/brick/iscsi/iscsi.py", line 219, in create_iscsi_target<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher raise exception.ISCSITargetCreateFailed(volume_id=vol_id)<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher ISCSITargetCreateFailed: Failed to create iscsi target for volume volume-8bfd424d-9877-4c20-a9d1-058c06b9bdda.<br>
2014-06-16 16:39:38.982 TRACE oslo.messaging.rpc.dispatcher <br>
2014-06-16 16:39:39.031 ERROR oslo.messaging._drivers.common [req-083cd582-1b4d-4e7c-a70c-2c6282d8d799 d9bb59a6a2394483902b382a991ffea2 <b>b65a066f32df4aca80fa9a6d5c795095] Returning exception Failed to create iscsi target for volume volume-8bfd424d-9877-4c20-a9d1-058c06b9bdda. to caller</b><br>
2014-06-16 16:39:39.031 ERROR oslo.messaging._drivers.common [req-083cd582-1b4d-4e7c-a70c-2c6282d8d799 d9bb59a6a2394483902b382a991ffea2 b65a066f32df4aca80fa9a6d5c795095] ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n incoming.message))\n', ' File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', ' File "/usr/lib/python2.7/site-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 219, in create_iscsi_target\n raise exception.ISCSITargetCreateFailed(volume_id=vol_id)\n', 'ISCSITargetCreateFailed: Failed to create iscsi target for volume volume-8bfd424d-9877-4c20-a9d1-058c06b9bdda.\n']<br>
2014-06-16 16:39:40.167 WARNING cinder.context [-] Arguments dropped when creating context: {'user': u'd9bb59a6a2394483902b382a991ffea2', 'tenant': u'b65a066f32df4aca80fa9a6d5c795095', 'user_identity': u'd9bb59a6a2394483902b382a991ffea2 b65a066f32df4aca80fa9a6d5c795095 - - -'}<br>
</span>
</p>
<span style="font-family:courier new,monospace"><b>Some debug info..<br><br></b>[stack@devstack-large-vm ~]$ [admin] manila list --all-tenants<br>+--------------------------------------+-----------------------------+------+-------------+--------+-----------------+<br>
| ID | Name | Size | Share Proto | Status | Export location |<br>+--------------------------------------+-----------------------------+------+-------------+--------+-----------------+<br>
| b35518d0-20a7-4768-ba44-8f6a5b03807a | cinder_vol_share_using_nfs | 2 | NFS | error | None |<br>| fb78748b-1031-4e4f-86ae-6427a3ee8c97 | cinder_vol_share_using_nfs2 | 2 | NFS | error | None |<br>
+--------------------------------------+-----------------------------+------+-------------+--------+-----------------+<br><br></span></div><span style="font-family:courier new,monospace">I get the same error when trying to do the cinder-rootwrap cmd that otherwise is done by c-vol<br>
<br>+--------------------------------------+-----------------------------+------+-------------+--------+-----------------+<br>[stack@devstack-large-vm ~]$ [admin] sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgt-admin --update iqn.2010-10.org.openstack:volume-8bfd424d-9877-4c20-a9d1-058c06b9bdda<br>
tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected<br>tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected<br>tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected<br>
<b><br></b>[stack@devstack-large-vm ~]$ [admin] cinder list --all-tenants<br>+--------------------------------------+-----------+---------------------------------------------------+------+-------------+----------+-------------+<br>
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |<br>+--------------------------------------+-----------+---------------------------------------------------+------+-------------+----------+-------------+<br>
| 8bfd424d-9877-4c20-a9d1-058c06b9bdda | available | manila-share-b35518d0-20a7-4768-ba44-8f6a5b03807a | 2 | None | false | |<br>| af9e8c90-d2fb-4c57-884b-7234400b16cd | available | manila-share-fb78748b-1031-4e4f-86ae-6427a3ee8c97 | 2 | None | false | |<br>
+--------------------------------------+-----------+---------------------------------------------------+------+-------------+----------+-------------+<br><b><br></b></span></div><span style="font-family:courier new,monospace">iscsi and iscsid.service both are running in my system<br>
<br>[stack@devstack-large-vm ~]$ [admin] sudo systemctl status iscsi.service <br>iscsi.service - Login and scanning of iSCSI devices<br> Loaded: loaded (/usr/lib/systemd/system/iscsi.service; enabled)<br> Active: inactive (dead)<br>
start condition failed at Mon 2014-06-16 16:01:22 UTC; 1h 33min ago<br> none of the trigger conditions were met<br> Docs: man:iscsid(8)<br> man:iscsiadm(8)<br><br>Jun 16 16:01:22 devstack-large-vm.localdomain systemd[1]: Started Login and scanning of iSCSI devices.<br>
[stack@devstack-large-vm ~]$ [admin] sudo systemctl status iscsid.service <br>iscsid.service - Open-iSCSI<br> Loaded: loaded (/usr/lib/systemd/system/iscsid.service; disabled)<br> Active: active (running) since Mon 2014-06-16 17:26:50 UTC; 8min ago<br>
Docs: man:iscsid(8)<br> man:iscsiadm(8)<br> Process: 20236 ExecStart=/usr/sbin/iscsid (code=exited, status=0/SUCCESS)<br> Main PID: 20239 (iscsid)<br> CGroup: /system.slice/iscsid.service<br> ├─20238 /usr/sbin/iscsid<br>
└─20239 /usr/sbin/iscsid<br><br></span></div><span style="font-family:courier new,monospace"><b>Any hints are appreciated</b><br><br>thanx,<br>deepak<br><br></span></div>
</div><br></div></div></div></div>
</blockquote></div><br></div></div></div>