Re: [one-users] Error creating VM: Error: [VirtualMachineAllocate] Error trying to CREATE VM Can not insert VM in the database.

2011-08-22 Thread Florin Antonescu
Check that VM name is unique.

On Mon, Aug 22, 2011 at 2:56 PM, Stephan Eberle  wrote:

> Hi,
>
> I just stumbled over this log entry:
>
> Mon Aug 22 13:52:02 2011 [ONE][E]: SQL command was: INSERT INTO vm_pool
> (oid,uid,name,last_poll,
> state,lcm_state,stime,etime,deploy_id,memory,cpu,net_tx,net_rx,last_seq,
> template) VALUES
> (7,0,'vssvn',0,1,0,1314013922,0,'',0,0,0,0,-1,''),
> error: PRIMARY KEY must be unique
> Mon Aug 22 13:52:02 2011 [ONE][E]: Can not insert VM in the database.
> Mon Aug 22 13:52:02 2011 [ReM][E]: [VirtualMachineAllocate] Error trying to
> CREATE VM Can not insert VM in the database.
>
>
> Any idea of how to fix this!?
>
> Best regards,
> Stevie
>
>
> Am 22. Aug 2011 um 12:28 schrieb Stephan Eberle :
>
> Hi,
>
> I'm currently trying to add a pre-existing qemu-image to my newly installed
> ONE service via
>
> onevm create ./vs-svn-serv.tpl
>
> and I'm getting this message:
>
> Error: [VirtualMachineAllocate] Error trying to CREATE VM Can not insert VM
> in the database.
>
> Is this due to some missing arguments in the template? What's the cause?
>
> Thank's in advance,
> Stevie
>
>
>
> PS: My template looks like this:
>
>
> #---
> # VM definition example
> #---
>
> NAME = "vs-svn-serv-1"
>
> CPU= 0.8
> MEMORY = 512
> PUBLIC = YES
>
> # --- disks ---
>
> DISK = [
>   source   = "/home/images/vs-svn-serv.img",
>   target   = "hda",
>   driver   = "raw",
>   readonly = "no" ]
>
> # --- 1 NIC ---
>
> NIC = [ NETWORK="external"]
>
> FEATURES=[ acpi="no" ]
>
> # --- VNC server ---
>
> GRAPHICS = [
>   type= "vnc",
>   listen  = "xx.xx.xx.xx",
>   port= "5902"]
>
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfocgi/users-opennebula.org
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Disk image type not propagated by saveas

2011-08-19 Thread Florin Antonescu
I am also seeing this behavior in OpenNebula 2.9.80 (of not propagating the
qcow2 driver attribute) and I think it is a bug. Are there any plans of
changing this in the final version of OpenNebula 3.0?

Best regards,
Florian

On Wed, Aug 17, 2011 at 1:09 PM, Tino Vazquez  wrote:

> Dear Rob,
>
> The "raw" disk type attribute is being pulled from the default, which
> is set in /etc/one/vmm_exec/vmm_exec_kvm.conf  (in OpenNebula 3.0
> Beta1, in OpenNebula 2.2 is /etc/one/vmm_kvm/vmm_kvm.conf IIRC).
>
> Which version of OpenNebula are you using? In 3.0, you can update the
> image template to add the type parameter, using "oneimage update".
>
> Hope it helps,
>
> -Tino
>
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
>
>
>
> On Sat, Aug 13, 2011 at 12:36 AM, Robert Parrott
>  wrote:
> > Hi Folks,
> >
> > After fixing an older issue with the "onevm saveas" command, I'm
> > seeing the following behavior.
> >
> > If I do a "onevm saveas" on a running VM with a qcow2 disk image, and
> > then shutdown the VM, I see that it successfully shutdowns and then
> > copies over the VM image.
> >
> > However, I can't start VMs from these images.  The root cause appears
> > to be that the driver is propagated to the new image; i.e. the disk
> > tempalte for the new image doesn't contain a "DRIVER=qcow2" line. The
> > resulting libvirt deployment file has "type='raw'" for the disk entry,
> > and not the needed "type='qcow2'".
> >
> > So I expect this is a bug, and a bit of a showstopper for us. Where
> > should I look to fix this?
> >
> > Thanks!
> > Rob
> >
> >
> >
> > --
> > Robert E. Parrott, Ph.D. (Phys. '06)
> > Director, Academic Computing
> > Harvard University Sch. of Eng. and App. Sci.
> > Maxwell-Dworkin  211,
> > 33 Oxford St.
> > Cambridge, MA 02138
> > (617)-496-1520
> > ___
> > Users mailing list
> > Users@lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] ACPI-enabled VM image (with small footprint)

2011-08-16 Thread Florin Antonescu
Thank you very much for your suggestion. JeOS sounds like a very good
option.

Best regards,
Florian

On Tue, Aug 16, 2011 at 1:27 AM,  wrote:

> Hi Florian,
>
> ** **
>
> I use JEOS (https://secure.wikimedia.org/wikipedia/en/wiki/Ubuntu_JeOS).
> With qcow2 format this has a very small footprint, boots quickly and works
> very well with OpenNebula. JeOS optionally supports ACPI (you have to
> specify the corresponding package to be included when you build the image).
> 
>
> ** **
>
> E.g:
>
> vmbuilder kvm ubuntu -v --debug --suite=lucid --flavour=virtual
> --iso=ubuntu.iso
>
> --mirror= -o --ip=dhcp --firstboot=/home/carsten/jeo
>
> s/boot.sh --part=vmbuilder_noswap.partition 
>
> --addpkg=vim-nox --addpkg=unattended-upgrades --addpkg=acpid --addpkg=
>
> openssh-server -a amd64 
>
>
> 
>
> Carsten
>
> ** **
>
> [image: cid:387141907@30042010-37FB] <http://www.csiro.au/>
>
> Carsten Friedrich
>
> Research Team leader
>
> ICT Centre, GPO Box 664,Canberra, ACT 2601
>
> Phone: +61 2 6216 7019 
>
> Email: carsten.friedr...@csiro.au
>
> Web:   http://www.csiro.au/org/ICT.html
>
> ** **
>
> ** **
>
> *From:* users-boun...@lists.opennebula.org [mailto:
> users-boun...@lists.opennebula.org] *On Behalf Of *Florin Antonescu
> *Sent:* Tuesday, 16 August 2011 0:54
> *To:* OpenNebula-users
> *Subject:* [one-users] ACPI-enabled VM image (with small footprint)
>
> ** **
>
> Can someone give me a hint about an ACPI-enabled Linux variant with a very
> small footprint? I understand that the provided TTY LInux is not ACPI
> enabled and for this reason it cannot be live-migrated or shutdown. Or, is
> it possible to install ACPI support in TTY Linux?
>
> ** **
>
> Best regards,
>
> Florian
>
<>___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] ACPI-enabled VM image (with small footprint)

2011-08-15 Thread Florin Antonescu
Can someone give me a hint about an ACPI-enabled Linux variant with a very
small footprint? I understand that the provided TTY LInux is not ACPI
enabled and for this reason it cannot be live-migrated or shutdown. Or, is
it possible to install ACPI support in TTY Linux?

Best regards,
Florian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] [Beta 3.0] onevnet list reports incorrect number of leases

2011-08-11 Thread Florin Antonescu
I have just noticed that onevnet list command reports an incorrect number of
leases. I have a virtual network which initially has been created with only
one IP address and after that leases have added using the XML-RPC interface.
This is what onevnet list and show commands display:
Is this a bug?

Best regards,
Florian

onevnet list
ID USER GROUPNAME  TYPE BRIDGE PUB  LEASES
14 oneadmin oneadmin vnet_cl001   F virbr0  No   2

onevnet show 14
VIRTUAL NETWORK 14 INFORMATION
ID : 14
USER   : oneadmin
GROUP  : oneadmin
PUBLIC : No
USED LEASES: 0

VIRTUAL NETWORK TEMPLATE
BRIDGE=virbr0
LEASES=[ IP=192.168.122.128 ]
NAME=vnet_cl001
TYPE=FIXED

LEASES INFORMATION
LEASE=[ IP=192.168.122.128, MAC=02:00:c0:a8:7a:80, USED=0, VID=-1 ]
LEASE=[ IP=192.168.122.129, MAC=02:00:c0:a8:7a:81, USED=0, VID=-1 ]
LEASE=[ IP=192.168.122.130, MAC=02:00:c0:a8:7a:82, USED=0, VID=-1 ]
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] internal error Only 1 ide controller is supported

2011-08-10 Thread Florin Antonescu
It seems KVM supports only four IDE controllers, so the documentation[1] on
VM's disk section should be modified to reflect this.

[1] http://opennebula.org/documentation:rel3.0:template#disks_section

On Wed, Aug 10, 2011 at 2:16 PM, Florin Antonescu  wrote:

> Hello,
>
> I am trying to deploy the following VM to OpenNebula 3.0 (I have one host
> added with NFS and KVM hypervisor), however, I receive the following error
> message:
> Wed Aug 10 05:05:11 2011 [VMM][I]: error: Failed to create domain from
> /srv/cloud/one/var/26/images/deployment.0
> Wed Aug 10 05:05:11 2011 [VMM][I]: error: internal error Only 1 ide
> controller is supported
>
> The template I am trying to use is given below. I though a VM could have as
> many datablock images as needed, does this apply only to disk images and not
> to disks declared on the fly?
>
> Best regards,
> Florian
>
> CPU = 1
> MEMORY = 64.0
> DISK = [ IMAGE_ID = 0 ]
> DISK = [TYPE=fs,FORMAT=ext3,TARGET=hde, SIZE = 10 ]
> NIC = [ NETWORK_ID = 1 ]
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] internal error Only 1 ide controller is supported

2011-08-10 Thread Florin Antonescu
Hello,

I am trying to deploy the following VM to OpenNebula 3.0 (I have one host
added with NFS and KVM hypervisor), however, I receive the following error
message:
Wed Aug 10 05:05:11 2011 [VMM][I]: error: Failed to create domain from
/srv/cloud/one/var/26/images/deployment.0
Wed Aug 10 05:05:11 2011 [VMM][I]: error: internal error Only 1 ide
controller is supported

The template I am trying to use is given below. I though a VM could have as
many datablock images as needed, does this apply only to disk images and not
to disks declared on the fly?

Best regards,
Florian

CPU = 1
MEMORY = 64.0
DISK = [ IMAGE_ID = 0 ]
DISK = [TYPE=fs,FORMAT=ext3,TARGET=hde, SIZE = 10 ]
NIC = [ NETWORK_ID = 1 ]
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [Beta 3.0] Wrong target value in DISK.

2011-08-10 Thread Florin Antonescu
Ok, so it seems that for inline declared disks, the target is also
mandatory. I had the impression that ti is like in the case of disk images,
when the target is not necessary.

On Tue, Aug 9, 2011 at 8:03 PM, Florin Antonescu
wrote:

> Hello,
>
> I am trying to deploy a VM using the following template, but I receive the
> error message: "Wrong target value in DISK.". What could cause this?
>
> Thank you,
> Florian
>
> CPU = 1
> MEMORY = 64.0
> DISK = [ IMAGE_ID = 0 ]
> DISK = [FORMAT=ext3, TYPE = fs, SIZE = 10 ]
> NIC = [ NETWORK_ID = 11 ]
> REQUIREMENTS = "(CPUSPEED > 1500.0) & (CPUSPEED < 5000.0)"
>
> VM log:
> Tue Aug  9 09:52:04 2011 [DiM][I]: New VM state is ACTIVE.
> Tue Aug  9 09:52:04 2011 [LCM][I]: New VM state is PROLOG.
> Tue Aug  9 09:52:05 2011 [VM][I]: Virtual Machine has no context
> Tue Aug  9 09:52:05 2011 [TM][D]: tm_clone.sh:
> zrhv60209129a.zrh.sap.corp:/srv/cloud/one/var/images/a6cc03bf0be59d780b4b4bfbd9c0bd30
> zrhs60197305a.zrh.sap.corp:/srv/cloud/one/var/18/images/disk.0
> Tue Aug  9 09:52:05 2011 [TM][D]: tm_clone.sh: DST:
> /srv/cloud/one/var/18/images/disk.0
> Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Creating directory
> /srv/cloud/one/var/18/images
> Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p
> /srv/cloud/one/var/18/images".
> Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w
> /srv/cloud/one/var/18/images".
> Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Cloning
> /srv/cloud/one/var/images/a6cc03bf0be59d780b4b4bfbd9c0bd30
> Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Executed "cp -r
> /srv/cloud/one/var/images/a6cc03bf0be59d780b4b4bfbd9c0bd30
> /srv/cloud/one/var/18/images/disk.0".
> Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw
> /srv/cloud/one/var/18/images/disk.0".
> Tue Aug  9 09:52:05 2011 [TM][I]: ExitCode: 0
> Tue Aug  9 09:52:05 2011 [TM][I]: tm_mkimage.sh: Executed "mkdir -p
> /srv/cloud/one/var/18/images".
> Tue Aug  9 09:52:05 2011 [TM][I]: tm_mkimage.sh: Executed "/bin/dd
> if=/dev/zero of=/srv/cloud/one/var/18/images/disk.1 bs=1 count=1 seek=10M".
> Tue Aug  9 09:52:05 2011 [TM][I]: tm_mkimage.sh: Executed "/sbin/mkfs -t
> ext3 -F /srv/cloud/one/var/18/images/disk.1".
> Tue Aug  9 09:52:05 2011 [TM][I]: tm_mkimage.sh: Executed "chmod a+rw
> /srv/cloud/one/var/18/images/disk.1".
> Tue Aug  9 09:52:05 2011 [TM][I]: ExitCode: 0
> Tue Aug  9 09:52:05 2011 [LCM][I]: New VM state is BOOT
> Tue Aug  9 09:52:05 2011 [VMM][I]: Generating deployment file:
> /srv/cloud/one/var/18/deployment.0
> Tue Aug  9 09:52:06 2011 [VMM][E]: Wrong target value in DISK.
> Tue Aug  9 09:52:06 2011 [VMM][E]: deploy_action, error generating
> deployment file: /srv/cloud/one/var/18/deployment.0
> Tue Aug  9 09:52:06 2011 [DiM][I]: New VM state is FAILED
> Tue Aug  9 09:52:06 2011 [TM][W]: Ignored: LOG I 18 tm_delete.sh: Deleting
> /srv/cloud/one/var/18/images
> Tue Aug  9 09:52:06 2011 [TM][W]: Ignored: LOG I 18 tm_delete.sh: Executed
> "rm -rf /srv/cloud/one/var/18/images".
> Tue Aug  9 09:52:06 2011 [TM][W]: Ignored: LOG I 18 ExitCode: 0
> Tue Aug  9 09:52:06 2011 [TM][W]: Ignored: TRANSFER SUCCESS 18 -
>
> Generated deployment.0 file (incomplete)
> 
> one-18
> 65536
> 
> hvm
> 
> 
> 
> /usr/bin/kvm
> 
>  file='/srv/cloud/one/var/18/images/disk.0'/>
> 
> 
> 
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] [Beta 3.0] Wrong target value in DISK.

2011-08-09 Thread Florin Antonescu
Hello,

I am trying to deploy a VM using the following template, but I receive the
error message: "Wrong target value in DISK.". What could cause this?

Thank you,
Florian

CPU = 1
MEMORY = 64.0
DISK = [ IMAGE_ID = 0 ]
DISK = [FORMAT=ext3, TYPE = fs, SIZE = 10 ]
NIC = [ NETWORK_ID = 11 ]
REQUIREMENTS = "(CPUSPEED > 1500.0) & (CPUSPEED < 5000.0)"

VM log:
Tue Aug  9 09:52:04 2011 [DiM][I]: New VM state is ACTIVE.
Tue Aug  9 09:52:04 2011 [LCM][I]: New VM state is PROLOG.
Tue Aug  9 09:52:05 2011 [VM][I]: Virtual Machine has no context
Tue Aug  9 09:52:05 2011 [TM][D]: tm_clone.sh:
zrhv60209129a.zrh.sap.corp:/srv/cloud/one/var/images/a6cc03bf0be59d780b4b4bfbd9c0bd30
zrhs60197305a.zrh.sap.corp:/srv/cloud/one/var/18/images/disk.0
Tue Aug  9 09:52:05 2011 [TM][D]: tm_clone.sh: DST:
/srv/cloud/one/var/18/images/disk.0
Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Creating directory
/srv/cloud/one/var/18/images
Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p
/srv/cloud/one/var/18/images".
Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w
/srv/cloud/one/var/18/images".
Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Cloning
/srv/cloud/one/var/images/a6cc03bf0be59d780b4b4bfbd9c0bd30
Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Executed "cp -r
/srv/cloud/one/var/images/a6cc03bf0be59d780b4b4bfbd9c0bd30
/srv/cloud/one/var/18/images/disk.0".
Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw
/srv/cloud/one/var/18/images/disk.0".
Tue Aug  9 09:52:05 2011 [TM][I]: ExitCode: 0
Tue Aug  9 09:52:05 2011 [TM][I]: tm_mkimage.sh: Executed "mkdir -p
/srv/cloud/one/var/18/images".
Tue Aug  9 09:52:05 2011 [TM][I]: tm_mkimage.sh: Executed "/bin/dd
if=/dev/zero of=/srv/cloud/one/var/18/images/disk.1 bs=1 count=1 seek=10M".
Tue Aug  9 09:52:05 2011 [TM][I]: tm_mkimage.sh: Executed "/sbin/mkfs -t
ext3 -F /srv/cloud/one/var/18/images/disk.1".
Tue Aug  9 09:52:05 2011 [TM][I]: tm_mkimage.sh: Executed "chmod a+rw
/srv/cloud/one/var/18/images/disk.1".
Tue Aug  9 09:52:05 2011 [TM][I]: ExitCode: 0
Tue Aug  9 09:52:05 2011 [LCM][I]: New VM state is BOOT
Tue Aug  9 09:52:05 2011 [VMM][I]: Generating deployment file:
/srv/cloud/one/var/18/deployment.0
Tue Aug  9 09:52:06 2011 [VMM][E]: Wrong target value in DISK.
Tue Aug  9 09:52:06 2011 [VMM][E]: deploy_action, error generating
deployment file: /srv/cloud/one/var/18/deployment.0
Tue Aug  9 09:52:06 2011 [DiM][I]: New VM state is FAILED
Tue Aug  9 09:52:06 2011 [TM][W]: Ignored: LOG I 18 tm_delete.sh: Deleting
/srv/cloud/one/var/18/images
Tue Aug  9 09:52:06 2011 [TM][W]: Ignored: LOG I 18 tm_delete.sh: Executed
"rm -rf /srv/cloud/one/var/18/images".
Tue Aug  9 09:52:06 2011 [TM][W]: Ignored: LOG I 18 ExitCode: 0
Tue Aug  9 09:52:06 2011 [TM][W]: Ignored: TRANSFER SUCCESS 18 -

Generated deployment.0 file (incomplete)

one-18
65536

hvm



/usr/bin/kvm





___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [Beta 3.0] error: unable to set user and group to '117:126' on '/srv/cloud/one/var/2/images/disk.0': No such file or directory

2011-08-08 Thread Florin Antonescu
Just found the cause (very silly): the NFS share was not mounted (sudo mount
/srv/cloud/one)

2011/8/8 Florin Antonescu 

> Hello,
>
> After switching from OpenNebula 2.2 to OpenNebula 2.9.80 (Beta 3.0)
> deploying VMs stopped functioning. The error message I receive is:
> Mon Aug  8 08:26:32 2011 [VMM][D]: Message received: LOG I 2 Command
> execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then
> /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var/2/images/deployment.0 zrhs 2
> zrhs; else  exit 42; fi'
> Mon Aug  8 08:26:32 2011 [VMM][D]: Message received: LOG I 2 error: Failed
> to create domain from /srv/cloud/one/var/2/images/deployment.0
> Mon Aug  8 08:26:32 2011 [VMM][D]: Message received: LOG I 2 error: unable
> to set user and group to '117:126' on '/srv/cloud/one/var/2/images/disk.0':
> No such file or directory
>
> Searching through the mailing list archives I found that this could be
> caused by not setting VM_DIR property in oned.conf file, but in my case the
> property is set and also, the NFS mount point is the same on both
> OpenNebula's host and on the slave host.
> Does anyone know what might be causing this error? Or at lease, where
> should I look in the source code to find out what is happening?
>
> Best regards,
> Florian
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] [Beta 3.0] error: unable to set user and group to '117:126' on '/srv/cloud/one/var/2/images/disk.0': No such file or directory

2011-08-08 Thread Florin Antonescu
Hello,

After switching from OpenNebula 2.2 to OpenNebula 2.9.80 (Beta 3.0)
deploying VMs stopped functioning. The error message I receive is:
Mon Aug  8 08:26:32 2011 [VMM][D]: Message received: LOG I 2 Command
execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then
/var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var/2/images/deployment.0 zrhs 2
zrhs; else  exit 42; fi'
Mon Aug  8 08:26:32 2011 [VMM][D]: Message received: LOG I 2 error: Failed
to create domain from /srv/cloud/one/var/2/images/deployment.0
Mon Aug  8 08:26:32 2011 [VMM][D]: Message received: LOG I 2 error: unable
to set user and group to '117:126' on '/srv/cloud/one/var/2/images/disk.0':
No such file or directory

Searching through the mailing list archives I found that this could be
caused by not setting VM_DIR property in oned.conf file, but in my case the
property is set and also, the NFS mount point is the same on both
OpenNebula's host and on the slave host.
Does anyone know what might be causing this error? Or at lease, where should
I look in the source code to find out what is happening?

Best regards,
Florian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [Beta 3.0] Problem creating VM: Failed to create domain

2011-08-08 Thread Florin Antonescu
I tend to believe that disk.0 image file is not correctly copied to
destination host. How can I debug this process in order to see what is
really happening? The logs are not very detailed regarding where these
actions are executed on the remote host.
Any help is greatly appreciated.

Best regards

On Thu, Aug 4, 2011 at 6:18 PM, Florin Antonescu
wrote:

> Hi,
>
> I modified tm_delete.sh and added ls -l $SRC_PATH just before rm command
> and this was the output it generated:
>  -rw-rw-rw- 1 oneadmin cloud 41943040 Jul 28 20:42 disk.0
> it seems that disk.0 is in place, but I think there is an authorization
> problem, related to " error: unable to set user and group to '117:126' on
> '/srv/cloud/one/var//11/images/disk.0':"
>
> Any new ideas?
>
> On Thu, Aug 4, 2011 at 5:54 PM, Vladimir Vuksan  wrote:
>
>>
>> I would explore this
>>
>>  Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG I 11 error:
>> unable
>>  to set user and group to '117:126' on
>> '/srv/cloud/one/var//11/images/disk.0': No such file or directory
>>
>> Edit tm_delete.sh in $ONE_HOME/lib/tm_commands (?). Comment out the line
>> where it deletes the images. Then once things fail see what's in the
>> /srv/cloud/one/var/11/images/ directory.
>>
>> On Thu, 4 Aug 2011 17:40:27 +0200, Florin Antonescu
>>  wrote:
>> > Hello,
>> >
>> > I am running into some problems when I try to create a VM with onevm
>> > command. These are the logged messages on oned.log and var/11/vm.log.
>> > Can anyone give me a suggestion on how to fix this?
>> >
>> > Best regards,
>> > Florian
>> >
>> > Thu Jul 28 19:55:52 2011 [DiM][D]: Deploying VM 11
>> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG D 11
>> tm_clone.sh:
>> > zrhv:/srv/cloud/one/var/images/aca498c2dc295b68a9311246f0745526
>> > zrhs:/srv/cloud/one/var//11/images/disk.0
>> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG D 11
>> tm_clone.sh:
>> > DST: /srv/cloud/one/var//11/images/disk.0
>> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11
>> tm_clone.sh:
>> > Creating directory /srv/cloud/one/var//11/images
>> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11
>> tm_clone.sh:
>> > Executed "mkdir -p /srv/cloud/one/var//11/images".
>> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11
>> tm_clone.sh:
>> > Executed "chmod a+w /srv/cloud/one/var//11/images".
>> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11
>> tm_clone.sh:
>> > Cloning /srv/cloud/one/var/images/aca498c2dc295b68a9311246f0745526
>> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11
>> tm_clone.sh:
>> > Executed "cp -r
>> /srv/cloud/one/var/images/aca498c2dc295b68a9311246f0745526
>> > /srv/cloud/one/var//11/images/disk.0".
>> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11
>> tm_clone.sh:
>> > Executed "chmod a+rw /srv/cloud/one/var//11/images/disk.0".
>> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11 ExitCode: 0
>> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: TRANSFER SUCCESS 11
>> -
>> > Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG I 11 Command
>> > execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then
>> > /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//11/images/deployment.0
>> zrhs
>> > 11 zrhs; else  exit 42; fi'
>> > Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG I 11 error:
>> Failed
>> > to create domain from /srv/cloud/one/var//11/images/deployment.0
>> > Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG I 11 error:
>> unable
>> > to set user and group to '117:126' on
>> > '/srv/cloud/one/var//11/images/disk.0': No such file or directory
>> > Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG E 11 Could not
>> > create domain from /srv/cloud/one/var//11/images/deployment.0
>> > Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG I 11 ExitCode:
>> 255
>> > Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: DEPLOY FAILURE 11
>> > Could
>> > not create domain from /srv/cloud/one/var//11/images/deployment.0
>> > Thu Jul 28 19:56:05 2011 [TM][D]: Message received: LOG I 11
>> tm_delete.sh:
>> > Deleting /srv/cloud/one/var//11/images
>> > Thu Jul 28 19:56:05 2011 [TM][D]: Message received: LOG I 11
>> tm_delete.sh:
>> > Executed "rm -rf /srv/cloud/one/var//11/images".
>> > Thu Jul 28 19:56:05 2011 [TM][D]: Message received: LOG I 11 ExitCode: 0
>> > Thu Jul 28 19:56:05 2011 [TM][D]: Message received: TRANSFER SUCCESS 11
>> -
>>
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [Beta 3.0] Problem creating VM: Failed to create domain

2011-08-04 Thread Florin Antonescu
Hi,

I modified tm_delete.sh and added ls -l $SRC_PATH just before rm command and
this was the output it generated:
 -rw-rw-rw- 1 oneadmin cloud 41943040 Jul 28 20:42 disk.0
it seems that disk.0 is in place, but I think there is an authorization
problem, related to " error: unable to set user and group to '117:126' on
'/srv/cloud/one/var//11/images/disk.0':"

Any new ideas?

On Thu, Aug 4, 2011 at 5:54 PM, Vladimir Vuksan  wrote:

>
> I would explore this
>
>  Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG I 11 error:
> unable
>  to set user and group to '117:126' on
> '/srv/cloud/one/var//11/images/disk.0': No such file or directory
>
> Edit tm_delete.sh in $ONE_HOME/lib/tm_commands (?). Comment out the line
> where it deletes the images. Then once things fail see what's in the
> /srv/cloud/one/var/11/images/ directory.
>
> On Thu, 4 Aug 2011 17:40:27 +0200, Florin Antonescu
>  wrote:
> > Hello,
> >
> > I am running into some problems when I try to create a VM with onevm
> > command. These are the logged messages on oned.log and var/11/vm.log.
> > Can anyone give me a suggestion on how to fix this?
> >
> > Best regards,
> > Florian
> >
> > Thu Jul 28 19:55:52 2011 [DiM][D]: Deploying VM 11
> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG D 11
> tm_clone.sh:
> > zrhv:/srv/cloud/one/var/images/aca498c2dc295b68a9311246f0745526
> > zrhs:/srv/cloud/one/var//11/images/disk.0
> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG D 11
> tm_clone.sh:
> > DST: /srv/cloud/one/var//11/images/disk.0
> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11
> tm_clone.sh:
> > Creating directory /srv/cloud/one/var//11/images
> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11
> tm_clone.sh:
> > Executed "mkdir -p /srv/cloud/one/var//11/images".
> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11
> tm_clone.sh:
> > Executed "chmod a+w /srv/cloud/one/var//11/images".
> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11
> tm_clone.sh:
> > Cloning /srv/cloud/one/var/images/aca498c2dc295b68a9311246f0745526
> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11
> tm_clone.sh:
> > Executed "cp -r
> /srv/cloud/one/var/images/aca498c2dc295b68a9311246f0745526
> > /srv/cloud/one/var//11/images/disk.0".
> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11
> tm_clone.sh:
> > Executed "chmod a+rw /srv/cloud/one/var//11/images/disk.0".
> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11 ExitCode: 0
> > Thu Jul 28 19:56:03 2011 [TM][D]: Message received: TRANSFER SUCCESS 11
> -
> > Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG I 11 Command
> > execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then
> > /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//11/images/deployment.0
> zrhs
> > 11 zrhs; else  exit 42; fi'
> > Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG I 11 error:
> Failed
> > to create domain from /srv/cloud/one/var//11/images/deployment.0
> > Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG I 11 error:
> unable
> > to set user and group to '117:126' on
> > '/srv/cloud/one/var//11/images/disk.0': No such file or directory
> > Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG E 11 Could not
> > create domain from /srv/cloud/one/var//11/images/deployment.0
> > Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG I 11 ExitCode:
> 255
> > Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: DEPLOY FAILURE 11
> > Could
> > not create domain from /srv/cloud/one/var//11/images/deployment.0
> > Thu Jul 28 19:56:05 2011 [TM][D]: Message received: LOG I 11
> tm_delete.sh:
> > Deleting /srv/cloud/one/var//11/images
> > Thu Jul 28 19:56:05 2011 [TM][D]: Message received: LOG I 11
> tm_delete.sh:
> > Executed "rm -rf /srv/cloud/one/var//11/images".
> > Thu Jul 28 19:56:05 2011 [TM][D]: Message received: LOG I 11 ExitCode: 0
> > Thu Jul 28 19:56:05 2011 [TM][D]: Message received: TRANSFER SUCCESS 11
> -
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] [Beta 3.0] Problem creating VM: Failed to create domain

2011-08-04 Thread Florin Antonescu
Hello,

I am running into some problems when I try to create a VM with onevm
command. These are the logged messages on oned.log and var/11/vm.log.
Can anyone give me a suggestion on how to fix this?

Best regards,
Florian

Thu Jul 28 19:55:52 2011 [DiM][D]: Deploying VM 11
Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG D 11 tm_clone.sh:
zrhv:/srv/cloud/one/var/images/aca498c2dc295b68a9311246f0745526
zrhs:/srv/cloud/one/var//11/images/disk.0
Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG D 11 tm_clone.sh:
DST: /srv/cloud/one/var//11/images/disk.0
Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11 tm_clone.sh:
Creating directory /srv/cloud/one/var//11/images
Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11 tm_clone.sh:
Executed "mkdir -p /srv/cloud/one/var//11/images".
Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11 tm_clone.sh:
Executed "chmod a+w /srv/cloud/one/var//11/images".
Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11 tm_clone.sh:
Cloning /srv/cloud/one/var/images/aca498c2dc295b68a9311246f0745526
Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11 tm_clone.sh:
Executed "cp -r /srv/cloud/one/var/images/aca498c2dc295b68a9311246f0745526
/srv/cloud/one/var//11/images/disk.0".
Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11 tm_clone.sh:
Executed "chmod a+rw /srv/cloud/one/var//11/images/disk.0".
Thu Jul 28 19:56:03 2011 [TM][D]: Message received: LOG I 11 ExitCode: 0
Thu Jul 28 19:56:03 2011 [TM][D]: Message received: TRANSFER SUCCESS 11 -
Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG I 11 Command
execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then
/var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//11/images/deployment.0 zrhs
11 zrhs; else  exit 42; fi'
Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG I 11 error: Failed
to create domain from /srv/cloud/one/var//11/images/deployment.0
Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG I 11 error: unable
to set user and group to '117:126' on
'/srv/cloud/one/var//11/images/disk.0': No such file or directory
Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG E 11 Could not
create domain from /srv/cloud/one/var//11/images/deployment.0
Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: LOG I 11 ExitCode: 255
Thu Jul 28 19:56:05 2011 [VMM][D]: Message received: DEPLOY FAILURE 11 Could
not create domain from /srv/cloud/one/var//11/images/deployment.0
Thu Jul 28 19:56:05 2011 [TM][D]: Message received: LOG I 11 tm_delete.sh:
Deleting /srv/cloud/one/var//11/images
Thu Jul 28 19:56:05 2011 [TM][D]: Message received: LOG I 11 tm_delete.sh:
Executed "rm -rf /srv/cloud/one/var//11/images".
Thu Jul 28 19:56:05 2011 [TM][D]: Message received: LOG I 11 ExitCode: 0
Thu Jul 28 19:56:05 2011 [TM][D]: Message received: TRANSFER SUCCESS 11 -
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [Beta 3.0] Scheduler issue

2011-08-04 Thread Florin Antonescu
Hi,

Thank you for the hint. I found out that it also works by defining the
no_proxy variable.

Best regards,
Florian

2011/8/4 Carlos Martín Sánchez 

> Hi,
>
> This problem has been described before; looks like it can be fixed
> unsetting the http_proxy [1].
>
> Regards.
>
> [1]
> http://lists.opennebula.org/pipermail/users-opennebula.org/2010-August/002470.html
> --
> Carlos Martín, MSc
> Project Major Contributor
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org <http://www.opennebula.org/> | cmar...@opennebula.org
>
>
> On Thu, Aug 4, 2011 at 8:42 AM, Florin Antonescu <
> florinantone...@gmail.com> wrote:
>
>> Hello,
>>
>> I noticed that the scheduler of OpenNebula 3.0 is not able to connect to
>> the XML-RPC server, however the XML-RPC API seems to be working just fine
>> when invoked from an external application.
>>  The sched.log is full of entries similar to these ones:
>>
>> Thu Jul 28 09:51:03 2011 [HOST][E]: Exception raised: Unable to transport
>> XML to server and get XML response back.  HTTP response code is 404, not 200
>> Thu Jul 28 09:51:03 2011 [POOL][E]: Could not retrieve pool info from ONE
>>
>> but one_xmlrpc.log does not log any corresponding activity (the 404s do
>> not appear in the log).
>> Can anyone give me a suggestion on how to proceed?
>>
>> Best regards,
>> Florian
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] [Beta 3.0] Scheduler issue

2011-08-03 Thread Florin Antonescu
Hello,

I noticed that the scheduler of OpenNebula 3.0 is not able to connect to the
XML-RPC server, however the XML-RPC API seems to be working just fine when
invoked from an external application.
The sched.log is full of entries similar to these ones:

Thu Jul 28 09:51:03 2011 [HOST][E]: Exception raised: Unable to transport
XML to server and get XML response back.  HTTP response code is 404, not 200
Thu Jul 28 09:51:03 2011 [POOL][E]: Could not retrieve pool info from ONE

but one_xmlrpc.log does not log any corresponding activity (the 404s do not
appear in the log).
Can anyone give me a suggestion on how to proceed?

Best regards,
Florian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [Beta 3.0] Problem instantiating VM

2011-08-03 Thread Florin Antonescu
One extra comment would be that I get this behavior also if I try to deploy
a VM accordingly to the tutorial at
http://opennebula.org/documentation:rel3.0:vmg

On Wed, Aug 3, 2011 at 1:16 PM, Florin Antonescu
wrote:

> Hello,
>
> I am having some trouble using OpenNebula 3.0 to instantiate a VM (sample
> ttylinux) using XML-RPC interface.
> The VM template I use is:
> CPU = 1
> MEMORY = 64.0
> DISK = [ IMAGE_ID = 1 ]
> DISK = [TYPE = block, SIZE = 10.0 ]
> NIC = [ NETWORK_ID = 1 ]
> REQUIREMENTS = "(CPUSPEED > 1500.0) & (CPUSPEED < 2500.0)"
>
> Disk image and virtual networks are properly registered, however, the VM
> remains in pend state
> 2 oneadmin oneadmin one-2pend   0  0K 00
> 00:13:08
>
> The VM log in var/2/vm.log is empty and sched.log has the following
> content:
> Thu Jul 28 09:51:03 2011 [HOST][E]: Exception raised: Unable to transport
> XML to server and get XML response back.  HTTP response code is 404, not 200
> Thu Jul 28 09:51:03 2011 [POOL][E]: Could not retrieve pool info from ONE
>
> but  one_xmlrpc.log does not log any corresponding activity.
>
> Can someone give me a hint on how to approach this issue?
>
> Best regards,
> Florian
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] [Beta 3.0] Problem instantiating VM

2011-08-03 Thread Florin Antonescu
Hello,

I am having some trouble using OpenNebula 3.0 to instantiate a VM (sample
ttylinux) using XML-RPC interface.
The VM template I use is:
CPU = 1
MEMORY = 64.0
DISK = [ IMAGE_ID = 1 ]
DISK = [TYPE = block, SIZE = 10.0 ]
NIC = [ NETWORK_ID = 1 ]
REQUIREMENTS = "(CPUSPEED > 1500.0) & (CPUSPEED < 2500.0)"

Disk image and virtual networks are properly registered, however, the VM
remains in pend state
2 oneadmin oneadmin one-2pend   0  0K 00
00:13:08

The VM log in var/2/vm.log is empty and sched.log has the following content:
Thu Jul 28 09:51:03 2011 [HOST][E]: Exception raised: Unable to transport
XML to server and get XML response back.  HTTP response code is 404, not 200
Thu Jul 28 09:51:03 2011 [POOL][E]: Could not retrieve pool info from ONE

but  one_xmlrpc.log does not log any corresponding activity.

Can someone give me a hint on how to approach this issue?

Best regards,
Florian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [Beta 3.0] XML-RPC add lease to virtual network

2011-08-02 Thread Florin Antonescu
Thank you for the quick response.

Best regards,
Florian

2011/8/2 Carlos Martín Sánchez 

> Hi,
>
> Looks like our documentation is missing some methods, we'll try to
> update it soon.
>
> The input parameters haven't changed, you can use the 2.2 reference for
> one.vn.addleases
> one.vn.rmleases
>
> see:
> http://opennebula.org/documentation:rel2.2:api
>
> Regards.
> --
> Carlos Martín, MSc
> Project Major Contributor
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org | cmar...@opennebula.org
>
>
>
> On Tue, Aug 2, 2011 at 2:56 PM, Florin Antonescu
>  wrote:
> > Hello,
> > Can someone tell me about how can a new lease be added to an existing
> > virtual network in OpenNebula 3.0 using the XML-RPC interface?
> > Thank you,
> > Florian
> > ___
> > Users mailing list
> > Users@lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] [Beta 3.0] XML-RPC add lease to virtual network

2011-08-02 Thread Florin Antonescu
Hello,

Can someone tell me about how can a new lease be added to an existing
virtual network in OpenNebula 3.0 using the XML-RPC interface?

Thank you,
Florian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] OpenNebula 3.0 installation guide

2011-07-25 Thread Florin Antonescu
Hello,

I was wondering if there is an installation guide for OpenNebula 3.0 or if
there are additional requirements comparing to those for installing
OpenNebula 2.2.

Best regards,
Florian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] About OpenNebula 3 and Open vSwitch (Network Isolation)

2011-06-24 Thread Florin Antonescu
Hello,

This might be a silly question, but does using Open vSwitch Network
Isolation, require a network switch capable of forwarding VLAN tagged
traffic as in the case of using host-managed VLANs ?

Thank you
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OCA XML-RPC output

2011-05-18 Thread Florin Antonescu
I am also interested in this topic as I am trying to do the same task for
research project GEYSERS.

On Wed, May 18, 2011 at 6:36 PM, Gian Uberto Lauri  wrote:

> Hello all,
>
>  I am  writing an  OCCI implementation that  accepts OVF  for the
>  Venus-C  research project.  This implementation  parses OVF  and
>  uses  the  extracted informatios  to  build  the input  fir  the
>  appropriate OCA api.
>
>  /compute  works  using  OCA  allocate(), now  I  am  working  on
>  /compute/[id] that will use OCA info(). This call returns an XML
>  that I have to translate into an OVF.
>
>  I choosed to parse this XML using xjc to compile xsd definitions
>  into Java classes.
>
>  I downloaded the xsd from the hyperlink in the XML-RPC page, but
>  the definition for  VMs (i.e. the answer of the  info() OCA api)
>  is too  coares, and I  need to parse at  least some of  the tags
>  inside the  tag to get finer grained informations.
>
>  So I have to change the xsd I downloaded.
>
>  This lead to this question: May I assume that tag order is fixed
>  inside   ?  so that the content may  be defined by a
>   ?
>
>  And does  this hold even  for the  content of ,   and
>  ?
>
>  Common sense says  that Ruby should not  execute its instruction
>  out of order, so the order is fixed and some elements may or may
>  not appear,  but the  order should not  change. Can  you confirm
>  this ?
>
>  Thank you in advance.
>
> --
> ing. Gian Uberto Lauri
> Ricercatore / Reasearcher
> Laboratorio Ricerca e Sviluppo / Research & Development Lab.
> Area Calcolo Distribuito / Distributed Computation Area
>
> gianuberto.la...@eng.it
>
> Engineering Ingegneria Informatica spa
> Corso Stati Uniti 23/C, 35127 Padova (PD)
>
> Tel. +39-049.8283.571 | main(){printf(&unix["\021%six\012\0"],
> Fax  +39-049.8283.569 |(unix)["have"]+"fun"-0x60);}
> Skype: gian.uberto.lauri  |  David Korn, AT&T Bell Labs
> http://www.eng.it |  ioccc best One Liner,
> 1987
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] XML-RPC Disk information

2011-05-18 Thread Florin Antonescu
I am using version 2.2.

On Wed, May 18, 2011 at 2:46 PM, Javier Fontan  wrote:

> What version are you using? Stock OpenNebula does not push information
> about disk space but certainly it can be added.
>
> Also all the CLI tools use the XMLRPC interface so you should get the
> same information using both XMLPRC or CLI. The problem you are facing
> is that onehost show is one.host.info call. The call one.hostpool.info
> is used for onehost list.
>
> On Tue, May 17, 2011 at 2:42 PM, Florin Antonescu
>  wrote:
> > I am trying to use the XML-RPC interface for getting information about
> > available host computers and about their available disk space. I have
> found
> > that XML-RPC one.hostpool.info command should return for each host the
> > amount of free/available/used disk space, however, the returned value is
> > always 0. So I have added a new probe that should produce the FREESPACE
> and
> > USEDSPACE attributes. These seems to work when invoking command line
> utility
> > 'onehost show' but not when using the XML-RPC interface. Can anyone give
> me
> > a hint about what should I modify in order for the XML-RPC
> > 'one.hostpool.info' command to work. Also, it would be nice if this
> could be
> > fixed in the next OpenNebula release.
> > Best regards,
> > Florian
> > ___
> > Users mailing list
> > Users@lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >
>
>
>
> --
> Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
> DSA Research Group: http://dsa-research.org
> Globus GridWay Metascheduler: http://www.GridWay.org
> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Help to login without asking for a user or password.

2011-05-17 Thread Florin Antonescu
You ca find a nice tutorial at the following location:
https://help.ubuntu.com/community/SSH/OpenSSH/Keys

BR

On Tue, May 17, 2011 at 7:51 PM, Luis G. Alford G. wrote:

> hi,
>
> I have finally install the open nebula and it seems to be working just fine
> now I need too add the host that I have as xen server and add it to the
> dashboard .
> I have been reading about the configuartion steps and I see that one should
> be able to login ussing ssh without the request for a password. any idea on
> how to do this. ..  waiting for your repley
>
> regards
> Luis Alford
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] XML-RPC Disk information

2011-05-17 Thread Florin Antonescu
I am trying to use the XML-RPC interface for getting information about
available host computers and about their available disk space. I have found
that XML-RPC one.hostpool.info command should return for each host the
amount of free/available/used disk space, however, the returned value is
always 0. So I have added a new probe that should produce the FREESPACE and
USEDSPACE attributes. These seems to work when invoking command line utility
'onehost show' but not when using the XML-RPC interface. Can anyone give me
a hint about what should I modify in order for the XML-RPC '
one.hostpool.info' command to work. Also, it would be nice if this could be
fixed in the next OpenNebula release.

Best regards,
Florian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Help setting up Open nebula

2011-05-15 Thread Florin Antonescu
Hi Luis,

You can find a very detailed workshop about installing OpenNebula at this
location: http://hpc.uamr.de/wissen/opennebula-workshop/

Hope this helps!

On Sun, May 15, 2011 at 4:13 PM, Luis G. Alford G. wrote:

> hi,
>
> I'm trying to strart the opennebula server i have install all the package
> but when I try to start the service I get the following message
>
> You should have ONE_AUTH set the first time you start
> OpenNebula as it is used to set the credentials for
> the administrator user.
>
> can some one please tell me how to do this for a debbian system.
>
> waiting for your soon replay
>
> regards
> Luis
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OCCI compute creation problem

2011-04-27 Thread Florin Antonescu
I found the issue, thank you for helping me finding it.
The VM template contained this:

NAME   = "MyCompute"
  DISK = [ IMAGE_ID = 2  ]

  NIC = [ NETWORK_ID = 0  ]

INSTANCE_TYPE = tinyCPU= 0.1
MEMORY = 64

Due to the fact that the tiny.erb did not contain an emty line, the instance
type and the CPU parameter were mixed.
I can now move on, as I am able to create compute instances over OCCI

Best regards

On Tue, Apr 26, 2011 at 6:54 PM, Daniel Molina wrote:

> In the previous mail you were getting the following error:
> [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
>
> In the last mail the error is on the template section instead of the
> allocate one. Did you change anything?
>
> Try f.puts template.message instead of  f.puts template to check the error.
>
> On 26 April 2011 18:40, Florin Antonescu 
> wrote:
> > I added the following code to OCCIServer.rb:
> >  # --- Generate the template and Allocate the new Instance ---
> > template = vm.to_one_template
> > File.open("/tmp/occi.template.txt", "w") do |f|
> > f.puts template
> > end
> > and the output was:
> > $ cat /tmp/occi.template.txt
> > #
> > 500
> > in the Java client I get a HTTP 500 error code with the message: Wrong
> type!
> > The file common.erb contains:
> > $ cat /srv/cloud/one/etc/occi_templates/common.erb
> > #
> > # This template is processed by the OCCI Server to include specific data
> for
> > the
> > # instance, you should not need to modify the ruby code.
> > # You can add common attributes for your cloud templates (e.g. OS)
> > #
> > NAME   = "<%= @vm_info['NAME'] %>"
> > <% @vm_info.each('DISK') do |disk| %>
> > <% if disk.attr('STORAGE','href') %>
> >   DISK = [ IMAGE_ID = <%= disk.attr('STORAGE','href').split('/').last
> %>
> >]
> > <% end %>
> > <% end %>
> > <% @vm_info.each('NIC') do |nic| %>
> > <% if nic.attr('NETWORK','href') %>
> >   NIC = [ NETWORK_ID = <%= nic.attr('NETWORK','href').split('/').last
> %>
> >   <% if nic['IP'] %>
> >   ,IP = <%= nic['IP'] %>
> >   <% end %>
> >   ]
> > <% end %>
> > <% end %>
> > <% if @vm_info.has_elements?('CONTEXT') %>
> > CONTEXT = [
> > <% first = true %>
> > <% @vm_info.each('CONTEXT/*') do |cont| %>
> > <% if cont.text %>
> > <% if first %>
> > <%= cont.name %> = "<%= cont.text %>"
> > <% first = false %>
> >         <% else %>
> > ,<%= cont.name %> = "<%= cont.text %>"
> > <% end %>
> > <% end %>
> > <% end %>
> > ]
> > <% end %>
> > INSTANCE_TYPE = <%= @vm_info['INSTANCE_TYPE']%>
> > Any suggestion about how to proceed?
> >
> > On Tue, Apr 26, 2011 at 4:31 PM, Daniel Molina 
> > wrote:
> >>
> >> Hi,
> >>
> >> Would you mind to send the content of the common.erb file inside the
> >> occi_templates folder and the template that is built by OCCI (line 162
> >> inside the OCCIServer.rb file, you can write that variable into a
> >> file).
> >>
> >> Regards.
> >>
> >>
> >> On 17 April 2011 16:07, Florin Antonescu 
> >> wrote:
> >> > Hi there!
> >> > 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.
> >> > Both command line client and Java client work for creating
> blockstorage
> >> > images, so I don't think authentication is a problem.
> >> > If I try to create the VM from command line using
> >> > $ occi-compute create compute.xml -D --url
> http://192.168.141.129:5000
> >> > I get the following error message:
> >> > [Virtu

Re: [one-users] Problem with OCCI client while creating storage image

2011-04-26 Thread Florin Antonescu
I am developing my own client in Java. Do you know if such a (reference)
client already exists?

On Tue, Apr 26, 2011 at 6:57 PM, Daniel Molina wrote:

> What client are you using? Are you developing your own client?
>
> You can check the OCCIClient code (post_image method) to get an idea.
>
> On 26 April 2011 18:44, Florin Antonescu 
> wrote:
> > Can you please suggest me a way to send the file? Also, the file
> parameter
> > should contain the path to the actual image ot the content of the image?
> > Is there any documentation that I could consult regarding registering
> images
> > using the OCCI client? Also an example would be very useful.
> > Best regards
> > On Tue, Apr 26, 2011 at 4:39 PM, Daniel Molina 
> > wrote:
> >>
> >> Hi,
> >>
> >> The server waits for a file (request.params['file']) and the xml
> >> (request.params['occixml']). In your case is that the file is missing
> >> in the request.
> >>
> >> Regards
> >>
> >> On 17 April 2011 21:34, Florin Antonescu 
> >> wrote:
> >> > Hello,
> >> > I have encountered a strange situation while trying to create a
> storage
> >> > image using OCCI interface from a Java client (Opennebula 2.2 on
> Ubuntu
> >> > 10.10). The XML representation that I was trying to send is
> >> > 
> >> > test-ttylinux
> >> > Minimalist Linux distribution
> >> > OS
> >> > file:///srv/cloud/one/one-templates/ttylinux.img
> >> > 
> >> > and the response received from OCCI server is: "Image path not
> present,
> >> > aborting." However, if I try to create the same storage image using
> >> > occi-image, everything works OK. Is there a constraint for the URL?
> What
> >> > is
> >> > the proper way of creating OS images using OCCI interface?
> >> > Thank you,
> >> > Florian
> >> > ___
> >> > Users mailing list
> >> > Users@lists.opennebula.org
> >> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Daniel Molina, Cloud Technology Engineer/Researcher
> >> Major Contributor
> >> OpenNebula - The Open Source Toolkit for Cloud Computing
> >> www.OpenNebula.org | dmol...@opennebula.org
> >
> >
>
>
>
> --
> Daniel Molina, Cloud Technology Engineer/Researcher
> Major Contributor
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org | dmol...@opennebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Problem with OCCI client while creating storage image

2011-04-26 Thread Florin Antonescu
Can you please suggest me a way to send the file? Also, the file parameter
should contain the path to the actual image ot the content of the image?
Is there any documentation that I could consult regarding registering images
using the OCCI client? Also an example would be very useful.

Best regards

On Tue, Apr 26, 2011 at 4:39 PM, Daniel Molina wrote:

> Hi,
>
> The server waits for a file (request.params['file']) and the xml
> (request.params['occixml']). In your case is that the file is missing
> in the request.
>
> Regards
>
> On 17 April 2011 21:34, Florin Antonescu 
> wrote:
> > Hello,
> > I have encountered a strange situation while trying to create a storage
> > image using OCCI interface from a Java client (Opennebula 2.2 on Ubuntu
> > 10.10). The XML representation that I was trying to send is
> > 
> > test-ttylinux
> > Minimalist Linux distribution
> > OS
> > file:///srv/cloud/one/one-templates/ttylinux.img
> > 
> > and the response received from OCCI server is: "Image path not present,
> > aborting." However, if I try to create the same storage image using
> > occi-image, everything works OK. Is there a constraint for the URL? What
> is
> > the proper way of creating OS images using OCCI interface?
> > Thank you,
> > Florian
> > ___
> > Users mailing list
> > Users@lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >
>
>
>
> --
> Daniel Molina, Cloud Technology Engineer/Researcher
> Major Contributor
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org | dmol...@opennebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Problem with OCCI client while creating storage image

2011-04-17 Thread Florin Antonescu
Hello,

I have encountered a strange situation while trying to create a storage
image using OCCI interface from a Java client (Opennebula 2.2 on Ubuntu
10.10). The XML representation that I was trying to send is

test-ttylinux
Minimalist Linux distribution
 OS
file:///srv/cloud/one/one-templates/ttylinux.img

and the response received from OCCI server is: "Image path not present,
aborting." However, if I try to create the same storage image using
occi-image, everything works OK. Is there a constraint for the URL? What is
the proper way of creating OS images using OCCI interface?

Thank you,
Florian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] OCCI compute creation problem

2011-04-17 Thread Florin Antonescu
Hi there!

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.
Both command line client and Java client work for creating blockstorage
images, so I don't think authentication is a problem.

If I try to create the VM from command line using
$ occi-compute create compute.xml -D --url http://192.168.141.129:5000
I get the following error message:
[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

The compute.xml file contains: $ cat compute.xml

MyCompute
tiny

http://192.168.141.129:5000/storage/0"/>
DISK
hda


http://192.168.141.129:5000/network/5"/>



If I try to create the same instance from the Java client i receive this
error message: Wrong type!

The storage image exists and has this description: $ oneimage show 0
IMAGE  INFORMATION
ID : 0
NAME   : ttylinux
TYPE   : OS
REGISTER TIME  : 04/08 21:19:30
PUBLIC : Yes
PERSISTENT : No
SOURCE :
/srv/cloud/one/var//images/42f54d261985fd2b5941566878dbb03fc1e6b399
STATE  : rdy
RUNNING_VMS: 0

IMAGE TEMPLATE
BUS=IDE
DESCRIPTION=Minimalist Linux distribution
DEV_PREFIX=hd
NAME=ttylinux
PATH=/srv/cloud/one/one-templates/ttylinux.img
TYPE=OS

Also, the network has this description: $ onevnet show 5
VIRTUAL NETWORK 5 INFORMATION
ID:   : 5
UID:  : 1
PUBLIC: Y

VIRTUAL NETWORK TEMPLATE
BRIDGE=virbr0
LEASES=[ IP=192.168.255.10 ]
LEASES=[ IP=192.168.255.11 ]
LEASES=[ IP=192.168.255.12 ]
LEASES=[ IP=192.168.255.13 ]
NAME=Another small network
TYPE=FIXED

LEASES INFORMATION
LEASE=[ IP=192.168.255.10, MAC=02:00:c0:a8:ff:0a, USED=0, VID=-1 ]
LEASE=[ IP=192.168.255.11, MAC=02:00:c0:a8:ff:0b, USED=0, VID=-1 ]
LEASE=[ IP=192.168.255.12, MAC=02:00:c0:a8:ff:0c, USED=0, VID=-1 ]
LEASE=[ IP=192.168.255.13, MAC=02:00:c0:a8:ff:0d, USED=0, VID=-1 ]

The tiny template has been added to tiny.erb: $ cat
etc/occi_templates/tiny.erb
CPU= 0.1
MEMORY = 64
and has been enabled in occi-server.config: $ cat etc/occi-server.conf |
grep tiny
VM_TYPE=[NAME=tiny, TEMPLATE=tiny.erb]

Any ideas on how to overcome this issue?

Thank you,
Florian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org