<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">you have to set iscsi_ip_address on the volume node.  The volume node is the one that creates this db entry.<div><br></div><div>Vish</div><div><br><div><div>On May 14, 2012, at 1:54 PM, Shashank Sahni wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi Vish,<br>
    <br>
    Yeah you are right. I checked the settings in the volume database
    and for all volumes the entry is similar to following.<br>
    <br>
    controller_node:3260,3 iqn.2010-10.org.openstack:volume-00000004 <br>
    <br>
    But it seems these entries are being generated automatically, i.e.
    as soon as I issue volume creation command. How do I fix this? I am
    already using properly configured iscsi_ip_address option in the
    controller's nova.conf file.<br>
    <br>
    Regards,<br>
    Shashank Sahni<br>
    <br>
    On 05/15/2012 02:15 AM, Vishvananda Ishaya wrote:
    <blockquote cite="mid:CDB1BC37-BA6F-4EED-A63A-14DD6D2DB7F8@gmail.com" type="cite">It should be getting the connection properties via the
      call to the volume node.  Is it possible your volume in the
      database has incorrect properties stored in provider_location?
      <div><br>
      </div>
      <div>It is set from the cofig iscsi_ip_address, so if you have not
        set that configuration option to a routable ip from compute
        -> volume then it will not work.  Also, changing the config
        option will not change the existing values in the db, so you
        might have to change those manually.</div>
      <div><br>
      </div>
      <div>Vish</div>
      <div><br>
        <div>
          <div>On May 14, 2012, at 7:28 AM, Shashank Sahni wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
            <div bgcolor="#FFFFFF" text="#000000"> Hi,<br>
              <br>
              Thanks for the reply.<br>
              <br>
              Yes, I've gone through the document. Volume creation and
              deletion are working perfectly fine. When I run "iscsiadm
              -m discovery -t st -p volume_node" on the compute node, I
              can see the volumes. But somehow the compute node is being
              misinformed about the volume node after giving the attach
              command.<br>
              <br>
              I'm not using iscsitarget as per that document.
              Installation of nova-volume on ubuntu precise
              automatically took care of it using tgt.<br>
              <br>
              Kind Regards,<br>
              Shashank Sahni<br>
              <br>
              On 05/14/2012 07:34 PM, <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:raja.meena@wipro.com">raja.meena@wipro.com</a>
              wrote:
              <blockquote cite="mid:77641A1AC6881A42BCD0FDEC4E2BCD5C23144EFC@BLR-EC-MBX1.wipro.com" type="cite">
                <meta http-equiv="Content-Type" content="text/html;
                  charset=ISO-8859-1">
                <meta name="Generator" content="Microsoft Word 12
                  (filtered medium)">
                <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
                <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Lucida Grande";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
                <div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi

                      Shashank ,<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I
                      preassume that the steps outlined in the link
                      below has been followed.<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a moz-do-not-send="true" href="http://docs.openstack.org/trunk/openstack-compute/admin/content/managing-volumes.html">http://docs.openstack.org/trunk/openstack-compute/admin/content/managing-volumes.html</a><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Meena

                      Raja<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
                  <div>
                    <div style="border:none;border-top:solid #B5C4DF
                      1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
                          <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:openstack-bounces+raja.meena=wipro.com@lists.launchpad.net">openstack-bounces+raja.meena=wipro.com@lists.launchpad.net</a>
                          [<a moz-do-not-send="true" class="moz-txt-link-freetext" href="mailto:openstack-bounces+raja.meena=wipro.com@lists.launchpad.net">mailto:openstack-bounces+raja.meena=wipro.com@lists.launchpad.net</a>]
                          <b>On Behalf Of </b>Shashank Sahni<br>
                          <b>Sent:</b> Monday, May 14, 2012 6:23 PM<br>
                          <b>To:</b> Razique Mahroua<br>
                          <b>Cc:</b> <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
                          <b>Subject:</b> Re: [Openstack] Problem with
                          attaching disks to an instance<o:p></o:p></span></p>
                    </div>
                  </div><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Hi,<br>
                    <br>
                    I set this option in the configuration files of both
                    compute and controller. Restarted the service, but
                    unfortunately same result.<br>
                    <br>
                    Regards,<br>
                    Shashank Sahni<br>
                    <br>
                    On 05/14/2012 05:58 PM, Razique Mahroua wrote: <o:p></o:p></p>
                  <div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Lucida
                        Grande","serif"">Hi,<br>
                        do you have the flag iscsi_ip_prefix configured
                        in your nova.conf ?<br>
                        Razique<br>
                        <br>
                        <br>
                        <o:p></o:p></span></p>
                    <div style="margin-left:18.75pt;margin-top:22.5pt;margin-right:18.75pt;margin-bottom:7.5pt">
                      <div style="border:none;border-top:solid #EDEEF0
                        1.0pt;padding:4.0pt 0in 0in 0in;display:table">
                        <div><p class="MsoNormal" style="vertical-align:middle"><span style="font-size:11.0pt;font-family:"Lucida
                              Grande","serif""><span><postbox-contact.jpg></span><o:p></o:p></span></p>
                        </div>
                        <div><p class="MsoNormal" style="vertical-align:middle"><span style="font-size:11.0pt;font-family:"Lucida
                              Grande","serif""><a moz-do-not-send="true" href="mailto:shredder12@linuxers.org"><b>Shashank

                                  Sahni</b></a><o:p></o:p></span></p>
                        </div>
                        <div><p class="MsoNormal" style="vertical-align:middle"><span style="font-size:11.0pt;font-family:"Lucida
Grande","serif";color:#9FA2A5">14 mai 2012 14:22</span><span style="font-size:11.0pt;font-family:"Lucida

                              Grande","serif""><o:p></o:p></span></p>
                        </div>
                      </div>
                    </div>
                    <div style="margin-left:.25in;margin-right:.25in"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Lucida
                          Grande","serif";color:#888888">Hi

                          everyone,<br>
                          <br>
                          I'm trying to configure a multi-node
                          installation. Here is a brief overview.<br>
                          <br>
                          1) controller -
                          api+network+scheduler+novnc+glance+keystone
                          (nova.conf - <a moz-do-not-send="true" href="http://paste.openstack.org/show/17470/" target="_blank">
                            http://paste.openstack.org/show/17470/</a>)<br>
                          2) compute node (nova.conf - <a moz-do-not-send="true" href="http://paste.openstack.org/show/17469" target="_blank">
                            http://paste.openstack.org/show/17469</a>)<br>
                          3) volume node(single)<br>
                          <br>
                          Compute and vnc are working fine. I'm able to
                          create and delete volumes. Iscsi discovery
                          from the compute nodes is working too. But
                          when I try to attach a volume, the compute
                          node tries to connect to the controller node
                          instead of volume and hence crashes with the
                          following error.<br>
                          <br>
                          2012-05-14 17:32:13 TRACE nova.rpc.amqp
                          ProcessExecutionError: Unexpected error while
                          running command.<br>
                          2012-05-14 17:32:13 TRACE nova.rpc.amqp
                          Command: sudo nova-rootwrap iscsiadm -m node
                          -T iqn.2010-10.org.openstack:volume-00000003
                          -p controller:3260 --rescan<br>
                          2012-05-14 17:32:13 TRACE nova.rpc.amqp Exit
                          code: 255<br>
                          2012-05-14 17:32:13 TRACE nova.rpc.amqp
                          Stdout: ''<br>
                          2012-05-14 17:32:13 TRACE nova.rpc.amqp
                          Stderr: 'iscsiadm: No portal found.\n'<br>
                          <br>
                          Any suggestions?<br>
                          <br>
                          Kind Regards,<br>
                          Shashank Sahni<o:p></o:p></span></p>
                      <div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Lucida
Grande","serif";color:#888888">_______________________________________________<br>
                            Mailing list: <a moz-do-not-send="true" href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><br>
                            Post to : <a moz-do-not-send="true" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
                            Unsubscribe : <a moz-do-not-send="true" href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><br>
                            More help : <a moz-do-not-send="true" href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><o:p></o:p></span></p>
                      </div>
                    </div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Lucida
                        Grande","serif""><o:p> </o:p></span></p>
                    <div><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;font-family:"Lucida

                          Grande","serif"">-- <br>
                          Nuage & Co - Razique Mahroua <br>
                          <b><a moz-do-not-send="true" href="mailto:razique.mahroua@gmail.com">razique.mahroua@gmail.com</a></b><o:p></o:p></span></p>
                      <div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Lucida
                            Grande","serif""><span><image.jpg></span><o:p></o:p></span></p>
                      </div><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;font-family:"Lucida

                          Grande","serif"">  <o:p></o:p></span></p>
                    </div>
                  </div><p class="MsoNormal"><o:p> </o:p></p>
                </div><p><strong><span style="font-size:10.0pt;font-family:
                      "Palatino
                      Linotype","serif";color:green">
                      Please do not print this email unless it is
                      absolutely necessary. </span></strong><span style="font-family:"Arial","sans-serif""><o:p></o:p></span></p><p> The information contained in this electronic message
                  and any attachments to this message are intended for
                  the exclusive use of the addressee(s) and may contain
                  proprietary, confidential or privileged information.
                  If you are not the intended recipient, you should not
                  disseminate, distribute or copy this e-mail. Please
                  notify the sender immediately and destroy all copies
                  of this message and any attachments. </p><p>WARNING: Computer viruses can be transmitted via
                  email. The recipient should check this email and any
                  attachments for the presence of viruses. The company
                  accepts no liability for any damage caused by any
                  virus transmitted by this email. </p><p> <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.wipro.com/">www.wipro.com</a> </p>
              </blockquote>
              <br>
            </div>
            _______________________________________________<br>
            Mailing list: <a moz-do-not-send="true" href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><br>
            Post to     : <a moz-do-not-send="true" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
            Unsubscribe : <a moz-do-not-send="true" href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><br>
            More help   : <a moz-do-not-send="true" href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div><br></div></body></html>