<div dir="ltr">Hello all,<div><br></div><div>I'm having trouble getting Cinder to create volumes. I'm using a single install of OpenStack Folsom on Ubuntu 12.04 and a lvm volume with 40 GB labeled cinder-volumes. </div>
<div style><br></div><div style># Output from vgs:</div><div style><div>  VG             #PV #LV #SN Attr   VSize  VFree </div><div>  cinder-volumes   1   0   0 wz--n- 45.69g 45.69g</div><div><br></div><div><br></div><div style>
Every time I try to create a volume I get the error "ISCSITargetCreateFailed: Failed to create iscsi target for volume". I've already tried following suggestions from this topic [1], but it doesn't make any diference.</div>
<div style><br></div><div style>One thing I do notice is, even though the volume creation ended in error, the equivalent space is used in the lvm volume. For instance, after the error operation on the creation of a 1GB volume, vgs reports the following:</div>
<div style><div><br></div><div> VG             #PV #LV #SN Attr   VSize  VFree </div><div>  cinder-volumes   1   1   0 wz--n- 45.69g 44.69g</div></div><div style><br></div><div style>As you can see, 1GB has been allocated.</div>
<div style><br></div><div style>Below you can find my configuration files.</div><div style><br></div><div style># /etc/tgt/targets.conf:</div><div style><div>include /etc/tgt/conf.d/cinder_tgt.conf</div><div>include /etc/tgt/conf.d/cinder.conf</div>
<div>include /etc/tgt/conf.d/nova_tgt.conf</div><div>default-driver iscsi</div><div><br></div><div># /etc/tgt/conf.d/cinder_tgt.conf</div><div style>nclude /var/lib/cinder/volumes/*</div><div><br></div><div># /etc/tgt/conf.d/cinder.conf</div>
</div><div style>include  /var/lib/cinder/volumes/*<br></div><div style><br></div><div style># /etc/tgt/conf.d/nova_tgt.conf</div><div style>include /etc/nova/volumes/<br></div><div style><br></div><div style>#volume config in nova.conf</div>
<div style><div>volume_group=cinder-volumes</div><div>volume_name_template=volume-%08x</div><div>iscsi_helper=tgtadm</div><div>iscsi_ip_prefix=192.168.111.218</div><div>volume_api_class=nova.volume.cinder.API</div></div><div style>
<br></div><div style>Any ideas in regards to what might be wrong?</div><div style><br></div><div style>Regards,</div><div style><br></div><div style>Leander</div><div style><br></div><div style>[1] <a href="https://bugs.launchpad.net/cinder/+bug/1057904">https://bugs.launchpad.net/cinder/+bug/1057904</a><br>
</div><div><br></div><div><br></div></div></div>