Hi,<div><br></div><div>It looks like for some reason the LEASES attributes weren't processed. If I create a vnet from this template:</div><div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">$ cat fixed </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">BRIDGE=virbrCLOUD</font></div><div><font class="Apple-style-span" face="'courier new', monospace">LEASES=[ IP=84.21.173.192, MAC=02:fe:54:15:ad:C0 ]</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">LEASES=[ IP=84.21.173.194, MAC=02:fe:54:15:ad:C2 ]</font></div><div><font class="Apple-style-span" face="'courier new', monospace">NAME=red1</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">TYPE=FIXED</font></div><div><br></div><div>The xml shows the two LEASES inside VNET/TEMPLATE/ and VNET/LEASES [1].</div><div>Can you reproduce this error? Is there anything in your template file that might cause the parser to fail?</div>
<div><br></div><div>Regards.</div><div><br></div><div>[1] </div><div><div><font class="Apple-style-span" face="'courier new', monospace">$ onevnet show red1 -x</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><VNET></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <ID>0</ID></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <UID>0</UID></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <GID>0</GID></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <UNAME>oneadmin</UNAME></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <GNAME>oneadmin</GNAME></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <NAME>red1</NAME></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <TYPE>1</TYPE></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <BRIDGE>virbrCLOUD</BRIDGE></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <PUBLIC>0</PUBLIC></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <TOTAL_LEASES>0</TOTAL_LEASES></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <TEMPLATE></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <BRIDGE><![CDATA[virbrCLOUD]]></BRIDGE></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <LEASES></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <IP><![CDATA[84.21.173.192]]></IP></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <MAC><![CDATA[02:fe:54:15:ad:C0]]></MAC></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> </LEASES></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <LEASES></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <IP><![CDATA[84.21.173.194]]></IP></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <MAC><![CDATA[02:fe:54:15:ad:C2]]></MAC></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> </LEASES></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <NAME><![CDATA[red1]]></NAME></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <TYPE><![CDATA[FIXED]]></TYPE></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> </TEMPLATE></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <LEASES></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <LEASE></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <IP>84.21.173.192</IP></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <MAC>02:fe:54:15:ad:c0</MAC></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <USED>0</USED></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <VID>-1</VID></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> </LEASE></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <LEASE></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <IP>84.21.173.194</IP></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <MAC>02:fe:54:15:ad:c2</MAC></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <USED>0</USED></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <VID>-1</VID></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> </LEASE></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> </LEASES></font></div><div><font class="Apple-style-span" face="'courier new', monospace"></VNET></font></div></div><div><br>
</div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px">--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span><br>
<br><br><div class="gmail_quote">2011/11/25 Carlos Fernández Iglesias <span dir="ltr"><<a href="mailto:ciglesias@cesga.es">ciglesias@cesga.es</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
This is the info:<br>
<br>
-bash-4.1$ onevnet show -x 0<br>
<VNET><br>
<ID>0</ID><br>
<UID>0</UID><br>
<GID>0</GID><br>
<UNAME>oneadmin</UNAME><br>
<GNAME>oneadmin</GNAME><br>
<NAME>171</NAME><br>
<TYPE>1</TYPE><br>
<BRIDGE>virbrCLOUD</BRIDGE><br>
<PUBLIC>1</PUBLIC><br>
<TOTAL_LEASES>0</TOTAL_LEASES><br>
<TEMPLATE><br>
<BRIDGE><![CDATA[virbrCLOUD]]><u></u></BRIDGE><br>
<LEASES><br>
<IP><![CDATA[84.21.173.192]]><<u></u>/IP><br>
<MAC><![CDATA[02:fe:54:15:ad:<u></u>C0]]></MAC><br>
</LEASES><br>
<LEASES><br>
<IP><![CDATA[84.21.173.194]]><<u></u>/IP><br>
<MAC><![CDATA[02:fe:54:15:ad:<u></u>C2]]></MAC><br>
</LEASES><br>
<NAME><![CDATA[PROBAS]]></<u></u>NAME><br>
<TYPE><![CDATA[FIXED]]></TYPE><br>
</TEMPLATE><br>
<LEASES/><br>
</VNET><br>
<br>
Thank you.<br>
<br>
El vie 25 nov 2011 10:03:27 CET, Ruben S. Montero escribió:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi<br>
<br>
What is info of onevnet show -x 0 ?<br>
<br>
<br>
Cheers<br>
<br>
2011/11/25 Carlos Fernández Iglesias<<a href="mailto:ciglesias@cesga.es" target="_blank">ciglesias@cesga.es</a>>:<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am trying to get the lease also with the oneadmin account, yes.<br>
<br>
This are the lines in oned.log:<br>
<br>
Fri Nov 25 09:45:19 2011 [ReM][D]: TemplateInfo method invoked<br>
Fri Nov 25 09:45:19 2011 [ReM][D]: TemplateInstantiate method invoked<br>
Fri Nov 25 09:45:19 2011 [ONE][E]: Could not get virtual network for VM.<br>
Fri Nov 25 09:45:19 2011 [ReM][E]: [TemplateInstantiate] Error allocating a<br>
new virtual machine. Could not get virtual network for VM.<br>
<br>
Thank you.<br>
<br>
El jue 24 nov 2011 21:02:51 CET, Ruben S. Montero escribió:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Are you trying yo get the lease also with the oneadmin account? Any<br>
relevant message in oned.log?<br>
<br>
2011/11/24 Carlos Fernández Iglesias<<a href="mailto:ciglesias@cesga.es" target="_blank">ciglesias@cesga.es</a>>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hello,<br>
<br>
I have a fresh install with a network configured:<br>
ID : 0<br>
USER : oneadmin<br>
GROUP : oneadmin<br>
PUBLIC : Yes<br>
USED LEASES : 0<br>
<br>
VIRTUAL NETWORK TEMPLATE<br>
BRIDGE=virbrCLOUD<br>
LEASES=[ IP=84.21.173.192, MAC=02:fe:54:15:ad:C0 ]<br>
LEASES=[ IP=84.21.173.194, MAC=02:fe:54:15:ad:C2 ]<br>
NAME=red1<br>
TYPE=FIXED<br>
<br>
one template that uses it, but onetemplate instantiate gives allways the<br>
same error with oneadmin:<br>
<br>
[TemplateInstantiate] Error allocating a new virtual machine. Could not<br>
get<br>
virtual network for VM.<br>
<br>
Does anyone know what i'm doing wrong?<br>
<br>
Thanks.<br>
<br>
Machine template:<br>
TEMPLATE 0 INFORMATION<br>
ID : 0<br>
NAME : Opennebula pruebas migracion<br>
USER : oneadmin<br>
GROUP : oneadmin<br>
REGISTER TIME : 11/24 15:27:05<br>
PUBLIC : Yes<br>
<br>
TEMPLATE CONTENTS<br>
CONTEXT=[<br>
FILES=/var/lib/oneadmin/init.<u></u>sh,<br>
GATEWAY=84.21.173.254,<br>
HOSTNAME=$NAME,<br>
IP_PRIVATE=192.168.195.1,<br>
IP_PUBLIC=84.21.173.194,<br>
NODE_CORES=1,<br>
ROOT_PASSWD=pass,<br>
TARGET=hdd,<br>
USER_GID=1000,<br>
USER_ID=1000,<br>
USER_NAME=user,<br>
USER_PASSWD=user ]<br>
CPU=1<br>
DISK=[<br>
DRIVER=qcow2,<br>
IMAGE_ID=3 ]<br>
DISK=[<br>
READONLY=no,<br>
SIZE=1024,<br>
TARGET=hdc,<br>
TYPE=swap ]<br>
GRAPHICS=[<br>
KEYMAP=es,<br>
LISTEN=0.0.0.0,<br>
TYPE=vnc ]<br>
MEMORY=1024<br>
NAME="Opennebula pruebas migracion"<br>
NIC=[<br>
IP=84.21.173.194,<br>
MODEL=virtio,<br>
NETWORK_ID=0 ]<br>
RANK="- RUNNING_VMS"<br>
REQUIREMENTS="HYPERVISOR=\"<u></u>kvm\"& TM_MAD=\"tm_ssh\""<br>
TEMPLATE_ID=0<br>
VCPU=1<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
<br>
</blockquote>
<br>
<br>
<br>
</blockquote>
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
<br>
</blockquote>
<br>
<br>
<br>
</div></div></blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</div></div></blockquote></div><br></div>