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