Re: [one-users] accessing VDC using Cloud APIs
Hi, Thanks for the response. I tried to use the REST service with data formatted in JSON using HttpBuilder. I would like to know the authentication method for using the service. When I tried to use the auth.basic method for setting up userid and password, it return 404 Unauthorized error. But I can see that the OzonesClient.rb is using the auth.basic to set the credentials. Any idea if I am doing anything wrong? My objective is to create VDC using the REST services. Thanks, Prakhar On Sun, Sep 18, 2011 at 3:36 AM, Ruben S. Montero rube...@dacya.ucm.eswrote: Hi, Actually, oZones/VDC is implemented as a REST service with data formatted in JSON so it should be pretty easy to interact with the module though anything that talks HTTP. We plan to provide a wrapper API for the service with bindings in JAVA and Ruby [1]. In the meantime, you may want to take a look to the ruby client and web app to develop apps for the OpenNebula Zones and VDCs service [2] (Developer information for the REST API is also to be written...) Cheers Ruben [1] http://dev.opennebula.org/issues/789 [2] Client File at src/ozones/Client/lib/OZonesClient.rb REST Service implemented at src/ozones/Server/ozones-server.rb On Thu, Sep 15, 2011 at 3:30 PM, Prakhar Srivastava prakhar@gmail.com wrote: Hi, I was checking the Opennebula 2.9.80 and really liked the VDC feature. I wanted to know if it is possible to create VDC using Cloud APIs. I checked the Opennebula Java API, it seems they doesn't have support for it. Is there any other way one can create VDC except onevdc command ?? Prakhar ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Dr. Ruben Santiago Montero Associate Professor (Profesor Titular), Complutense University of Madrid URL: http://dsa-research.org/doku.php?id=people:ruben Weblog: http://blog.dsa-research.org/?author=7 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] REG: onevnet list
Hi Fabian, Having same problem with this configuration also, NAME = test150 TYPE = FIXED BRIDGE = eth1 LEASES = [IP=192.168.58.150] OUTPUT onevnet show 108 VIRTUAL NETWORK 108 INFORMATION ID: : 108 UID: : 0 PUBLIC: N VIRTUAL NETWORK TEMPLATE BRIDGE=eth1 LEASES=[ IP=192.168.58.150 ] NAME=test150 TYPE=FIXED LEASES INFORMATION LEASE=[ IP=192.168.58.100, MAC=02:00:c0:a8:3a:64, USED=0, VID=-1 ] LEASE=[ IP=192.168.58.150, MAC=02:00:c0:a8:3a:96, USED=0, VID=-1 ] onevnet list ID USER NAME TYPE BRIDGE P #LEASES log file oned.log Thu Sep 22 10:06:10 2011 [InM][I]: --Mark-- Thu Sep 22 10:06:10 2011 [VMM][I]: --Mark-- Thu Sep 22 10:06:10 2011 [InM][I]: Monitoring host cloud7 (19) Thu Sep 22 10:06:14 2011 [InM][D]: Host 19 successfully monitored. Thu Sep 22 10:06:39 2011 [ReM][D]: HostPoolInfo method invoked Thu Sep 22 10:06:39 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Thu Sep 22 10:07:09 2011 [ReM][D]: HostPoolInfo method invoked Thu Sep 22 10:07:09 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Thu Sep 22 10:07:21 2011 [ReM][D]: VirtualNetworkAllocate method invoked Thu Sep 22 10:07:27 2011 [ReM][D]: VirtualNetworkPoolInfo method invoked Thu Sep 22 10:07:39 2011 [ReM][D]: HostPoolInfo method invoked Thu Sep 22 10:07:39 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Hi Fabian, OpenNebula Set up, 1 main server (without virtual bridge), 2 node server (with bridge name virbr0) Main server where i can perform one(host/vm/image/vnet) doesn't configured as bridge but the 2 node server has bridge name virbr0 added oned.log Thu Sep 22 09:54:39 2011 [ReM][D]: HostPoolInfo method invoked Thu Sep 22 09:54:39 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Thu Sep 22 09:55:09 2011 [ReM][D]: HostPoolInfo method invoked Thu Sep 22 09:55:09 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Thu Sep 22 09:55:39 2011 [ReM][D]: HostPoolInfo method invoked Thu Sep 22 09:55:39 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Thu Sep 22 09:55:55 2011 [InM][I]: Monitoring host cloud7 (19) Thu Sep 22 09:55:59 2011 [InM][D]: Host 19 successfully monitored. Thu Sep 22 09:56:09 2011 [ReM][D]: HostPoolInfo method invoked Thu Sep 22 09:56:09 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Thu Sep 22 09:56:10 2011 [InM][I]: --Mark-- Thu Sep 22 09:56:10 2011 [VMM][I]: --Mark-- Thu Sep 22 09:56:39 2011 [ReM][D]: HostPoolInfo method invoked Thu Sep 22 09:56:39 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Thu Sep 22 09:57:09 2011 [ReM][D]: HostPoolInfo method invoked Thu Sep 22 09:57:09 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Regards, Srivatsan J. On Wed, Sep 21, 2011 at 6:33 PM, Fabian Wenk fab...@wenks.ch wrote: Hello Srivatsan On 20.09.11 12:06, srivatsan jagannathan wrote: Trying to add virtual network, type fixed see bottom. onevnet -v create X.net - return vnet-number (10) onevnet show vnet-number (works fine, list information) onevnet list --- displays nothing (only header information rest blank.) somehow strange, did you see any errors in the log files? #Now we'll use the cluster private network (physical) BRIDGE = virbr0 Does the interface virbr0 exist? Is it really a bridge interface? You can check with 'brctl show'. bye Fabian __**_ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://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] Error monitoring host
Thanks for your help. As I said in my original email, I thought it was a funny problem, since everything used to work before and suddenly stopped working, w/o me doing anything. Well, as usual, funny problems are normally the result of stupid mistakes. I actually did something that prevented the monitoring to work as it should. I re-started Opennebula, but I did it as root. Now i have re-strated it once more, this time as oneadmin, and everything works as it used to. Thanks again for the help and sorry for bothering you with stupid problems. Cheers, Humberto Date: Wed, 21 Sep 2011 22:19:32 +0400 From: kna...@gmail.com To: users@lists.opennebula.org Subject: Re: [one-users] Error monitoring host Message-ID: 4e7a2ab4.3070...@gmail.com Content-Type: text/plain; charset=UTF-8; format=flowed Hi Humberto, Just a guess. What the output of the command 'grep nodeinfo_text $ONE_LOCATION/lib/remotes/im/kvm.d/kvm.rb|grep virsh' on front-end node? I have nodeinfo_text = `virsh -c qemu:///system nodeinfo` But it looks like you should change it to virsh -c qemu+ssh:///system HTH, Nikolay. Humberto N. Castejon Martinez wrote on 21/09/11 19:21: Hi, I know the problem I am going to report has already been discussed, but what I have read from previous discussions has not helped. My Opennebula front-end has problems to monitor one of my hosts. I get the following log messages: Wed Sep 21 17:03:44 2011 [InM][I]: Command execution fail: 'if [ -x /var/tmp/one/im/run_probes ]; then /var/tmp/one/im/run_probes kvm joker; else $ Wed Sep 21 17:03:44 2011 [InM][I]: STDERR follows. Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied, please try again. Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied, please try again. Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied (publickey,password). Wed Sep 21 17:03:44 2011 [InM][I]: ExitCode: 255 Wed Sep 21 17:03:44 2011 [InM][E]: Error monitoring host 0 : MONITOR FAILURE 0 Could not monitor host joker. The first thing that I have noticed is that run_probes is not in /var/tmp/one/im/, but I have it in /srv/cloud/one/lib/remotes/im/. Can that be the source of the problem? If I executed from my front end machine the following command as root, everything seems to work ok: /srv/cloud/one/lib/remotes/im/run_probes kvm joker However, if i execute it as oneadmin, i get the following error: Connecting to uri: qemu:///system error: unable to connect to '/var/run/libvirt/libvirt-sock': Permission denied error: failed to connect to the hypervisor Error executing kvm.rb ARCH=x86_64 MODELNAME=Intel(R) Xeon(R) CPU E5540 @ 2.53GHz I have checked, and oneadmin is member of the cloud group in joker, I have specified unix_sock_group = cloud in /etc/libvirt/libvirtd.conf and libvirt-sock seems to have the right permissions: srwxrwx--- 1 root cloud 0 2011-09-21 17:02 /var/run/libvirt/libvirt-sock So i do not know why I get the permission denied message. However, if I run virsh -c qemu+ssh://oneadmin@joker/system, I manage to connect to virsh, w/o entering a password. So i do not really know what the problem is, and hope you can help me. The funny thing is that it used to work perfectly, but it stopped working suddenly, without me changing anything (or at least I think so). Cheers, Humberto ___ 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 End of Users Digest, Vol 43, Issue 43 * ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] onevm STOP error
Which NFS version are you using? I had troubles with some distributions using NFS4, which had some permission issues. I read that performance-wise version 3 and 4 are alike so I recommend you to add the following: nfsvers=3 to your exports file: /srv/cloud 192.168.1.6(rw,no_root_squash,anonuid=0,anongid=0,sync,nfsvers=3) Hope it helps, Samuel. On 19 September 2011 12:30, bala suru balaq...@gmail.com wrote: Hi, I'm getting the same error . here is the export file of nfs server my /etc/export file /srv/cloud 192.168.1.6(rw,no_root_squash,anonuid=0,anongid=0,sync) Still same error will be logged in oned.log file . That is - Tue Sep 13 15:53:46 2011 [VMM][D]: Message received: SAVE FAILURE 57 error: Failed to save domain one-57 to /srv/cloud/one/var/57/images/checkpoint Tue Sep 13 15:53:46 2011 [VMM][D]: Message received: error: unable to set ownership of '/srv/cloud/one/var/57/images/checkpoint' to user 0:0: Operation not permitted pls help . regards Bala On Sat, Sep 17, 2011 at 12:37 AM, users-requ...@lists.opennebula.orgwrote: Send Users mailing list submissions to users@lists.opennebula.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.opennebula.org/listinfo.cgi/users-opennebula.org or, via email, send a message with subject or body 'help' to users-requ...@lists.opennebula.org You can reach the person managing the list at users-ow...@lists.opennebula.org When replying, please edit your Subject line so it is more specific than Re: Contents of Users digest... Today's Topics: 1. Re: onevm saveas error (Fabian Wenk) 2. Re: onevm STOP error (Fabian Wenk) 3. Re: Workflow Management in Open Nebula (Carlos Mart?n S?nchez) -- Message: 1 Date: Fri, 16 Sep 2011 13:20:19 +0200 From: Fabian Wenk fab...@wenks.ch To: users@lists.opennebula.org Subject: Re: [one-users] onevm saveas error Message-ID: 4e7330f3.30...@wenks.ch Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello On 16.09.2011 12:57, bharath pb wrote: The image path location has set to default location only . i.e /srv/cloud/one/var/images , but I could not see any image after executing Ok, I think this should also be fine. the saveas and shutdown commands ,. And also there are no errors in the log file . why this cant save the VM ..? Because it could not write the file /srv/cloud/one/var//images/e0561a492c9aaac280479f2f0d85dcced9156fbf as the log file you have posted shows. Is the oneadmin user able to write into this folder? Also check your configuration, this // is not normal (but usualy should not be a problem). Eventually you have set / at the end of the paths in your oned.conf, remove it. Note: I use nfs for transferring the image . You need to have the folder /srv/cloud/one/var/images/ also available on the cluster node and there the user oneadmin (or eventually libvirtd) needs to be able to write into it. bye Fabian -- Message: 2 Date: Fri, 16 Sep 2011 13:25:40 +0200 From: Fabian Wenk fab...@wenks.ch To: users@lists.opennebula.org Subject: Re: [one-users] onevm STOP error Message-ID: 4e733234.1050...@wenks.ch Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello Bala On 16.09.2011 13:14, bala suru wrote: Sat Sep 10 16:41:05 2011 [VMM][D]: Message received: SAVE FAILURE 49 error: Failed to save domain one-49 to /srv/cloud/one/var//49/images/checkpoint Sat Sep 10 16:41:05 2011 [VMM][D]: Message received: error: unable to set ownership of '/srv/cloud/one/var//49/images/checkpoint' to user 0:0: Operation not permitted . I run oneadmin as sudo user , and i'm using nfs for transferring the images (tm_nfs) . The cluster node (or libvirtd) needs to be able to write into this folder. It looks like it is running as root, so you need to allow root to write to the NFS file system, this needs to be adjusted on the NFS server in /etc/exports (see 'man exports' for details). bye Fabian -- Message: 3 Date: Fri, 16 Sep 2011 19:08:09 +0200 From: Carlos Mart?n S?nchez cmar...@opennebula.org To: Joydipto Banerjee joydipt...@in.ibm.com Cc: users@lists.opennebula.org Subject: Re: [one-users] Workflow Management in Open Nebula Message-ID: CAEPYvFJ40akGnYybWfwv5yyeWkRFpzbUdm7OXscxu= oe9gc...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi, We don't have any tool to manage the workflow, but OpenNebula can be easily tweaked with a few shell script lines. The scenario you describe can be achieved using hooks [1] in the following way: 1 - After a VM creation (or a Template instantiation), a VM on create hook can be triggered to hold the VM (the scheduler ignores VMs in this state) and send that notification email. The hook can query OpenNebula for details about the user,
Re: [one-users] REG: onevnet list
Hello Sriviatsan On 22.09.2011 10:12, srivatsan jagannathan wrote: Having same problem with this configuration also, NAME = test150 TYPE = FIXED BRIDGE = eth1 LEASES = [IP=192.168.58.150] OUTPUT onevnet show 108 VIRTUAL NETWORK 108 INFORMATION ID: : 108 UID: : 0 PUBLIC: N VIRTUAL NETWORK TEMPLATE BRIDGE=eth1 LEASES=[ IP=192.168.58.150 ] NAME=test150 TYPE=FIXED LEASES INFORMATION LEASE=[ IP=192.168.58.100, MAC=02:00:c0:a8:3a:64, USED=0, VID=-1 ] LEASE=[ IP=192.168.58.150, MAC=02:00:c0:a8:3a:96, USED=0, VID=-1 ] I have just tried your setup on my system, and everything looks good: # cat test150.net NAME = test150 TYPE = FIXED BRIDGE = eth1 LEASES = [IP=192.168.58.150] # # onevnet create test150.net # # onevnet list ID USER NAME TYPE BRIDGE P #LEASES [...] 5 admintest150 Fixed eth1 N 0 # # onevnet show 5 VIRTUAL NETWORK 5 INFORMATION ID: : 5 UID: : 0 PUBLIC: N VIRTUAL NETWORK TEMPLATE BRIDGE=eth1 LEASES=[ IP=192.168.58.150 ] NAME=test150 TYPE=FIXED LEASES INFORMATION LEASE=[ IP=192.168.58.150, MAC=02:00:c0:a8:3a:96, USED=0, VID=-1 ] # Did the network named test150 already exists when you created it with this template? This could explain why you are seeing two LEASE lines (192.168.58.100 and 192.168.58.150). But it is rather strange, that your 'onevnet list' does not show any output at all. Could it be, that the database got hit by something which trashed it in some parts? What are you using as backend database, sqlite or MySQL? bye Fabian ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] OpenNebula Express Install
Hi all, No error in install.log (front end and 2 nodes) but, onehost list ID NAME CLUSTER RVM TCPU FCPU ACPUTMEMFMEM STAT 3 cloud8default0 0 0100 0K 0K on 5 cloud7default0 0 0100 0K 0K on Regards, Srivatsan J. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] OpenNebula Express Install
you should check oned.log for errors. Regards, Nikolay. srivatsan jagannathan wrote on 22/09/11 21:38: Hi all, No error in install.log (front end and 2 nodes) but, onehost list ID NAME CLUSTER RVM TCPU FCPU ACPUTMEM FMEM STAT 3 cloud8default0 0 0100 0K 0K on 5 cloud7default0 0 0100 0K 0K on Regards, Srivatsan J. ___ 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] Is the reverse proxy of a VDC set up automatically?
Hi Tino, Thank you very much. I am running CentOS instead of Ubuntu so I changed the ozones-server.conf to have :htaccess: /var/www/html/.htaccess But this does not seem to be enough. Do we have to create this file ahead of time? Also, if I am running the ozone-server as a regular user, how am I supposed to control Apache2 which is run by root/www-data(on ubuntu) or apache (on CentOS)? Do I have to run ozone-server as root? Thanks. Shi On Wed, Sep 21, 2011 at 4:11 AM, Tino Vazquez tinov...@gmail.com wrote: Dear Shi Jin, You may want to take a look at the Configure oZones Server section of [1]. In a nutshell, the oZones server configures the reverse proxy by rewritting the .htaccess file. The documentation is still at development state, any feedback on it would be highly appreciated. Regards, -Tino [1] http://opennebula.org/documentation:rel3.0:ozonescfg -- Constantino Vázquez Blanco | dsa-research.org/tinova Virtualization Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org On Thu, Sep 15, 2011 at 11:56 PM, Shi Jin jinzish...@gmail.com wrote: Hi there, I am starting to test ONE-3.0beta2, particularly on the oZones and VDCs. My question is that do we have to manually set up the reverse proxy on Apache for each VDC or this is taken care of by OpenNebula automatically? So far, I have found that I need to manually add to httpd.conf ProxyPass /vdc1 http://192.168.1.52:2633/RPC2 ProxyPassReverse /vdc1 http://192.168.1.52:2633/RPC2 In order to use the http://host/vdc1 as the end point for the VDC. Is this how it is supposed to be? Also, as the VDC admin, I don't have the permission to run oneuser list. But shouldn't I be seeing myself and accounts I created under this account? Thanks a lot. Shi -- Shi Jin, Ph.D. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Shi Jin, Ph.D. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Is the reverse proxy of a VDC set up automatically?
Hi Tino, I actually tried to run ozone-server as root and still couldn't get the reverse proxy to work automatically and it works if I manually add the reverse proxy to httpd.conf. I wonder if the documentation could provide more information on how reverse proxy via .htaccess is done. Thanks. Shi On Thu, Sep 22, 2011 at 2:24 PM, Shi Jin jinzish...@gmail.com wrote: Hi Tino, Thank you very much. I am running CentOS instead of Ubuntu so I changed the ozones-server.conf to have :htaccess: /var/www/html/.htaccess But this does not seem to be enough. Do we have to create this file ahead of time? Also, if I am running the ozone-server as a regular user, how am I supposed to control Apache2 which is run by root/www-data(on ubuntu) or apache (on CentOS)? Do I have to run ozone-server as root? Thanks. Shi On Wed, Sep 21, 2011 at 4:11 AM, Tino Vazquez tinov...@gmail.com wrote: Dear Shi Jin, You may want to take a look at the Configure oZones Server section of [1]. In a nutshell, the oZones server configures the reverse proxy by rewritting the .htaccess file. The documentation is still at development state, any feedback on it would be highly appreciated. Regards, -Tino [1] http://opennebula.org/documentation:rel3.0:ozonescfg -- Constantino Vázquez Blanco | dsa-research.org/tinova Virtualization Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org On Thu, Sep 15, 2011 at 11:56 PM, Shi Jin jinzish...@gmail.com wrote: Hi there, I am starting to test ONE-3.0beta2, particularly on the oZones and VDCs. My question is that do we have to manually set up the reverse proxy on Apache for each VDC or this is taken care of by OpenNebula automatically? So far, I have found that I need to manually add to httpd.conf ProxyPass /vdc1 http://192.168.1.52:2633/RPC2 ProxyPassReverse /vdc1 http://192.168.1.52:2633/RPC2 In order to use the http://host/vdc1 as the end point for the VDC. Is this how it is supposed to be? Also, as the VDC admin, I don't have the permission to run oneuser list. But shouldn't I be seeing myself and accounts I created under this account? Thanks a lot. Shi -- Shi Jin, Ph.D. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Shi Jin, Ph.D. -- Shi Jin, Ph.D. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] HAIZEA lease manager and latest OpenNebula release
Hello Anyone using the HAIZEA lease manager as a scheduling backend for OpenNebula 2.x or 3.x? Were there any major changes in the ONE core that would break compatibility ? Thanks and have a nice day! Patrice ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] HAIZEA lease manager and latest OpenNebula release
Hi, I hace tested Haizea scheduling backend with Opennebula 2.2 . It has worked out of the box for me. Since Opennebula 2.2 documentation states that Haizea can be used as a Scheduling backend. So I believe that there as no core changes as far as adding a new scheduler is of concern. Thanks, Prakhar On Fri, Sep 23, 2011 at 10:34 AM, Patrice LACHANCE patlacha...@gmail.comwrote: Hello Anyone using the HAIZEA lease manager as a scheduling backend for OpenNebula 2.x or 3.x? Were there any major changes in the ONE core that would break compatibility ? Thanks and have a nice day! Patrice ___ 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