Hi antoni, Please upgrade to the latest version of OpenNebula, the method you are missing is present in the latest version.
Best, -T -- Constantino Vázquez Blanco | dsa-research.org/tinova Virtualization Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org On Tue, Mar 29, 2011 at 8:54 AM, antoni artigues <tartig...@iac3.eu> wrote: > Hi, > > Okey, thanks, now with this new line added I obtain another error: > "undefined method `retrieve_elements'" > > Here is the complete trace: > > ------------------ > Tue Mar 29 08:39:26 2011 [InM][I]: STDERR follows. > Tue Mar 29 08:39:26 2011 > [InM][I]: /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already > initialized constant ONE_LOCATION > Tue Mar 29 08:39:26 2011 > [InM][I]: /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already > initialized constant RUBY_LIB_LOCATION > Tue Mar 29 08:39:26 2011 [InM][I]: ./vmware.rb:86: undefined method > `retrieve_elements' for #<OpenNebula::VirtualMachinePool:0x7f51d92fcb50> > (NoMethodError) > Tue Mar 29 08:39:26 2011 [InM][I]: Error executing vmware.rb > Tue Mar 29 08:39:26 2011 [InM][I]: ExitCode: 1 > Tue Mar 29 08:39:26 2011 [InM][E]: Error monitoring host 0 : MONITOR > FAILURE 0 Could not monitor host oscarnode4. > -------------------- > > Thanks in advance > > Regards > > Antoni Artigues > > El lun, 28-03-2011 a las 16:18 +0200, Tino Vazquez escribió: >> Hi, >> >> No, this is the only file where this change is needed. >> >> I believe you missed the following line: >> >> -- >> $: << RUBY_LIB_LOCATION >> -- >> >> after the following: >> >> --- >> if !ONE_LOCATION >> RUBY_LIB_LOCATION="/srv/cloud/one/lib/ruby" >> else >> RUBY_LIB_LOCATION=ONE_LOCATION+"/lib/ruby" >> end >> -- >> >> >> but before the >> >> -- >> require 'OpenNebula' >> include OpenNebula >> -- >> >> Regards, >> >> -Tino >> >> -- >> Constantino Vázquez Blanco, MSc >> OpenNebula Major Contributor >> www.OpenNebula.org | @tinova79 >> >> >> >> On Mon, Mar 28, 2011 at 4:12 PM, antoni artigues <tartig...@iac3.eu> wrote: >> > Hi, >> > >> > Well, I only changed the vmware.rb. I send you the file again with this >> > last modifications. >> > >> > Is it necessary to modify some other file? >> > >> > Thanks >> > >> > Antoni Artigues >> > >> > El lun, 28-03-2011 a las 15:26 +0200, Tino Vazquez escribió: >> >> Hi, >> >> >> >> Could you send through the modified vmware.lib? >> >> >> >> Regards, >> >> >> >> -Tino >> >> >> >> -- >> >> Constantino Vázquez Blanco, MSc >> >> OpenNebula Major Contributor >> >> www.OpenNebula.org | @tinova79 >> >> >> >> >> >> >> >> On Mon, Mar 28, 2011 at 3:18 PM, antoni artigues <tartig...@iac3.eu> >> >> wrote: >> >> > Hi, >> >> > >> >> > No, I have added this lines but the error is still appearing: >> >> > >> >> > -------------------- >> >> > Mon Mar 28 15:00:02 2011 [InM][I]: Command execution >> >> > fail: /srv/cloud/one/lib/remotes/im/run_probes vmware oscarnode7 >> >> > Mon Mar 28 15:00:02 2011 [InM][I]: STDERR follows. >> >> > Mon Mar 28 15:00:02 2011 [InM][I]: ./vmware.rb:11:in `require': no such >> >> > file to load -- OpenNebula (LoadError) >> >> > Mon Mar 28 15:00:02 2011 [InM][I]: from ./vmware.rb:11 >> >> > Mon Mar 28 15:00:02 2011 [InM][I]: Error executing vmware.rb >> >> > Mon Mar 28 15:00:02 2011 [InM][I]: ExitCode: 1 >> >> > Mon Mar 28 15:00:02 2011 [InM][E]: Error monitoring host 3 : MONITOR >> >> > FAILURE 3 Could not monitor host oscarnode7. >> >> > ---------------------- >> >> > >> >> > And I have the ONE_LOCATION env defined in my sistem. >> >> > >> >> > Thanks in advance >> >> > >> >> > El lun, 28-03-2011 a las 14:53 +0200, Tino Vazquez escribió: >> >> >> Hi, >> >> >> >> >> >> Please try adding the following after the first line of vmware.rb: >> >> >> >> >> >> -- >> >> >> ONE_LOCATION=ENV["ONE_LOCATION"] >> >> >> >> >> >> if !ONE_LOCATION >> >> >> RUBY_LIB_LOCATION="/usr/lib/one/ruby" >> >> >> else >> >> >> RUBY_LIB_LOCATION=ONE_LOCATION+"/lib/ruby" >> >> >> end >> >> >> >> >> >> >> >> >> $: << RUBY_LIB_LOCATION >> >> >> -- >> >> >> >> >> >> If this works, I will add it to the next vmware addon release. >> >> >> >> >> >> Regards, >> >> >> >> >> >> -Tino >> >> >> >> >> >> -- >> >> >> Constantino Vázquez Blanco, MSc >> >> >> OpenNebula Major Contributor >> >> >> www.OpenNebula.org | @tinova79 >> >> >> >> >> >> >> >> >> >> >> >> On Mon, Mar 28, 2011 at 1:43 PM, antoni artigues <tartig...@iac3.eu> >> >> >> wrote: >> >> >> > Hello >> >> >> > >> >> >> > I'm trying to apply the patch, but I obtain this error: >> >> >> > >> >> >> > Mon Mar 28 13:29:09 2011 [InM][I]: STDERR follows. >> >> >> > Mon Mar 28 13:29:09 2011 [InM][I]: ./vmware.rb:2:in `require': no >> >> >> > such >> >> >> > file to load -- OpenNebula (LoadError) >> >> >> > >> >> >> > >> >> >> > I have attached the vmware.rb modified >> >> >> > >> >> >> > Thanks in advance >> >> >> > >> >> >> > Antoni Artigues >> >> >> > El vie, 25-03-2011 a las 13:49 +0100, Tino Vazquez escribió: >> >> >> >> Hi, >> >> >> >> >> >> >> >> Please ignore my last email, this is the correct ticket i was >> >> >> >> referring to: http://dev.opennebula.org/issues/481 >> >> >> >> >> >> >> >> Regards, >> >> >> >> >> >> >> >> -Tino >> >> >> >> >> >> >> >> -- >> >> >> >> Constantino Vázquez Blanco, MSc >> >> >> >> OpenNebula Major Contributor >> >> >> >> www.OpenNebula.org | @tinova79 >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> On Fri, Mar 25, 2011 at 1:33 PM, Tino Vazquez >> >> >> >> <tin...@opennebula.org> wrote: >> >> >> >> > Hi, >> >> >> >> > >> >> >> >> > Please apply the patch uploaded to this ticket [1], and see if the >> >> >> >> > error still shows up. >> >> >> >> > >> >> >> >> > Regards, >> >> >> >> > >> >> >> >> > -Tino >> >> >> >> > >> >> >> >> > [1] http://dev.opennebula.org/issues/541 >> >> >> >> > >> >> >> >> > -- >> >> >> >> > Constantino Vázquez Blanco, MSc >> >> >> >> > OpenNebula Major Contributor >> >> >> >> > www.OpenNebula.org | @tinova79 >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > On Tue, Mar 22, 2011 at 12:18 PM, antoni artigues >> >> >> >> > <tartig...@iac3.eu> wrote: >> >> >> >> >> Hi >> >> >> >> >> >> >> >> >> >> I send you the logs. The vm.log is from vm 71: >> >> >> >> >> >> >> >> >> >> --------------- >> >> >> >> >> $ onehost list >> >> >> >> >> ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM >> >> >> >> >> FMEM >> >> >> >> >> STAT >> >> >> >> >> 0 oscarnode4 default 2 400 400 400 7.8G >> >> >> >> >> 0K >> >> >> >> >> on >> >> >> >> >> 3 oscarnode7 default 6 400 400 400 7.8G >> >> >> >> >> 0K >> >> >> >> >> on >> >> >> >> >> ----------------- >> >> >> >> >> $ onevm list >> >> >> >> >> ID USER NAME STAT CPU MEM HOSTNAME >> >> >> >> >> TIME >> >> >> >> >> 57 oneadmin ubuntuVM runn 0 0K oscarnode7 14 >> >> >> >> >> 23:32:16 >> >> >> >> >> 58 oneadmin ubuntuVM runn 0 0K oscarnode7 14 >> >> >> >> >> 23:13:14 >> >> >> >> >> 59 oneadmin ubuntuVM runn 0 0K oscarnode7 14 >> >> >> >> >> 22:22:39 >> >> >> >> >> 60 oneadmin ubuntuVM runn 0 0K oscarnode7 14 >> >> >> >> >> 21:29:49 >> >> >> >> >> 67 oneadmin ubuntuVM runn 0 0K oscarnode4 14 >> >> >> >> >> 02:11:44 >> >> >> >> >> 68 oneadmin ubuntuVM runn 0 0K oscarnode4 14 >> >> >> >> >> 01:28:37 >> >> >> >> >> 69 oneadmin ubuntuVM runn 0 0K oscarnode7 00 >> >> >> >> >> 01:08:45 >> >> >> >> >> 70 oneadmin ubuntuVM runn 0 0K oscarnode7 00 >> >> >> >> >> 00:47:32 >> >> >> >> >> 71 oneadmin ubuntuVM fail 0 0K oscarnode7 00 >> >> >> >> >> 00:17:18 >> >> >> >> >> ----------------- >> >> >> >> >> >> >> >> >> >> Thanks in advance >> >> >> >> >> >> >> >> >> >> Regards >> >> >> >> >> >> >> >> >> >> Antoni Artigues >> >> >> >> >> >> >> >> >> >> El vie, 18-03-2011 a las 17:15 +0100, Tino Vazquez escribió: >> >> >> >> >>> Hi, >> >> >> >> >>> >> >> >> >> >>> Could you please send through the template of one VM and its log >> >> >> >> >>> ($ONE_LOCATION/var/<vid>/vm.log)? >> >> >> >> >>> >> >> >> >> >>> Also $ONE_LOCATION/var/sched.log and $ONE_LOCATION/var/oned.log >> >> >> >> >>> would >> >> >> >> >>> be useful. You can send this off the list if there is a concern >> >> >> >> >>> about >> >> >> >> >>> privacy. >> >> >> >> >>> >> >> >> >> >>> Regards, >> >> >> >> >>> >> >> >> >> >>> -Tino >> >> >> >> >>> >> >> >> >> >>> -- >> >> >> >> >>> Constantino Vázquez Blanco | dsa-research.org/tinova >> >> >> >> >>> Virtualization Technology Engineer / Researcher >> >> >> >> >>> OpenNebula Toolkit | opennebula.org >> >> >> >> >>> >> >> >> >> >>> >> >> >> >> >>> >> >> >> >> >>> On Mon, Mar 7, 2011 at 10:40 AM, antoni artigues >> >> >> >> >>> <tartig...@iac3.eu> wrote: >> >> >> >> >>> > Hello >> >> >> >> >>> > >> >> >> >> >>> > I have 4 hosts registered: >> >> >> >> >>> > >> >> >> >> >>> > $ onehost list >> >> >> >> >>> > ID NAME CLUSTER RVM TCPU FCPU ACPU >> >> >> >> >>> > TMEM FMEM >> >> >> >> >>> > STAT >> >> >> >> >>> > 0 oscarnode4 default 1 400 400 400 >> >> >> >> >>> > 7.8G 0K >> >> >> >> >>> > on >> >> >> >> >>> > 1 oscarnode5 default 1 400 400 400 >> >> >> >> >>> > 7.8G 0K >> >> >> >> >>> > on >> >> >> >> >>> > 2 oscarnode6 default 3 400 400 400 >> >> >> >> >>> > 7.8G 0K >> >> >> >> >>> > on >> >> >> >> >>> > 3 oscarnode7 default 4 400 400 400 >> >> >> >> >>> > 7.8G 0K >> >> >> >> >>> > on >> >> >> >> >>> > >> >> >> >> >>> > Each one With 7.8G of RAM >> >> >> >> >>> > >> >> >> >> >>> > I create 9 virtual machines. Each of one with 1 cpu and >> >> >> >> >>> > 1792MB of ram: >> >> >> >> >>> > ------------------------------ >> >> >> >> >>> > NAME="ubuntuVM" >> >> >> >> >>> > VCPU = 1 >> >> >> >> >>> > MEMORY = 1792 >> >> >> >> >>> > OS = [ ARCH = "i686" ] >> >> >> >> >>> > DISK=[IMAGE="vmimage", >> >> >> >> >>> > TARGET="sda", >> >> >> >> >>> > BUS="scsi"] >> >> >> >> >>> > NIC=[NETWORK="vmware LAN bridged"] >> >> >> >> >>> > ------------------------------ >> >> >> >> >>> > >> >> >> >> >>> > There are 4 running machines on "oscarnode7" host. >> >> >> >> >>> > >> >> >> >> >>> > When I create more virtual machines the scheduler sends it to >> >> >> >> >>> > the >> >> >> >> >>> > "oscarnode7". But it doen't start because there is no more >> >> >> >> >>> > available RAM >> >> >> >> >>> > on this host. >> >> >> >> >>> > >> >> >> >> >>> > If I create more machines, always the scheduler sends it to >> >> >> >> >>> > the same >> >> >> >> >>> > host!!! >> >> >> >> >>> > >> >> >> >> >>> > Why the scheduler are not asigning another host? For example, >> >> >> >> >>> > "oscarnode4" is only running one virtual machine >> >> >> >> >>> > >> >> >> >> >>> > >> >> >> >> >>> > This is the virtual machines distribution after creating a >> >> >> >> >>> > new virtual >> >> >> >> >>> > machine: >> >> >> >> >>> > >> >> >> >> >>> > onevm list >> >> >> >> >>> > ID USER NAME STAT CPU MEM HOSTNAME >> >> >> >> >>> > TIME >> >> >> >> >>> > 38 oneadmin ubuntuVM runn 0 0K oscarnode7 02 >> >> >> >> >>> > 19:04:46 >> >> >> >> >>> > 39 oneadmin ubuntuVM runn 0 0K oscarnode7 02 >> >> >> >> >>> > 18:42:19 >> >> >> >> >>> > 40 oneadmin ubuntuVM runn 0 0K oscarnode7 02 >> >> >> >> >>> > 18:24:08 >> >> >> >> >>> > 42 oneadmin ubuntuVM runn 0 0K oscarnode6 02 >> >> >> >> >>> > 18:07:58 >> >> >> >> >>> > 43 oneadmin ubuntuVM runn 0 0K oscarnode5 02 >> >> >> >> >>> > 18:07:51 >> >> >> >> >>> > 44 oneadmin ubuntuVM runn 0 0K oscarnode4 02 >> >> >> >> >>> > 18:07:43 >> >> >> >> >>> > 46 oneadmin ubuntuVM runn 0 0K oscarnode6 02 >> >> >> >> >>> > 18:06:43 >> >> >> >> >>> > 51 oneadmin ubuntuVM runn 0 0K oscarnode6 02 >> >> >> >> >>> > 17:58:05 >> >> >> >> >>> > 53 oneadmin ubuntuVM prol 0 0K oscarnode7 00 >> >> >> >> >>> > 00:00:43 >> >> >> >> >>> > >> >> >> >> >>> > Thanks in advance >> >> >> >> >>> > >> >> >> >> >>> > Antoni Artigues >> >> >> >> >>> > >> >> >> >> >>> > _______________________________________________ >> >> >> >> >>> > 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 >> >> >> > >> >> >> > >> >> > >> >> > >> >> > _______________________________________________ >> >> > 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 > > _______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org