I found the problem.<br>Ubuntu MAAS iscsi images were occupying the target_num of the iscsi volumes. I just removed the iscsi disks and worked well!<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 14, 2012 at 3:21 PM, Gui Maluf <span dir="ltr"><<a href="mailto:guimalufb@gmail.com" target="_blank">guimalufb@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm running the same problem! And I would be grateful if someone could help me!<br><br>root@oxala:/var/log/nova# iscsiadm -m node<br>

<a href="http://200.131.6.250:3260" target="_blank">200.131.6.250:3260</a>,1 iqn.2004-05.com.ubuntu:maas:maas-precise-12.04-i386-ephemeral-20120424<br>
<a href="http://10.5.5.35:3260" target="_blank">10.5.5.35:3260</a>,1 iqn.2004-05.com.ubuntu:maas:maas-precise-12.04-i386-ephemeral-20120424<br><a href="http://200.131.6.250:3260" target="_blank">200.131.6.250:3260</a>,1 iqn.2004-05.com.ubuntu:maas:maas-precise-12.04-amd64-ephemeral-20120424<br>


<a href="http://10.5.5.35:3260" target="_blank">10.5.5.35:3260</a>,1 iqn.2004-05.com.ubuntu:maas:maas-precise-12.04-amd64-ephemeral-20120424<br><a href="http://200.131.6.250:3260" target="_blank">200.131.6.250:3260</a>,-1 iqn.2010-10.org.openstack:volume-00000006<br>


<a href="http://150.164.3.236:3260" target="_blank">150.164.3.236:3260</a>,-1 iqn.2010-10.org.openstack:volume-00000002<br><a href="http://200.131.6.250:3260" target="_blank">200.131.6.250:3260</a>,-1 iqn.2010-10.org.openstack:volume-00000005<br>

<br>When I'm running iscsadm -m node all my openstack-volumes got this strange -1 (node.tpgt = -1). I've tried to create the iscsi target by hand, but I couldnt.<br>
<br>If some could help me! Here is my fulll nova-compute.log: <a href="http://paste.openstack.org/show/28109/" target="_blank">http://paste.openstack.org/show/28109/</a><br>Thanks in advance<br><br><div class="gmail_extra">

<div><div class="h5"><br><br><div class="gmail_quote">
On Wed, Oct 31, 2012 at 6:14 PM, John Griffith <span dir="ltr"><<a href="mailto:john.griffith@solidfire.com" target="_blank">john.griffith@solidfire.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br><br><div class="gmail_quote"><div><div>On Wed, Oct 31, 2012 at 1:29 PM, Bontala, Vibhuvardhan <span dir="ltr"><<a href="mailto:vibhuvardhan.bontala@emc.com" target="_blank">vibhuvardhan.bontala@emc.com</a>></span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am running GA bits of Folsom. I am running a two node setup where the first node is the controller+compute node that has Cinder running as well. The second node is merely a compute node. I am seeing an issue while booting an instance from Cinder volume on both the nodes. The “nova boot” operation fails while spawning the instance with the following error.<u></u><u></u></p>



<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">[00mProcessExecutionError: Unexpected error while running command.<u></u><u></u></span></p><p class="MsoNormal">



<span style="font-size:10.0pt;font-family:"Courier New"">[00mCommand: sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.openstack:volume-3ac4b027-905e-4318-a74e-2bdf94f5d887 -p <a href="http://192.168.150.96:3260" target="_blank">192.168.150.96:3260</a> --rescan<u></u><u></u></span></p>



<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">[00mExit code: 255<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">[00mStdout: ''<u></u><u></u></span></p>



<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">[00mStderr: 'iscsiadm: No portal found.\n'<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">[00m<u></u><u></u></span></p>



<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I had successfully created a Cinder volume with a valid image on it.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">+--------------------------------------+-----------+--------------+------+-------------+-------------+<u></u><u></u></span></p>



<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">|                  ID                  |   Status  | Display Name | Size | Volume Type | Attached to |<u></u><u></u></span></p><p class="MsoNormal">



<span style="font-size:10.0pt;font-family:"Courier New"">+--------------------------------------+-----------+--------------+------+-------------+-------------+<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">| 3ac4b027-905e-4318-a74e-2bdf94f5d887 | available |   Volume1    |  2   |     None    |             |<u></u><u></u></span></p>



<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">+--------------------------------------+-----------+--------------+------+-------------+-------------+</span><u></u><u></u></p><p class="MsoNormal">



<u></u> <u></u></p><p class="MsoNormal">I even tried to discover the iSCSI targets. But it returns with “no records found”.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I then looked into to MySQL database for Cinder and looked at the entries, specifically “<span style="font-family:"Courier New"">provider_location</span>” and it looked just fine. 192.168.150.96 is the node where I have controller and cinder running.<u></u><u></u></p>



<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">+-----------------------------------------------------------------------------------------------+<u></u><u></u></span></p>



<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">| provider_location                                                                             |<u></u><u></u></span></p><p class="MsoNormal">



<span style="font-size:10.0pt;font-family:"Courier New"">+-----------------------------------------------------------------------------------------------+<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">| NULL                                                                                          |<u></u><u></u></span></p>



<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">| <a href="http://192.168.150.96:3260" target="_blank">192.168.150.96:3260</a>,1 iqn.2010-10.org.openstack:volume-3ac4b027-905e-4318-a74e-2bdf94f5d887 1 |</span><u></u><u></u></p>



<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I manually tried to discover the iSCSI targets and it couldn’t find any.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">stack@esg-dell-c4-s08:/etc/cinder$ sudo iscsiadm -m discovery -t sendtargets -p <a href="http://192.168.150.96:3260" target="_blank">192.168.150.96:3260</a> <a href="http://192.168.150.96:3260" target="_blank">192.168.150.96:3260</a>,1 iqn.2010-10.org.openstack:volume-3ac4b027-905e-4318-a74e-2bdf94f5d887<u></u><u></u></span></p>



<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">iscsiadm: Connection to Discovery Address 192.168.150.96 closed<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">iscsiadm: Login I/O error, failed to receive a PDU<u></u><u></u></span></p>



<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">iscsiadm: retrying discovery login to 192.168.150.96<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">stack@esg-dell-c4-s08:/etc/cinder$ sudo iscsiadm -m node -T iqn.2010-10.org.openstack:volume-3ac4b027-905e-4318-a74e-2bdf94f5d887 -p 192.168.150.96:3260iscsiadm: no records found!<u></u><u></u></span></p>



<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">stack@esg-dell-c4-s08:/etc/cinder$ sudo iscsiadm -m node -T iqn.2010-10.org.openstack:volume-3ac4b027-905e-4318-a74e-2bdf94f5d887 -p <a href="http://192.168.150.96:3260" target="_blank">192.168.150.96:3260</a> --rescan<u></u><u></u></span></p>



<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">iscsiadm: No portal found.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">stack@esg-dell-c4-s08:/etc/cinder$<u></u><u></u></span></p>



<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am not sure what’s wrong with my setup. Any help is greatly appreciated.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks<u></u><u></u></p>



<p class="MsoNormal">Vibhu<u></u><u></u></p></div></div><br></div></div>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div>Hi Vibnu,<div><br></div><div>Strange, you're unable to see the target on either of the nodes?  I'm assuming your using the default LVM storage back-end. </div><div><br></div><div>Something to look at:</div>



<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>"sudo tgtadm --lld iscsi --op show --mode target" - Make sure your target is present (on the cinder node)</div></blockquote><div><br></div><div>



You shouldn't *need* to do this, but to trouble-shoot you could also try:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>"sudo iscsiadm -m discovery -p <a href="http://192.168.150.96:3260" target="_blank">192.168.150.96:3260</a> -t st"</div>



</blockquote><div>followed by trying to login.</div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>"sudo iscsiadm -m node -T iqn.2010-10.org.openstack:volume-3ac4b027-905e-4318-a74e-2bdf94f5d887 -l"</div>



<div><br></div></blockquote></div><span><font color="#888888"><div>John</div>
</font></span><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><font face="Arial, Helvetica, sans-serif"><b>guilherme</b> \n<br>\<font>t</font> <b>maluf</b><br></font><br>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><font face="Arial, Helvetica, sans-serif"><b>guilherme</b> \n<br>\<font>t</font> <b>maluf</b><br></font><br>
</div>