<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi, i've got it work when creating
volume, but i can't attach to instance. error log from
nova-compute :<br>
<br>
<i>Stderr: 'iscsiadm: No session found.\n'</i><br>
<br>
i have run : iscsiadm -m node -o show<br>
and it show it's values<br>
On 7/10/2013 6:08 PM, claudio marques wrote:<br>
</div>
<blockquote cite="mid:DUB119-W38D9B25E456A585B15F142957A0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hi
<div style="line-height: 21px;"><br>
</div>
<div style="line-height: 21px;">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 style="line-height: 21px;"><br>
</div>
<div style="line-height: 21px;"><i style="line-height: 22px;
font-size: 12pt;">vim
/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py</i></div>
<div style="line-height: 21px;">
<p class="ecxMsoNormal" style="margin-bottom: 1.35em;"><span
lang="EN-US"><br>
</span></p>
<p class="ecxMsoNormal" style="margin-bottom: 1.35em;"><span
lang="EN-US">remove line 388</span></p>
<p class="ecxMsoNormal" style="margin-bottom: 1.35em;"><span
lang="EN-US"><br>
</span></p>
<p class="ecxMsoNormal" style="margin-bottom: 1.35em;">385
self.tgtadm.create_iscsi_target(iscsi_name, iscsi_target,</p>
<p class="ecxMsoNormal" style="margin-bottom: 1.35em;">386
0, volume_path,
chap_auth,</p>
<p class="ecxMsoNormal" style="margin-bottom: 1.35em;">387
check_exit_code=False<b>)
<-- close here the method</b></p>
<p class="ecxMsoNormal" style="margin-bottom: 1.35em;"><span
lang="EN-US"></span></p>
<p class="ecxMsoNormal" style="margin-bottom: 1.35em;">388
<b> <span
style="line-height: 22px; font-size: 12pt;"> old_name=old_name)
--> (remove this line)</span></b></p>
</div>
<div style="line-height: 21px;"><br>
</div>
<div style="line-height: 21px;">restart all cinder services</div>
<div style="line-height: 21px;"><i style="font-size: 12pt;"><br>
</i></div>
<div style="line-height: 21px;"><i style="font-size: 12pt;">cd
/etc/init.d/; for i in $( ls cinder-* ); do sudo service $i
restart; done</i></div>
<div style="line-height: 21px;"><br>
</div>
If that doesn't help, try to see your iscsitarget is up and
running. See the logs.
<div style="line-height: 21px;"><br>
</div>
<div style="line-height: 21px;">Hope it help's</div>
<div style="line-height: 21px;"><br>
</div>
<div style="line-height: 21px;">Cheer's</div>
<div style="line-height: 21px;"><br>
</div>
<div style="line-height: 21px;">Claudio Marques</div>
<div style="line-height: 21px;"><br>
</div>
<div style="line-height: 21px;">
<div style="line-height: 18px; color: rgb(34, 34, 34);
font-family: arial; font-size: small;">
<div dir="ltr"><a moz-do-not-send="true"
href="mailto:claudio@onesource.pt" target="_blank"
style="color: rgb(17, 85, 204); cursor: pointer;">claudio@onesource.pt</a>
<div><a moz-do-not-send="true"
href="http://www.onesource.pt/" target="_blank"
style="color: rgb(17, 85, 204); cursor: pointer;">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: <a class="moz-txt-link-abbreviated" href="mailto:mahardika.gilang@andalabs.com">mahardika.gilang@andalabs.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><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 moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:mahardika.gilang@andalabs.com">mahardika.gilang@andalabs.com</a>
</div>
<br>
_______________________________________________
Mailing list: <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
Post to : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>
Unsubscribe : <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
More help : <a class="moz-txt-link-freetext" href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a></div>
</div>
</blockquote>
<br>
<br>
<div class="moz-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="moz-txt-link-abbreviated" href="mailto:mahardika.gilang@andalabs.com">mahardika.gilang@andalabs.com</a> </div>
</body>
</html>