<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi<div><br></div><div>I also found a problem a while a go with creating or managing volumes. After some research I could solve it by doing the following:</div><div><br></div><div><i style="font-size: 12pt;">vim /usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py</i></div><div><p class="MsoNormal"><span lang="EN-US"><br></span></p><p class="MsoNormal"><span lang="EN-US">remove line 388</span></p><p class="MsoNormal"><span lang="EN-US"><br></span></p><p class="MsoNormal">385 self.tgtadm.create_iscsi_target(iscsi_name, iscsi_target,</p><p class="MsoNormal">386                                         0, volume_path, chap_auth,</p><p class="MsoNormal">387                                         check_exit_code=False<b>) <-- close here the method</b></p><p class="MsoNormal"><span lang="EN-US"></span></p><p class="MsoNormal">388                                       <b> <span style="font-size: 12pt;"> old_name=old_name) --> (remove this line)</span></b></p></div><div><br></div><div>restart all cinder services</div><div><br></div><div><i>cd /etc/init.d/; for i in $( ls cinder-* ); do sudo service $i restart; done</i></div><div><br></div>If that doesn't help, try to see your iscsitarget is up and running. See the logs.<div><br></div><div>Hope it help's</div><div><br></div><div>Cheer's</div><div><br></div><div>Claudio Marques</div><div><br></div><div><div style="color: rgb(34, 34, 34); font-family: arial; font-size: small;"><div dir="ltr"><a href="mailto:claudio@onesource.pt" target="_blank" style="color: rgb(17, 85, 204);">claudio@onesource.pt</a><div><a href="http://www.onesource.pt/" target="_blank" style="color: rgb(17, 85, 204);">http://www.onesource.pt/</a><br></div><div><br></div></div></div></div><br><div><hr id="stopSpelling">Date: Wed, 10 Jul 2013 16:36:49 +0700<br>From: mahardika.gilang@andalabs.com<br>To: openstack@lists.launchpad.net<br>Subject: [Openstack] Exception during message handling on Cinder<br><br>
  

    
  
  
    Hi, i've got this Error message in cinder-volume.log<br>
    <br>
    ERROR [cinder.volume.iscsi] Failed to create iscsi target for volume
    id:volume-7b84fb74-7278-4a5d-8f1e-735eae060bcd.<br>
    ERROR [cinder.volume.manager] volume
    volume-7b84fb74-7278-4a5d-8f1e-735eae060bcd: create failed<br>
    ERROR [cinder.openstack.common.rpc.amqp] Exception during message
    handling<br>
    <br>
    i have check on cinder.conf, api-paste.ini files, let me know if you
    guys need my config file<br>
    please help me out of this<br>
    thanks<br>
    <div class="ecxmoz-signature">-- <br>
      Regards,<br>
      Mahardhika Gilang<br>
      <br>
      <strong>PT. Andalabs Technology
      </strong><br>
      Gedung Gravira<br>
      Jl. Cideng Barat no. 54<br>
      Jakarta Pusat 10150<br>
      <br>
      HP : 0852 139 55861<br>
      Email : <a class="ecxmoz-txt-link-abbreviated" href="mailto:mahardika.gilang@andalabs.com">mahardika.gilang@andalabs.com</a> </div>
  

<br>_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp</div>                                     </div></body>
</html>