Hi there!<div><br></div><div>I am having a bit of a problem with creating compute instances both command line using occi-compute and from a Java client, maybe someone can give me a hint. I am using OpenNebula 2.2 on top of Ubuntu Desktop 10.10.</div>
<div>Both command line client and Java client work for creating blockstorage images, so I don't think authentication is a problem.</div><div><br></div><div>If I try to create the VM from command line using </div><div>
$ occi-compute create compute.xml -D --url <a href="http://192.168.141.129:5000">http://192.168.141.129:5000</a> </div><div>I get the following error message: </div><div>[VirtualMachineAllocate] Error trying to PARSE VM TEMPLATE Returned error code [1].. Reason: syntax error, unexpected EQUAL, expecting $end or VARIABLE at line 26, columns 377:383</div>
<div><br></div><div>The compute.xml file contains: $ cat compute.xml</div><div><COMPUTE></div><div><NAME>MyCompute</NAME></div><div><INSTANCE_TYPE>tiny</INSTANCE_TYPE></div><div><DISK></div>
<div><STORAGE href="<a href="http://192.168.141.129:5000/storage/0">http://192.168.141.129:5000/storage/0</a>"/></div><div><TYPE>DISK</TYPE></div><div><TARGET>hda</TARGET></div><div>
</DISK></div><div><NIC></div><div><NETWORK href="<a href="http://192.168.141.129:5000/network/5">http://192.168.141.129:5000/network/5</a>"/></div><div></NIC></div><div></COMPUTE></div>
<div><br></div><div>If I try to create the same instance from the Java client i receive this error message: Wrong type!</div><div><br></div><div>The storage image exists and has this description: $ oneimage show 0</div><div>
IMAGE INFORMATION</div><div>ID : 0</div><div>NAME : ttylinux</div><div>TYPE : OS</div><div>REGISTER TIME : 04/08 21:19:30</div><div>PUBLIC : Yes</div><div>PERSISTENT : No</div>
<div>SOURCE : /srv/cloud/one/var//images/42f54d261985fd2b5941566878dbb03fc1e6b399</div><div>STATE : rdy</div><div>RUNNING_VMS : 0</div><div><br></div><div>IMAGE TEMPLATE</div><div>BUS=IDE</div><div>DESCRIPTION=Minimalist Linux distribution</div>
<div>DEV_PREFIX=hd</div><div>NAME=ttylinux</div><div>PATH=/srv/cloud/one/one-templates/ttylinux.img</div><div>TYPE=OS</div><div><br></div><div>Also, the network has this description: $ onevnet show 5</div><div>VIRTUAL NETWORK 5 INFORMATION</div>
<div>ID: : 5</div><div>UID: : 1</div><div>PUBLIC : Y</div><div><br></div><div>VIRTUAL NETWORK TEMPLATE</div><div>BRIDGE=virbr0</div><div>LEASES=[ IP=192.168.255.10 ]</div><div>LEASES=[ IP=192.168.255.11 ]</div>
<div>LEASES=[ IP=192.168.255.12 ]</div><div>LEASES=[ IP=192.168.255.13 ]</div><div>NAME=Another small network</div><div>TYPE=FIXED</div><div><br></div><div>LEASES INFORMATION</div><div>LEASE=[ IP=192.168.255.10, MAC=02:00:c0:a8:ff:0a, USED=0, VID=-1 ]</div>
<div>LEASE=[ IP=192.168.255.11, MAC=02:00:c0:a8:ff:0b, USED=0, VID=-1 ]</div><div>LEASE=[ IP=192.168.255.12, MAC=02:00:c0:a8:ff:0c, USED=0, VID=-1 ]</div><div>LEASE=[ IP=192.168.255.13, MAC=02:00:c0:a8:ff:0d, USED=0, VID=-1 ]</div>
<div><br></div><div>The tiny template has been added to tiny.erb: $ cat etc/occi_templates/tiny.erb</div><div>CPU = 0.1</div><div>MEMORY = 64</div><div>and has been enabled in occi-server.config: $ cat etc/occi-server.conf | grep tiny</div>
<div>VM_TYPE=[NAME=tiny, TEMPLATE=tiny.erb]</div><div><br></div><div>Any ideas on how to overcome this issue?</div><div><br></div><div>Thank you, </div><div>Florian</div>