Re: [one-users] Problem with ebtables OpenNebula

2011-04-11 Thread Leong Marco
[oneadmin@geek ~]$ ruby -dw /usr/lib/one/mads/one_auth_mad.rb
Exception `LoadError' at /usr/lib/one/mads/one_auth_mad.rb:33 - no such file to 
load -- rubygems
/usr/lib/one/mads/one_auth_mad.rb:33:in `require': no such file to load -- 
rubygems (LoadError)
from /usr/lib/one/mads/one_auth_mad.rb:33

here is the output.

Leong Marco
leong.chou@usj.edu.mo



On Apr 11, 2011, at 11:06 PM, Tino Vazquez wrote:

> Ok, please try
> 
> $ ruby -dw $ONE_LOCATION/lib/mads/one_auth_mad.rb
> 
> and send the output
> 
> Regards,
> 
> -Tino
> 
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
> 
> 
> 
> On Mon, Apr 11, 2011 at 4:59 PM, Leong Marco  
> wrote:
>> Hi,
>> It return the shell.
>> Best regards.
>> Leong Marco
>> leong.chou@usj.edu.mo
>> 
>> 
>> On Apr 11, 2011, at 10:54 PM, Tino Vazquez wrote:
>> 
>> Hi,
>> 
>> What happens, does it return the shell, or does it wait for input?
>> 
>> Regards,
>> 
>> -Tino
>> 
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>> 
>> 
>> 
>> On Mon, Apr 11, 2011 at 4:49 PM, Leong Marco 
>> wrote:
>> 
>> Hi Tino,
>> 
>> Thank you for your reply.
>> 
>> This command doesn't produce any output.
>> 
>> Leong Marco
>> 
>> leong.chou@usj.edu.mo
>> 
>> 
>> On Apr 11, 2011, at 10:20 PM, Tino Vazquez wrote:
>> 
>> Dear Leong,
>> 
>> Please try the following as oneadmin, and send the output:
>> 
>> # $ONE_LOCATION/lib/mads/one_auth_mad
>> 
>> Regards,
>> 
>> .Tino
>> 
>> 
>> --
>> 
>> Constantino Vázquez Blanco, MSc
>> 
>> OpenNebula Major Contributor
>> 
>> www.OpenNebula.org | @tinova79
>> 
>> 
>> 
>> On Mon, Apr 11, 2011 at 3:49 PM, Leong Marco 
>> 
>> wrote:
>> 
>> Dear Tino,
>> 
>> Yes, I did have this error in the log.
>> 
>> Mon Apr 11 15:13:09 2011 [MAD][E]: MAD did not answer INIT command
>> 
>> What is the problem happen here? Thank you for your help !
>> 
>> Leong Marco
>> 
>> leong.chou@usj.edu.mo
>> 
>> 
>> On Apr 11, 2011, at 8:55 PM, Tino Vazquez wrote:
>> 
>> Dear Leong, Marwen,
>> 
>> If you are experiencing the following in the logs
>> 
>> Fri Apr  8 11:59:05 2011 [MAD][E]: MAD did not answer INIT command
>> 
>> it may be due to a missing dependency, we can walk you on finding out which
>> 
>> one.
>> 
>> Otherwise, please say so and we will look at other possible causes.
>> 
>> Regards,
>> 
>> -Tino
>> 
>> --
>> 
>> Constantino Vázquez Blanco | dsa-research.org/tinova
>> 
>> Virtualization Technology Engineer / Researcher
>> 
>> OpenNebula Toolkit | opennebula.org
>> 
>> 
>> 
>> On Mon, Apr 11, 2011 at 9:13 AM, Leong Marco 
>> 
>> wrote:
>> 
>> Hi,
>> 
>> I have the same problem as Marwen. With this log message.
>> 
>> Mon Apr 11 14:50:26 2011 [TM][I]: tm_context.sh: Executed "rm -rf
>> 
>> /var/lib/one/2603e38607a144aef3bef07283d77095".
>> 
>> Mon Apr 11 14:50:26 2011 [LCM][I]: New VM state is BOOT
>> 
>> Mon Apr 11 14:50:26 2011 [VMM][I]: Generating deployment file:
>> 
>> /var/lib/one/165/deployment.1
>> 
>> Mon Apr 11 14:50:28 2011 [LCM][I]: New VM state is RUNNING
>> 
>> Mon Apr 11 14:50:28 2011 [HKM][I]: Hook ebtables-start successfully
>> 
>> executed.
>> 
>> However, if I do a list to ebtables, it is empty.
>> 
>> [oneadmin@geek root]$ sudo ebtables --list
>> 
>> Bridge table: filter
>> 
>> Bridge chain: INPUT, entries: 0, policy: ACCEPT
>> 
>> Bridge chain: FORWARD, entries: 0, policy: ACCEPT
>> 
>> Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
>> 
>> When I run some ebtables command like this one, it works
>> 
>> sudo ebtables -A FORWARD -p IPv4 -j ACCEPT
>> 
>> this does add the rules to the table.
>> 
>> What can I provide to help you to debug this problem?
>> 
>> Leong Marco
>> 
>> leong.chou@usj.edu.mo
>> 
>> 
>> On Apr 7, 2011, at 9:46 PM, marwen marwen wrote:
>> 
>> Hi Zaina
>> 
>> Yes I added oneadmin in the sudoers file of the physical host where the VM
>> 
>> is allocated.
>> 
>> And when I create the VM I specify the host where the VM will be allocated.
>> 
>> But the problem is not resolved.
>> 
>> Do you think that we must add this command in sudoers file of all cluster
>> 
>> nodes.
>> 
>> oneadminALL=(ALL) NOPASSWD: /sbin/ebtables *
>> 
>> Best regards
>> 
>> Marwen
>> 
>> From: Zaina AFOULKI 
>> 
>> To: users@lists.opennebula.org
>> 
>> Subject: Re: [one-users] Problem with ebtables OpenNebula
>> 
>> Message-ID: <4d9cb10c.6080...@ensi-bourges.fr>
>> 
>> Content-Type: text/plain; charset=ISO-8859-1
>> 
>> Hi Marwen,
>> 
>> Did you make sure that oneadmin is added in the /etc/sudoers file with
>> 
>> oneadminALL=(ALL) NOPASSWD: /sbin/ebtables * ?
>> 
>> http://opennebula.org/documentation:archives:rel2.0:nm
>> 
>> --
>> 
>> Zaina
>> 
>> 
>> On 04/06/2011 06:40 PM, marwen marwen wrote:
>> 
>> Hi,
>> 
>> I'm using ebtables to isolate virtual network in OpenNebula.
>> 
>> I have a problem when OpenNebula execute ebtables-kvm script.
>> 
>> In fact, the log file mention no error "Wed Apr  6 18:22:02 2011
>

[one-users] Opennebula Deltacloud Adaptor

2011-04-11 Thread Sebastian Neg
Hi,I installed Opennebula 2.2 on CentOS.
Deltacloud Adaptor is it functional with this version?
Thanks
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Vm memory shows 0

2011-04-11 Thread Javier Fontan
Monitoring takes a bit to get information on the VM consumption form
the hypervisor. It is not strange that it takes a minute or so after
the VM goes to "runn" state. If after a couple of minutes the VM is
still showing 0 in memory consumption can you check that there are not
monitoring errors in the log files?

On Tue, Mar 29, 2011 at 4:15 PM, Madhurranjan Mohaan
 wrote:
> Hello Steven,
>
> That was a great point. I found the error in the libvirt log for that Vm.
> The vnc host was started but on a port that was already listening so the VM
> had crashed. Followed by that I recreated the vm-template file with a
> different port and its up now. Virsh list shows it up  but onevm shows it in
> the unknown state . Memory is still 0 .
>
> Followed by that i deployed the ttylinux image as well that comes by
> default. Again  that shows 0K memory. Unable to figure out the reason.
>
> thanks
>
> Ranjan
>
>
>
> On Tue, Mar 29, 2011 at 7:17 PM, Steven Timm  wrote:
>>
>> If virsh list doesn't show anything that means that the
>> VM crashed soon after boot on the VM host.  Look at the libvirt
>> logs on the VM host.  If you have access to virt-manager
>> or some other way to see a vm console, try to do a onevm restart 
>> and see if you can get the console up fast enough to see where it died.
>>
>> Steve Timm
>>
>>
>> On Tue, 29 Mar 2011, Madhurranjan Mohaan wrote:
>>
>>> Hello Steven,
>>>
>>> Thanks for your quick response.
>>>
>>> 1. The nnn.log of the VM , shows me this : It doesn't show me 0 anywhere
>>> here.
>>>
>>>
>>> Tue Mar 29 17:54:58 2011 [TM][I]: tm_clone.sh: DST:
>>> /srv/cloud/one/var/58/images/disk.0
>>> Tue Mar 29 17:54:58 2011 [TM][I]: tm_clone.sh: Creating directory
>>> /srv/cloud/one/var/58/images
>>> Tue Mar 29 17:54:59 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p
>>> /srv/cloud/one/var/58/images".
>>> Tue Mar 29 17:54:59 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w
>>> /srv/cloud/one/var/58/images".
>>> Tue Mar 29 17:55:00 2011 [TM][I]: tm_clone.sh: Cloning
>>> /srv/cloud/one/fr.iso
>>> Tue Mar 29 17:55:00 2011 [TM][I]: tm_clone.sh: Executed "cp -r
>>> /srv/cloud/one/fr.iso
>>> /srv/cloud/one/var/58/images/disk.0"                     .
>>> Tue Mar 29 17:55:00 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw
>>> /srv/cloud/one/var/58/images/disk.0".
>>> Tue Mar 29 17:55:03 2011 [TM][I]: tm_mkimage.sh: Executed "mkdir -p
>>> /srv/cloud/one/var/58/images".
>>> Tue Mar 29 17:55:03 2011 [TM][I]: tm_mkimage.sh: Executed "/bin/dd
>>> if=/dev/zero of=/srv/cloud/one/var/58/images/disk.1 bs
>>> =1 count=1 seek=4096M".
>>> Tue Mar 29 17:55:03 2011 [TM][I]: tm_mkimage.sh: Executed "/sbin/mkfs -t
>>> ext3 -F /srv/cloud/one/var/58/images/disk.1".
>>> Tue Mar 29 17:55:03 2011 [TM][I]: tm_mkimage.sh: Executed "chmod a+rw
>>> /srv/cloud/one/var/58/images/disk.1".
>>> Tue Mar 29 17:55:03 2011 [TM][I]: tm_context.sh: Executed "mkdir -p
>>> /srv/cloud/one/var/58/images/isofiles".
>>> Tue Mar 29 17:55:03 2011 [TM][I]: tm_context.sh: Executed "cp -R
>>> /srv/cloud/one/var/58/context.sh /srv/cloud/one/var/58/i
>>> mages/isofiles".
>>> Tue Mar 29 17:55:03 2011 [TM][I]: tm_context.sh: Executed "cp -R
>>> /srv/cloud/one/vm-template-2/init.sh /srv/cloud/one/var/
>>> 58/images/isofiles".
>>> Tue Mar 29 17:55:03 2011 [TM][I]: tm_context.sh: Executed
>>> "/usr/bin/mkisofs
>>> -o /srv/cloud/one/var/58/images/disk.2 -J -R
>>> /srv/cloud/one/var/58/images/isofiles".
>>> Tue Mar 29 17:55:03 2011 [TM][I]: tm_context.sh: Executed "rm -rf
>>> /srv/cloud/one/var/58/images/isofiles".
>>> Tue Mar 29 17:55:04 2011 [LCM][I]: New VM state is BOOT
>>> *Tue Mar 29 17:55:04 2011 [VMM][I]: Generating deployment file:
>>> /srv/cloud/one/var/58/deployment.0
>>> Tue Mar 29 17:55:35 2011 [LCM][I]: New VM state is RUNNING
>>> Tue Mar 29 18:05:45 2011 [VMM][I]: VM running but it was not found.
>>> Restart
>>> and delete actions available or try to recove                     r it
>>> manually
>>> Tue Mar 29 18:05:45 2011 [LCM][I]: New VM state is UNKNOWN
>>> Tue Mar 29 18:15:45 2011 [VMM][I]: VM running but it was not found.
>>> Restart
>>> and delete actions available or try to recove                     r it
>>> manually
>>> Tue Mar 29 18:15:45 2011 [LCM][I]: New VM state is UNKNOWN
>>> Tue Mar 29 18:25:45 2011 [VMM][I]: VM running but it was not found.
>>> Restart
>>> and delete actions available or try to recove                     r it
>>> manually
>>> **
>>> 2. *Around the same time i can't see anything significant in oned.log .
>>>
>>> Tue Mar 29 18:05:30 2011 [InM][I]: Monitoring host server123(0)
>>> Tue Mar 29 18:05:31 2011 [ReM][D]: HostPoolInfo method invoked
>>> Tue Mar 29 18:05:31 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
>>> Tue Mar 29 18:05:33 2011 [InM][D]: Host 0 successfully monitored.
>>> Tue Mar 29 18:05:34 2011 [ReM][D]: HostPoolInfo method invoked
>>> Tue Mar 29 18:05:34 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
>>> Tue Mar 29 18:07:10 2011 [ReM][D]: HostPoolInfo method invoked
>>> Tue Mar 29 18:07:10 2

Re: [one-users] Sunstone donot deploy machine

2011-04-11 Thread Héctor Sanjuán
Hi,

It is not very clear to me what might be happening.

Which version of OpenNebula are you using?

Which browser?

Does the "new" VM button pop up a VM creation form at all or does the
problem happen after you submit this form?

On the second case, Are you using any of the wizards of the form or the
"advanced" mode using an ONE template?

(Note that "deployment" and "creation" are different things. The "new"
buttons helps you create a VM. This VM is later "deployed" in a host).
And all VMs should appear in the list, whatever their status is.

Regards,

Hector



El 11/04/11 18:53, Ruben Diez escribió:
> Hi:
> 
> We are attempt to deploy a virtual machine by using the "new" button
> from the machine view, but nothing happens
> 
> No error appears in the sunstone.log file. The new machine don't appear
> in machine view, and not listed in the fail machine list...
> 
> Any idea??
> 
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> 


-- 
Héctor Sanjuan
OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Java OCA: poor choiche of Exception class

2011-04-11 Thread Gian Uberto Lauri
> "CMS" == Carlos Martín Sánchez  writes:

CMS> Hi Gian Uberto, Thank you for your feedback. As you may know, we
CMS> use mainly our Ruby bindings for external tools and extensions,
CMS> so these comments about the Java API are very welcome.  Please
CMS> feel free to open a ticket in our development portal [1], along
CMS> with any other comments, suggestions or patches.

Ticket #572  has been created.  There are two  version of the  Error I
add. The  firs one uses  java.lang.Error that is more  appropriate but
breaks the  legacy code. A  second version  does not change  the class
name (is  an Error after  all) but extends RuntimeException  since you
should  not write  a  catch  code for  it,  you  should provide  valid
resources for the program to run correctly.

--
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


[one-users] Authentication ldap and authdb issues

2011-04-11 Thread Madhurranjan Mohaan
Hi All,

I am trying to use the ldap add on to integrate the setup with ldap but then
came back to the basic simple setup and wanted to get the ssh setup running
according to the documentation.

The documentation says:

1. Default configuration will use sqlite database located at
$ONE_LOCATION/var/auth.db  But i can't find any auth.db that is present in
this location.

2. I created a dummy user and when I run "oneauth key" there after I create
that user in the system to pass the ssh key , I get the following error :

*/srv/cloud/one/bin/oneauth:37:in `require': no such file to load -- sequel
(LoadError)
from /srv/cloud/one/bin/oneauth:37
*
which seems to be an issue with ruby package that i need to fix.

3.  If I eventually get Ldap to work with open nebula,  will the users be
able to login through the sunstone gui ?

Any help is much appreciated.

thanks

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


[one-users] Sunstone donot deploy machine

2011-04-11 Thread Ruben Diez

Hi:

We are attempt to deploy a virtual machine by using the "new" button 
from the machine view, but nothing happens


No error appears in the sunstone.log file. The new machine don't appear 
in machine view, and not listed in the fail machine list...


Any idea??

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


Re: [one-users] root user creates checkpoint directory on cluster node instead of oneadmin

2011-04-11 Thread Carlos Martín Sánchez
Hi Pieter,

Thanks for sharing your solution. We've added a warning about changing the
VM_DIR in the Ubuntu Platform Notes [1].

Regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:notes

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org  | cmar...@opennebula.org


On 8 April 2011 11:39, Pieter Simoens  wrote:

>  Dear all
>
> sorry for spamming the list, but I want to report the solution for my
> issues as well, just to close this thread
>
> Apparently, I had misconfigured the
> /etc/apparmor.d/abstractions/libvirt-qemu...
> First, there was a typo in the line I had added.
>
> Second, I had configured a specific VM_DIR, and you have to add an
> additional exception to the apparmor.d file!
> In my case, this was VM_DIR=/work/onimages, and I had to add an additional
> line:
> ---> owner /srv/cloud/one/var/** rw,
> --> owner /work/onimages/** rw,
>
> Of course, restart the apparmor daemon again.
>
> I do not know whether this is a generic "issue", maybe it should be added
> to the documentation on the OpenNebula website? Now, there is only a warning
> for the /srv/cloud/one/var directory...
>
> Best regards,
> Pieter
>
>
>
> Op 8/04/2011 10:52, Pieter Simoens schreef:
>
> Dear all,
>
> following up on my e-mail below: according to
> http://dev.opennebula.org/issues/131, this should be solved in my version
> (I am running 2.0).
>
> It seems it has to do with the way you connect to the virsh socket
> (qemu:///system ?)
>
> So, I think the question is: where is the variable $LIBVIRT_URI specified?
> At least, that is the variable that is used in the /var/remotes/vmm/kvm/save
> script?
>
> Best regards,
> Pieter
>
> Op 8/04/2011 10:18, Pieter Simoens schreef:
>
> Dear all,
>
> when I issue a command "onevm stop VM_ID'', the Virtual Machine stays in
> the save state. On my front-end node, the log-files (both oned.log and
> vm.log) show no specific error.
>
> However, when I have a look at the virsh log-file on my cluster node
> (/var/log/libvirt/qemu/one-22.log), I see the error: "sh: cannot create
> /work/onimages/VM_ID/images/checkpoint: Permission denied".
>
> Strangely enough, the permissions of /work/onimages/VM_ID/images directory
> are set correctly (or so I think...): oneadmin is the owner, and cloud is
> the group. Also the uid and gid are identical to the oneadmin user on my
> frontend. But the images/checkpoint directory seems to be owned by the root
> user, belonging to the root group.
>
> Does anybody have an idea how this can be possible? Did I configure my
> cluster node in the wrong way?
>
> Thank you,
> Pieter
>
> Op 5/04/2011 14:49, Carlos Martín Sánchez schreef:
>
> Hi Pieter, please find my comments inline:
>
>
> On 5 April 2011 13:42, Pieter Simoens wrote:
>
>>  Dear all,
>>
>> I am running OpenNebula 2.0. I am able to successfully deploy a VM on a
>> cluster node. The image is (currently) transferred over SSH. The VM boots
>> successfully, and I am able to log-in.
>>
>> When I do "onevm shutdown VM_ID", the VM is correctly shut down. But it
>> does no longer appear in the output of "onevm list all".
>>
>>
> That's the normal behaviour, VMs in DONE state are not listed. However, you
> can still see the extended information using 'onevm show ', because they
> are stored in the DB for accounting purposes.
>
>
>>  However, as far as I can recall from my previous experiments, I thought
>> that the VM image would we transferred back, somewhere to VM_DIR/VM_ID
>> directory.
>>
>> Unfortunately, this is not happening. Does anybody has any idea what can
>> be the cause? Do I need to specify any additional parameters? The log-files
>> show me no specific problem (I checked the oned.log and the
>> /var/VM_ID/vm.log).
>>
>>
>
> Are you using the Image Repository [1]? If so, is the Image persistent?
> If you are defining the DISKs in the VM templates as in previous versions,
> make sure the attribute SAVE=YES is present.
>
>
>>
>> Thank you,
>>
>
> Regards,
> Carlos.
>
> [1] http://opennebula.org/documentation:rel2.2:img_guide
>
> --
> Carlos Martín, MSc
> Project Major Contributor
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org  | cmar...@opennebula.org
>
>   --
>> Pieter Simoens, Ph.D.
>> Department of Information Technology
>> Internet Based Communication Networks and Services (IBCN)
>> Ghent University - IBBT
>> Gaston Crommenlaan 8 (Bus 201), B-9050 Gent, Belgium
>> T: +32 9 33 14878 ; T Secr: +32 9 33 14900
>> F: +32 9 33 14899
>> W : www.ibcn.intec.UGent.be
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
> --
> Pieter Simoens, Ph.D.
> Department of Information Technology
> Internet Based Communication Networks and Services (IBCN)
> Ghent University - IBBT
> Gaston Crommenlaan 8 (Bus 201), B

Re: [one-users] Problem with ebtables OpenNebula

2011-04-11 Thread marwen marwen
Dear Tino,

Thanks for your help. The problem is solved when I comment out this line in
the sudoers file.
*Defaults requiretty*
*
*

Best Regards
Marwen

2011/4/11 Tino Vazquez 

> Dear marwen,
>
> You have to disable the "requiretty" variable in the sudoers file.
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco | dsa-research.org/tinova
> Virtualization Technology Engineer / Researcher
> OpenNebula Toolkit | opennebula.org
>
>
>
> On Mon, Apr 11, 2011 at 4:19 PM, marwen marwen 
> wrote:
> > Dear Tino,
> > Thank you for your reply.
> > I haven't this error in the log file but when I stop a VM I have this
> error:
> >
> ##
> > Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 Command
> > execution fail: '/data1/opennebula/share/hooks/ebtables-flush ""'
> > Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 STDERR
> > follows.
> > Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 sudo:
> sorry,
> > you must have a tty to run sudo
> > Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152
> > /srv/cloud/share/hooks/ebtables-flush:37:in `get_rules': undefined method
> > `collect' for nil:NilClass (NoMethodError)
> > Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152
> > from /srv/cloud/share/hooks/ebtables-flush:35:in `each'
> > Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152
> > from /srv/cloud/share/hooks/ebtables-flush:35:in `get_rules'
> > Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152
> > from /srv/cloud/share/hooks/ebtables-flush:58
> > Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 ExitCode:
> 1
> > Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: EXECUTE FAILURE 152
> > ebtables-flush
> >
> ##
> > Best Regards
> > Marwen
> >
> > 2011/4/11 Tino Vazquez 
> >>
> >> Dear Leong, Marwen,
> >>
> >> If you are experiencing the following in the logs
> >>
> >> Fri Apr  8 11:59:05 2011 [MAD][E]: MAD did not answer INIT command
> >>
> >> it may be due to a missing dependency, we can walk you on finding out
> >> which one.
> >>
> >> Otherwise, please say so and we will look at other possible causes.
> >>
> >> Regards,
> >>
> >> -Tino
> >>
> >> --
> >> Constantino Vázquez Blanco | dsa-research.org/tinova
> >> Virtualization Technology Engineer / Researcher
> >> OpenNebula Toolkit | opennebula.org
> >>
> >>
> >>
> >> On Mon, Apr 11, 2011 at 9:13 AM, Leong Marco  >
> >> wrote:
> >> > Hi,
> >> > I have the same problem as Marwen. With this log message.
> >> > Mon Apr 11 14:50:26 2011 [TM][I]: tm_context.sh: Executed "rm -rf
> >> > /var/lib/one/2603e38607a144aef3bef07283d77095".
> >> > Mon Apr 11 14:50:26 2011 [LCM][I]: New VM state is BOOT
> >> > Mon Apr 11 14:50:26 2011 [VMM][I]: Generating deployment file:
> >> > /var/lib/one/165/deployment.1
> >> > Mon Apr 11 14:50:28 2011 [LCM][I]: New VM state is RUNNING
> >> > Mon Apr 11 14:50:28 2011 [HKM][I]: Hook ebtables-start successfully
> >> > executed.
> >> > However, if I do a list to ebtables, it is empty.
> >> > [oneadmin@geek root]$ sudo ebtables --list
> >> > Bridge table: filter
> >> > Bridge chain: INPUT, entries: 0, policy: ACCEPT
> >> > Bridge chain: FORWARD, entries: 0, policy: ACCEPT
> >> > Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
> >> > When I run some ebtables command like this one, it works
> >> > sudo ebtables -A FORWARD -p IPv4 -j ACCEPT
> >> > this does add the rules to the table.
> >> > What can I provide to help you to debug this problem?
> >> >
> >> > Leong Marco
> >> > leong.chou@usj.edu.mo
> >> >
> >> >
> >> > On Apr 7, 2011, at 9:46 PM, marwen marwen wrote:
> >> >
> >> > Hi Zaina
> >> > Yes I added oneadmin in the sudoers file of the physical host where
> the
> >> > VM
> >> > is allocated.
> >> > And when I create the VM I specify the host where the VM will be
> >> > allocated.
> >> > But the problem is not resolved.
> >> > Do you think that we must add this command in sudoers file of all
> >> > cluster
> >> > nodes.
> >> > oneadminALL=(ALL) NOPASSWD: /sbin/ebtables *
> >> > Best regards
> >> > Marwen
> >> >
> >> >> From: Zaina AFOULKI 
> >> >> To: users@lists.opennebula.org
> >> >> Subject: Re: [one-users] Problem with ebtables OpenNebula
> >> >> Message-ID: <4d9cb10c.6080...@ensi-bourges.fr>
> >> >> Content-Type: text/plain; charset=ISO-8859-1
> >> >>
> >> >> Hi Marwen,
> >> >>
> >> >> Did you make sure that oneadmin is added in the /etc/sudoers file
> with
> >> >> oneadminALL=(ALL) NOPASSWD: /sbin/ebtables * ?
> >> >>
> >> >> http://opennebula.org/documentation:archives:rel2.0:nm
> >> >>
> >> >> --
> >> >> Zaina
> >> >>
> >> >>
> >> >> On 04/06/2011 06:40 PM, marwen marwen wrote:
> >> >> > Hi,
> >> >> >
> >> >> > I'm using ebtables to isolate virtual network in OpenNebula.
> >> >> > I have a problem when OpenNebul

Re: [one-users] Problem with ebtables OpenNebula

2011-04-11 Thread Tino Vazquez
Ok, please try

$ ruby -dw $ONE_LOCATION/lib/mads/one_auth_mad.rb

and send the output

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Mon, Apr 11, 2011 at 4:59 PM, Leong Marco  wrote:
> Hi,
> It return the shell.
> Best regards.
> Leong Marco
> leong.chou@usj.edu.mo
>
>
> On Apr 11, 2011, at 10:54 PM, Tino Vazquez wrote:
>
> Hi,
>
> What happens, does it return the shell, or does it wait for input?
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
>
>
>
> On Mon, Apr 11, 2011 at 4:49 PM, Leong Marco 
> wrote:
>
> Hi Tino,
>
> Thank you for your reply.
>
> This command doesn't produce any output.
>
> Leong Marco
>
> leong.chou@usj.edu.mo
>
>
> On Apr 11, 2011, at 10:20 PM, Tino Vazquez wrote:
>
> Dear Leong,
>
> Please try the following as oneadmin, and send the output:
>
> # $ONE_LOCATION/lib/mads/one_auth_mad
>
> Regards,
>
> .Tino
>
>
> --
>
> Constantino Vázquez Blanco, MSc
>
> OpenNebula Major Contributor
>
> www.OpenNebula.org | @tinova79
>
>
>
> On Mon, Apr 11, 2011 at 3:49 PM, Leong Marco 
>
> wrote:
>
> Dear Tino,
>
> Yes, I did have this error in the log.
>
> Mon Apr 11 15:13:09 2011 [MAD][E]: MAD did not answer INIT command
>
> What is the problem happen here? Thank you for your help !
>
> Leong Marco
>
> leong.chou@usj.edu.mo
>
>
> On Apr 11, 2011, at 8:55 PM, Tino Vazquez wrote:
>
> Dear Leong, Marwen,
>
> If you are experiencing the following in the logs
>
> Fri Apr  8 11:59:05 2011 [MAD][E]: MAD did not answer INIT command
>
> it may be due to a missing dependency, we can walk you on finding out which
>
> one.
>
> Otherwise, please say so and we will look at other possible causes.
>
> Regards,
>
> -Tino
>
> --
>
> Constantino Vázquez Blanco | dsa-research.org/tinova
>
> Virtualization Technology Engineer / Researcher
>
> OpenNebula Toolkit | opennebula.org
>
>
>
> On Mon, Apr 11, 2011 at 9:13 AM, Leong Marco 
>
> wrote:
>
> Hi,
>
> I have the same problem as Marwen. With this log message.
>
> Mon Apr 11 14:50:26 2011 [TM][I]: tm_context.sh: Executed "rm -rf
>
> /var/lib/one/2603e38607a144aef3bef07283d77095".
>
> Mon Apr 11 14:50:26 2011 [LCM][I]: New VM state is BOOT
>
> Mon Apr 11 14:50:26 2011 [VMM][I]: Generating deployment file:
>
> /var/lib/one/165/deployment.1
>
> Mon Apr 11 14:50:28 2011 [LCM][I]: New VM state is RUNNING
>
> Mon Apr 11 14:50:28 2011 [HKM][I]: Hook ebtables-start successfully
>
> executed.
>
> However, if I do a list to ebtables, it is empty.
>
> [oneadmin@geek root]$ sudo ebtables --list
>
> Bridge table: filter
>
> Bridge chain: INPUT, entries: 0, policy: ACCEPT
>
> Bridge chain: FORWARD, entries: 0, policy: ACCEPT
>
> Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
>
> When I run some ebtables command like this one, it works
>
> sudo ebtables -A FORWARD -p IPv4 -j ACCEPT
>
> this does add the rules to the table.
>
> What can I provide to help you to debug this problem?
>
> Leong Marco
>
> leong.chou@usj.edu.mo
>
>
> On Apr 7, 2011, at 9:46 PM, marwen marwen wrote:
>
> Hi Zaina
>
> Yes I added oneadmin in the sudoers file of the physical host where the VM
>
> is allocated.
>
> And when I create the VM I specify the host where the VM will be allocated.
>
> But the problem is not resolved.
>
> Do you think that we must add this command in sudoers file of all cluster
>
> nodes.
>
> oneadmin    ALL=(ALL) NOPASSWD: /sbin/ebtables *
>
> Best regards
>
> Marwen
>
> From: Zaina AFOULKI 
>
> To: users@lists.opennebula.org
>
> Subject: Re: [one-users] Problem with ebtables OpenNebula
>
> Message-ID: <4d9cb10c.6080...@ensi-bourges.fr>
>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Marwen,
>
> Did you make sure that oneadmin is added in the /etc/sudoers file with
>
> oneadmin    ALL=(ALL) NOPASSWD: /sbin/ebtables * ?
>
> http://opennebula.org/documentation:archives:rel2.0:nm
>
> --
>
> Zaina
>
>
> On 04/06/2011 06:40 PM, marwen marwen wrote:
>
> Hi,
>
> I'm using ebtables to isolate virtual network in OpenNebula.
>
> I have a problem when OpenNebula execute ebtables-kvm script.
>
> In fact, the log file mention no error "Wed Apr  6 18:22:02 2011
>
> [HKM][D]:
>
> Message received: EXECUTE SUCCESS 146 ebtables-start".
>
> But there are no rule added to the list rules of ebtables in the
>
> physical
>
> host where the VM is allocated.
>
> ###
>
> sudo ebtables -L
>
> Bridge table: filter
>
> Bridge chain: INPUT, entries: 0, policy: ACCEPT
>
> Bridge chain: FORWARD, entries: 0, policy: ACCEPT
>
> Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
>
> ###
>
> And when I execute manually the script on the worker node, the rules are
>
> added.
>
> In the oned.conf we put this configuration
>
> ###
>
> VM_HOOK = [
>
>     name      = "ebtables-start",
>
>     on        = "running",
>
> 

Re: [one-users] Host hooks aren't triggered

2011-04-11 Thread Tino Vazquez
Hi,

So it seems like the retrieved collection of VMs is null, and that is
why no VM is scheduled. What is the output of "onevm list"? Running as
oneadmin.

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Tue, Apr 5, 2011 at 8:19 AM, Zaina AFOULKI
 wrote:
> Hi Tino,
>
> Yes, I'm attaching the ruby file...
>
> Thanks,
>
> Zaina
>
> On Mon, 4 Apr 2011 15:06:02 +0200, Tino Vazquez wrote:
>>
>> Hi Zaina,
>>
>> Is that after the "vms.info" line?
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco | dsa-research.org/tinova
>> Virtualization Technology Engineer / Researcher
>> OpenNebula Toolkit | opennebula.org
>>
>>
>>
>> On Sat, Apr 2, 2011 at 12:22 PM, Zaina AFOULKI
>>  wrote:
>>>
>>> Hi Tino,
>>>
>>> I changed as you advised and it prints:
>>> 
>>>
>>>
>>> On Fri, 1 Apr 2011 18:06:57 +0200, Tino Vazquez wrote:

 Hi,

 Everything seems alright, except for the xpath expression returned nil
 object. So please let's try debugging the vms fetched:

 ---
 class OpenNebula::VirtualMachinePool
  attr_reader :xml
 end

 my_file.puts vms.xml
 ---

 Regards,

 -Tino

 --
 Constantino Vázquez Blanco | dsa-research.org/tinova
 Virtualization Technology Engineer / Researcher
 OpenNebula Toolkit | opennebula.org



 On Fri, Apr 1, 2011 at 5:47 PM, Zaina AFOULKI
  wrote:
>
> Hi Tino,
>
> I added the lines as you asked and I get this in the /tmp/remove_me.txt
> OpenNebula host  NilClass
> NilClass
>
> $ onehost list -x
> 
>  
>    29
>    node1
>    2
>    im_kvm
>    vmm_kvm
>    tm_nfs
>    1301672703
>    default
>    
>      
>      
>      
>      
>      
>      
>      
>      
>      
>      
>      
>      
>      
>    
>    
>      29
>      0
>      262144
>      10
>      0
>      2056676
>      200
>      0
>      770956
>      90
>      0
>      1285720
>      109
>      1
>    
>  
>  
>    31
>    node2
>    4
>    im_kvm
>    vmm_kvm
>    tm_nfs
>    1301672409
>    default
>    
>      
>      
>      
>      
>      
>      
>      
>      
>      
>      
>      
>      
>      
>    
>    
>      31
>      0
>      0
>      0
>      0
>      2056676
>      200
>      0
>      1800824
>      200
>      0
>      255852
>      0
>      0
>    
>  
> 
>
>
>
> $ onevm list -x
>
>
> 
>  
>    3056
>    2
>    sfr
>    sfr-ar
>    1301672685
>    3
>    3
>    1301672613
>    0
>    one-3056
>    0
>    0
>    0
>    0
>    0
>    
>      
>      
>        
>        
>        
>      
>      
>        
>      
>      
>        
>        
>        
>      
>      
>      
>      
>        
>        
>        
>        
>        
>      
>      
>        
>        
>      
>      
>        
>        
>      
>      
>    
>    
>      0
>      node1
>      29
>      1301672663
>      0
>      1301672663
>      1301672665
>      1301672665
>      0
>      0
>      0
>      0
>    
>  
>  
>    3057
>    2
>    sfr
>    sfr-ar
>    1301672685
>    3
>    3
>    1301672614
>    0
>    one-3057
>    0
>    0
>    0
>    0
>    0
>    
>      
>      
>        
>        
>        
>      
>      
>        
>      
>      
>        
>        
>        
>      
>      
>      
>      
>        
>        
>        
>        
>        
>      
>      
>        
>        
>      
>      
>        
>        
>      
>      
>    
>    
>      0
>      node2
>      31
>      1301672664
>      0
>      1301672664
>      1301672684
>      1301672684
>      0
>      0
>      0
>      0
>    
>  
> 
>
>
>
> On Fri, 1 Apr 2011 17:31:44 +0200, Tino Vazquez wrote:
>>
>> Hi,
>>
>> Please try the following:
>>
>> my_file.puts "OpenNebula host  #{vm_ids_array.class}"
>> my_file.puts vm_ids_array.class
>>
>> Also, please send the output of
>>
>> $ onehost list -x
>> $ onevm list -x
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco | dsa-r

Re: [one-users] Problem with ebtables OpenNebula

2011-04-11 Thread Leong Marco
Hi,

It return the shell.

Best regards.

Leong Marco
leong.chou@usj.edu.mo



On Apr 11, 2011, at 10:54 PM, Tino Vazquez wrote:

> Hi,
> 
> What happens, does it return the shell, or does it wait for input?
> 
> Regards,
> 
> -Tino
> 
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
> 
> 
> 
> On Mon, Apr 11, 2011 at 4:49 PM, Leong Marco  
> wrote:
>> Hi Tino,
>> Thank you for your reply.
>> This command doesn't produce any output.
>> Leong Marco
>> leong.chou@usj.edu.mo
>> 
>> 
>> On Apr 11, 2011, at 10:20 PM, Tino Vazquez wrote:
>> 
>> Dear Leong,
>> 
>> Please try the following as oneadmin, and send the output:
>> 
>> # $ONE_LOCATION/lib/mads/one_auth_mad
>> 
>> Regards,
>> 
>> .Tino
>> 
>> 
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>> 
>> 
>> 
>> On Mon, Apr 11, 2011 at 3:49 PM, Leong Marco 
>> wrote:
>> 
>> Dear Tino,
>> 
>> Yes, I did have this error in the log.
>> 
>> Mon Apr 11 15:13:09 2011 [MAD][E]: MAD did not answer INIT command
>> 
>> What is the problem happen here? Thank you for your help !
>> 
>> Leong Marco
>> 
>> leong.chou@usj.edu.mo
>> 
>> 
>> On Apr 11, 2011, at 8:55 PM, Tino Vazquez wrote:
>> 
>> Dear Leong, Marwen,
>> 
>> If you are experiencing the following in the logs
>> 
>> Fri Apr  8 11:59:05 2011 [MAD][E]: MAD did not answer INIT command
>> 
>> it may be due to a missing dependency, we can walk you on finding out which
>> 
>> one.
>> 
>> Otherwise, please say so and we will look at other possible causes.
>> 
>> Regards,
>> 
>> -Tino
>> 
>> --
>> 
>> Constantino Vázquez Blanco | dsa-research.org/tinova
>> 
>> Virtualization Technology Engineer / Researcher
>> 
>> OpenNebula Toolkit | opennebula.org
>> 
>> 
>> 
>> On Mon, Apr 11, 2011 at 9:13 AM, Leong Marco 
>> 
>> wrote:
>> 
>> Hi,
>> 
>> I have the same problem as Marwen. With this log message.
>> 
>> Mon Apr 11 14:50:26 2011 [TM][I]: tm_context.sh: Executed "rm -rf
>> 
>> /var/lib/one/2603e38607a144aef3bef07283d77095".
>> 
>> Mon Apr 11 14:50:26 2011 [LCM][I]: New VM state is BOOT
>> 
>> Mon Apr 11 14:50:26 2011 [VMM][I]: Generating deployment file:
>> 
>> /var/lib/one/165/deployment.1
>> 
>> Mon Apr 11 14:50:28 2011 [LCM][I]: New VM state is RUNNING
>> 
>> Mon Apr 11 14:50:28 2011 [HKM][I]: Hook ebtables-start successfully
>> 
>> executed.
>> 
>> However, if I do a list to ebtables, it is empty.
>> 
>> [oneadmin@geek root]$ sudo ebtables --list
>> 
>> Bridge table: filter
>> 
>> Bridge chain: INPUT, entries: 0, policy: ACCEPT
>> 
>> Bridge chain: FORWARD, entries: 0, policy: ACCEPT
>> 
>> Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
>> 
>> When I run some ebtables command like this one, it works
>> 
>> sudo ebtables -A FORWARD -p IPv4 -j ACCEPT
>> 
>> this does add the rules to the table.
>> 
>> What can I provide to help you to debug this problem?
>> 
>> Leong Marco
>> 
>> leong.chou@usj.edu.mo
>> 
>> 
>> On Apr 7, 2011, at 9:46 PM, marwen marwen wrote:
>> 
>> Hi Zaina
>> 
>> Yes I added oneadmin in the sudoers file of the physical host where the VM
>> 
>> is allocated.
>> 
>> And when I create the VM I specify the host where the VM will be allocated.
>> 
>> But the problem is not resolved.
>> 
>> Do you think that we must add this command in sudoers file of all cluster
>> 
>> nodes.
>> 
>> oneadminALL=(ALL) NOPASSWD: /sbin/ebtables *
>> 
>> Best regards
>> 
>> Marwen
>> 
>> From: Zaina AFOULKI 
>> 
>> To: users@lists.opennebula.org
>> 
>> Subject: Re: [one-users] Problem with ebtables OpenNebula
>> 
>> Message-ID: <4d9cb10c.6080...@ensi-bourges.fr>
>> 
>> Content-Type: text/plain; charset=ISO-8859-1
>> 
>> Hi Marwen,
>> 
>> Did you make sure that oneadmin is added in the /etc/sudoers file with
>> 
>> oneadminALL=(ALL) NOPASSWD: /sbin/ebtables * ?
>> 
>> http://opennebula.org/documentation:archives:rel2.0:nm
>> 
>> --
>> 
>> Zaina
>> 
>> 
>> On 04/06/2011 06:40 PM, marwen marwen wrote:
>> 
>> Hi,
>> 
>> I'm using ebtables to isolate virtual network in OpenNebula.
>> 
>> I have a problem when OpenNebula execute ebtables-kvm script.
>> 
>> In fact, the log file mention no error "Wed Apr  6 18:22:02 2011
>> 
>> [HKM][D]:
>> 
>> Message received: EXECUTE SUCCESS 146 ebtables-start".
>> 
>> But there are no rule added to the list rules of ebtables in the
>> 
>> physical
>> 
>> host where the VM is allocated.
>> 
>> ###
>> 
>> sudo ebtables -L
>> 
>> Bridge table: filter
>> 
>> Bridge chain: INPUT, entries: 0, policy: ACCEPT
>> 
>> Bridge chain: FORWARD, entries: 0, policy: ACCEPT
>> 
>> Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
>> 
>> ###
>> 
>> And when I execute manually the script on the worker node, the rules are
>> 
>> added.
>> 
>> In the oned.conf we put this configuration
>> 
>> ###
>> 
>> VM_HOOK = [
>> 
>> name  = "ebtables-start

Re: [one-users] Problem with ebtables OpenNebula

2011-04-11 Thread Tino Vazquez
Hi,

What happens, does it return the shell, or does it wait for input?

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Mon, Apr 11, 2011 at 4:49 PM, Leong Marco  wrote:
> Hi Tino,
> Thank you for your reply.
> This command doesn't produce any output.
> Leong Marco
> leong.chou@usj.edu.mo
>
>
> On Apr 11, 2011, at 10:20 PM, Tino Vazquez wrote:
>
> Dear Leong,
>
> Please try the following as oneadmin, and send the output:
>
> # $ONE_LOCATION/lib/mads/one_auth_mad
>
> Regards,
>
> .Tino
>
>
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
>
>
>
> On Mon, Apr 11, 2011 at 3:49 PM, Leong Marco 
> wrote:
>
> Dear Tino,
>
> Yes, I did have this error in the log.
>
> Mon Apr 11 15:13:09 2011 [MAD][E]: MAD did not answer INIT command
>
> What is the problem happen here? Thank you for your help !
>
> Leong Marco
>
> leong.chou@usj.edu.mo
>
>
> On Apr 11, 2011, at 8:55 PM, Tino Vazquez wrote:
>
> Dear Leong, Marwen,
>
> If you are experiencing the following in the logs
>
> Fri Apr  8 11:59:05 2011 [MAD][E]: MAD did not answer INIT command
>
> it may be due to a missing dependency, we can walk you on finding out which
>
> one.
>
> Otherwise, please say so and we will look at other possible causes.
>
> Regards,
>
> -Tino
>
> --
>
> Constantino Vázquez Blanco | dsa-research.org/tinova
>
> Virtualization Technology Engineer / Researcher
>
> OpenNebula Toolkit | opennebula.org
>
>
>
> On Mon, Apr 11, 2011 at 9:13 AM, Leong Marco 
>
> wrote:
>
> Hi,
>
> I have the same problem as Marwen. With this log message.
>
> Mon Apr 11 14:50:26 2011 [TM][I]: tm_context.sh: Executed "rm -rf
>
> /var/lib/one/2603e38607a144aef3bef07283d77095".
>
> Mon Apr 11 14:50:26 2011 [LCM][I]: New VM state is BOOT
>
> Mon Apr 11 14:50:26 2011 [VMM][I]: Generating deployment file:
>
> /var/lib/one/165/deployment.1
>
> Mon Apr 11 14:50:28 2011 [LCM][I]: New VM state is RUNNING
>
> Mon Apr 11 14:50:28 2011 [HKM][I]: Hook ebtables-start successfully
>
> executed.
>
> However, if I do a list to ebtables, it is empty.
>
> [oneadmin@geek root]$ sudo ebtables --list
>
> Bridge table: filter
>
> Bridge chain: INPUT, entries: 0, policy: ACCEPT
>
> Bridge chain: FORWARD, entries: 0, policy: ACCEPT
>
> Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
>
> When I run some ebtables command like this one, it works
>
> sudo ebtables -A FORWARD -p IPv4 -j ACCEPT
>
> this does add the rules to the table.
>
> What can I provide to help you to debug this problem?
>
> Leong Marco
>
> leong.chou@usj.edu.mo
>
>
> On Apr 7, 2011, at 9:46 PM, marwen marwen wrote:
>
> Hi Zaina
>
> Yes I added oneadmin in the sudoers file of the physical host where the VM
>
> is allocated.
>
> And when I create the VM I specify the host where the VM will be allocated.
>
> But the problem is not resolved.
>
> Do you think that we must add this command in sudoers file of all cluster
>
> nodes.
>
> oneadmin    ALL=(ALL) NOPASSWD: /sbin/ebtables *
>
> Best regards
>
> Marwen
>
> From: Zaina AFOULKI 
>
> To: users@lists.opennebula.org
>
> Subject: Re: [one-users] Problem with ebtables OpenNebula
>
> Message-ID: <4d9cb10c.6080...@ensi-bourges.fr>
>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Marwen,
>
> Did you make sure that oneadmin is added in the /etc/sudoers file with
>
> oneadmin    ALL=(ALL) NOPASSWD: /sbin/ebtables * ?
>
> http://opennebula.org/documentation:archives:rel2.0:nm
>
> --
>
> Zaina
>
>
> On 04/06/2011 06:40 PM, marwen marwen wrote:
>
> Hi,
>
> I'm using ebtables to isolate virtual network in OpenNebula.
>
> I have a problem when OpenNebula execute ebtables-kvm script.
>
> In fact, the log file mention no error "Wed Apr  6 18:22:02 2011
>
> [HKM][D]:
>
> Message received: EXECUTE SUCCESS 146 ebtables-start".
>
> But there are no rule added to the list rules of ebtables in the
>
> physical
>
> host where the VM is allocated.
>
> ###
>
> sudo ebtables -L
>
> Bridge table: filter
>
> Bridge chain: INPUT, entries: 0, policy: ACCEPT
>
> Bridge chain: FORWARD, entries: 0, policy: ACCEPT
>
> Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
>
> ###
>
> And when I execute manually the script on the worker node, the rules are
>
> added.
>
> In the oned.conf we put this configuration
>
> ###
>
> VM_HOOK = [
>
>     name      = "ebtables-start",
>
>     on        = "running",
>
>     command   = "ebtables-kvm", # or ebtables-xen
>
>     arguments = "one-$VMID",
>
>     remote    = "yes" ]
>
> VM_HOOK = [
>
>     name      = "ebtables-flush",
>
>     on        = "done",
>
>     command   = "ebtables-flush",
>
>     arguments = "",
>
>     remote    = "yes" ]
>
> ###
>
> can you help me to fix this problem
>
> Best Regards
>
> Marwen
>
>
>
>
> _

Re: [one-users] Problem with ebtables OpenNebula

2011-04-11 Thread Leong Marco
Hi Tino,

Thank you for your reply.

This command doesn't produce any output.

Leong Marco
leong.chou@usj.edu.mo



On Apr 11, 2011, at 10:20 PM, Tino Vazquez wrote:

> Dear Leong,
> 
> Please try the following as oneadmin, and send the output:
> 
> # $ONE_LOCATION/lib/mads/one_auth_mad
> 
> Regards,
> 
> .Tino
> 
> 
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
> 
> 
> 
> On Mon, Apr 11, 2011 at 3:49 PM, Leong Marco  
> wrote:
>> Dear Tino,
>> Yes, I did have this error in the log.
>> Mon Apr 11 15:13:09 2011 [MAD][E]: MAD did not answer INIT command
>> What is the problem happen here? Thank you for your help !
>> Leong Marco
>> leong.chou@usj.edu.mo
>> 
>> 
>> On Apr 11, 2011, at 8:55 PM, Tino Vazquez wrote:
>> 
>> Dear Leong, Marwen,
>> 
>> If you are experiencing the following in the logs
>> 
>> Fri Apr  8 11:59:05 2011 [MAD][E]: MAD did not answer INIT command
>> 
>> it may be due to a missing dependency, we can walk you on finding out which
>> one.
>> 
>> Otherwise, please say so and we will look at other possible causes.
>> 
>> Regards,
>> 
>> -Tino
>> 
>> --
>> Constantino Vázquez Blanco | dsa-research.org/tinova
>> Virtualization Technology Engineer / Researcher
>> OpenNebula Toolkit | opennebula.org
>> 
>> 
>> 
>> On Mon, Apr 11, 2011 at 9:13 AM, Leong Marco 
>> wrote:
>> 
>> Hi,
>> 
>> I have the same problem as Marwen. With this log message.
>> 
>> Mon Apr 11 14:50:26 2011 [TM][I]: tm_context.sh: Executed "rm -rf
>> 
>> /var/lib/one/2603e38607a144aef3bef07283d77095".
>> 
>> Mon Apr 11 14:50:26 2011 [LCM][I]: New VM state is BOOT
>> 
>> Mon Apr 11 14:50:26 2011 [VMM][I]: Generating deployment file:
>> 
>> /var/lib/one/165/deployment.1
>> 
>> Mon Apr 11 14:50:28 2011 [LCM][I]: New VM state is RUNNING
>> 
>> Mon Apr 11 14:50:28 2011 [HKM][I]: Hook ebtables-start successfully
>> 
>> executed.
>> 
>> However, if I do a list to ebtables, it is empty.
>> 
>> [oneadmin@geek root]$ sudo ebtables --list
>> 
>> Bridge table: filter
>> 
>> Bridge chain: INPUT, entries: 0, policy: ACCEPT
>> 
>> Bridge chain: FORWARD, entries: 0, policy: ACCEPT
>> 
>> Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
>> 
>> When I run some ebtables command like this one, it works
>> 
>> sudo ebtables -A FORWARD -p IPv4 -j ACCEPT
>> 
>> this does add the rules to the table.
>> 
>> What can I provide to help you to debug this problem?
>> 
>> Leong Marco
>> 
>> leong.chou@usj.edu.mo
>> 
>> 
>> On Apr 7, 2011, at 9:46 PM, marwen marwen wrote:
>> 
>> Hi Zaina
>> 
>> Yes I added oneadmin in the sudoers file of the physical host where the VM
>> 
>> is allocated.
>> 
>> And when I create the VM I specify the host where the VM will be allocated.
>> 
>> But the problem is not resolved.
>> 
>> Do you think that we must add this command in sudoers file of all cluster
>> 
>> nodes.
>> 
>> oneadminALL=(ALL) NOPASSWD: /sbin/ebtables *
>> 
>> Best regards
>> 
>> Marwen
>> 
>> From: Zaina AFOULKI 
>> 
>> To: users@lists.opennebula.org
>> 
>> Subject: Re: [one-users] Problem with ebtables OpenNebula
>> 
>> Message-ID: <4d9cb10c.6080...@ensi-bourges.fr>
>> 
>> Content-Type: text/plain; charset=ISO-8859-1
>> 
>> Hi Marwen,
>> 
>> Did you make sure that oneadmin is added in the /etc/sudoers file with
>> 
>> oneadminALL=(ALL) NOPASSWD: /sbin/ebtables * ?
>> 
>> http://opennebula.org/documentation:archives:rel2.0:nm
>> 
>> --
>> 
>> Zaina
>> 
>> 
>> On 04/06/2011 06:40 PM, marwen marwen wrote:
>> 
>> Hi,
>> 
>> I'm using ebtables to isolate virtual network in OpenNebula.
>> 
>> I have a problem when OpenNebula execute ebtables-kvm script.
>> 
>> In fact, the log file mention no error "Wed Apr  6 18:22:02 2011
>> 
>> [HKM][D]:
>> 
>> Message received: EXECUTE SUCCESS 146 ebtables-start".
>> 
>> But there are no rule added to the list rules of ebtables in the
>> 
>> physical
>> 
>> host where the VM is allocated.
>> 
>> ###
>> 
>> sudo ebtables -L
>> 
>> Bridge table: filter
>> 
>> Bridge chain: INPUT, entries: 0, policy: ACCEPT
>> 
>> Bridge chain: FORWARD, entries: 0, policy: ACCEPT
>> 
>> Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
>> 
>> ###
>> 
>> And when I execute manually the script on the worker node, the rules are
>> 
>> added.
>> 
>> In the oned.conf we put this configuration
>> 
>> ###
>> 
>> VM_HOOK = [
>> 
>> name  = "ebtables-start",
>> 
>> on= "running",
>> 
>> command   = "ebtables-kvm", # or ebtables-xen
>> 
>> arguments = "one-$VMID",
>> 
>> remote= "yes" ]
>> 
>> VM_HOOK = [
>> 
>> name  = "ebtables-flush",
>> 
>> on= "done",
>> 
>> command   = "ebtables-flush",
>> 
>> arguments = "",
>> 
>> remote= "yes" ]
>> 
>> ###
>> 
>> can you help me to fix this problem
>> 
>> Best Regards
>> 
>> Marwen
>> 
>> 
>> 
>

Re: [one-users] Problem with ebtables OpenNebula

2011-04-11 Thread Tino Vazquez
Dear Leong,

Please try the following as oneadmin, and send the output:

# $ONE_LOCATION/lib/mads/one_auth_mad

Regards,

.Tino


--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Mon, Apr 11, 2011 at 3:49 PM, Leong Marco  wrote:
> Dear Tino,
> Yes, I did have this error in the log.
> Mon Apr 11 15:13:09 2011 [MAD][E]: MAD did not answer INIT command
> What is the problem happen here? Thank you for your help !
> Leong Marco
> leong.chou@usj.edu.mo
>
>
> On Apr 11, 2011, at 8:55 PM, Tino Vazquez wrote:
>
> Dear Leong, Marwen,
>
> If you are experiencing the following in the logs
>
> Fri Apr  8 11:59:05 2011 [MAD][E]: MAD did not answer INIT command
>
> it may be due to a missing dependency, we can walk you on finding out which
> one.
>
> Otherwise, please say so and we will look at other possible causes.
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco | dsa-research.org/tinova
> Virtualization Technology Engineer / Researcher
> OpenNebula Toolkit | opennebula.org
>
>
>
> On Mon, Apr 11, 2011 at 9:13 AM, Leong Marco 
> wrote:
>
> Hi,
>
> I have the same problem as Marwen. With this log message.
>
> Mon Apr 11 14:50:26 2011 [TM][I]: tm_context.sh: Executed "rm -rf
>
> /var/lib/one/2603e38607a144aef3bef07283d77095".
>
> Mon Apr 11 14:50:26 2011 [LCM][I]: New VM state is BOOT
>
> Mon Apr 11 14:50:26 2011 [VMM][I]: Generating deployment file:
>
> /var/lib/one/165/deployment.1
>
> Mon Apr 11 14:50:28 2011 [LCM][I]: New VM state is RUNNING
>
> Mon Apr 11 14:50:28 2011 [HKM][I]: Hook ebtables-start successfully
>
> executed.
>
> However, if I do a list to ebtables, it is empty.
>
> [oneadmin@geek root]$ sudo ebtables --list
>
> Bridge table: filter
>
> Bridge chain: INPUT, entries: 0, policy: ACCEPT
>
> Bridge chain: FORWARD, entries: 0, policy: ACCEPT
>
> Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
>
> When I run some ebtables command like this one, it works
>
> sudo ebtables -A FORWARD -p IPv4 -j ACCEPT
>
> this does add the rules to the table.
>
> What can I provide to help you to debug this problem?
>
> Leong Marco
>
> leong.chou@usj.edu.mo
>
>
> On Apr 7, 2011, at 9:46 PM, marwen marwen wrote:
>
> Hi Zaina
>
> Yes I added oneadmin in the sudoers file of the physical host where the VM
>
> is allocated.
>
> And when I create the VM I specify the host where the VM will be allocated.
>
> But the problem is not resolved.
>
> Do you think that we must add this command in sudoers file of all cluster
>
> nodes.
>
> oneadmin    ALL=(ALL) NOPASSWD: /sbin/ebtables *
>
> Best regards
>
> Marwen
>
> From: Zaina AFOULKI 
>
> To: users@lists.opennebula.org
>
> Subject: Re: [one-users] Problem with ebtables OpenNebula
>
> Message-ID: <4d9cb10c.6080...@ensi-bourges.fr>
>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Marwen,
>
> Did you make sure that oneadmin is added in the /etc/sudoers file with
>
> oneadmin    ALL=(ALL) NOPASSWD: /sbin/ebtables * ?
>
> http://opennebula.org/documentation:archives:rel2.0:nm
>
> --
>
> Zaina
>
>
> On 04/06/2011 06:40 PM, marwen marwen wrote:
>
> Hi,
>
> I'm using ebtables to isolate virtual network in OpenNebula.
>
> I have a problem when OpenNebula execute ebtables-kvm script.
>
> In fact, the log file mention no error "Wed Apr  6 18:22:02 2011
>
> [HKM][D]:
>
> Message received: EXECUTE SUCCESS 146 ebtables-start".
>
> But there are no rule added to the list rules of ebtables in the
>
> physical
>
> host where the VM is allocated.
>
> ###
>
> sudo ebtables -L
>
> Bridge table: filter
>
> Bridge chain: INPUT, entries: 0, policy: ACCEPT
>
> Bridge chain: FORWARD, entries: 0, policy: ACCEPT
>
> Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
>
> ###
>
> And when I execute manually the script on the worker node, the rules are
>
> added.
>
> In the oned.conf we put this configuration
>
> ###
>
> VM_HOOK = [
>
>     name      = "ebtables-start",
>
>     on        = "running",
>
>     command   = "ebtables-kvm", # or ebtables-xen
>
>     arguments = "one-$VMID",
>
>     remote    = "yes" ]
>
> VM_HOOK = [
>
>     name      = "ebtables-flush",
>
>     on        = "done",
>
>     command   = "ebtables-flush",
>
>     arguments = "",
>
>     remote    = "yes" ]
>
> ###
>
> can you help me to fix this problem
>
> Best Regards
>
> Marwen
>
>
>
>
> ___
>
> 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-openne

Re: [one-users] VM creation stuck in "pending" state

2011-04-11 Thread Upendra Sharma

Thanks Daniel ... it works ... 

> From: dmol...@opennebula.org
> Date: Mon, 11 Apr 2011 12:51:04 +0200
> Subject: Re: [one-users] VM creation stuck in "pending" state
> To: upend...@hotmail.com
> CC: users@lists.opennebula.org
> 
> Hi Upendra,
> 
> You should change the requirements section to:
> REQUIREMENTS = "HOSTNAME=\"obelix20.local\""
> 
> or change the local hostname of your host, the name retrieved from it
> ($ uname -n) is:
> > 
> 
> Regards.
> 
> On 8 April 2011 21:19, Upendra Sharma  wrote:
> > Hi Daniel,
> >
> > sorry for late response ...
> > here is the result
> >
> > 
> >   4
> >   obelix20
> >   2
> >   im_xen
> >   vmm_xen
> >   tm_ssh
> >   1302289702
> >   cluster1
> >   
> > 4
> > 0
> > 0
> > 0
> > 0
> > 4193280
> > 400
> > 0
> > 3091456
> > 399
> > 0
> > 1101824
> > 1
> > 0
> >   
> >   
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >   
> > 
> >
> >
> > thanks,
> > -upendra
> >
> >> From: dmol...@opennebula.org
> >> Date: Tue, 5 Apr 2011 11:44:42 +0200
> >> Subject: Re: [one-users] VM creation stuck in "pending" state
> >> To: upend...@hotmail.com
> >> CC: users@lists.opennebula.org
> >>
> >> Hi Upendra,
> >>
> >> Would you mind to send us the output of:
> >> onehost show 4 -x
> >>
> >> Regards
> >>
> >> On 4 April 2011 15:58, Daniel Molina  wrote:
> >> > Hi,
> >> >
> >> > Would you mind to try changing the Requirements statement to:
> >> > REQUIREMENTS = "HOSTNAME=obelix20"
> >> >
> >> > Regards
> >> >
> >> > On 2 April 2011 20:56, Upendra Sharma  wrote:
> >> >> Hi Tino,
> >> >>
> >> >> something similar is happening to me as well.
> >> >>
> >> >> the VM template looks is shown below.
> >> >>
> >> >>  vm template ==
> >> >> NAME   = TPCW-L
> >> >> CPU= 1
> >> >> MEMORY = 2000
> >> >> REQUIREMENTS = "HOSTNAME=\"obelix20\""
> >> >> RANK = FREECPU
> >> >> OS = [ bootloader=/usr/bin/pygrub ]
> >> >> DISK   = [
> >> >>   source   = "disk-vm1.img",
> >> >>   target   = "xvda",
> >> >>   readonly = "no" ]
> >> >> DISK   = [
> >> >>   source   = "disk-tpcw-db.img",
> >> >>   target   = "xvda5",
> >> >>   readonly = "no" ]
> >> >> NIC= [ NETWORK = "Public VLAN" ]
> >> >> RAW= [
> >> >>   type  = "xen",
> >> >>   data  = "vcpus=1"
> >> >> ]
> >> >> ==
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> The main problem is this: my vm-template has a specific REQUIREMENTS ..
> >> >> i.e.
> >> >> HOSTNAME. That particular host has a no VMs running on it and a 3 G of
> >> >> RAM
> >> >> free on it. The list of hosts on the cluster are:
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> $ onehost list
> >> >>   ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEM
> >> >> FMEM
> >> >> STAT
> >> >>4 obelix20  cluster1  0400  399 400
> >> >> 4G   2.9Gon
> >> >>
> >> >> the machine simply sits on the pending state.
> >> >>
> >> >> When I comment out the REQUIREMENTS line, it works fine and schedules
> >> >> it on
> >> >> one of the machines.
> >> >>
> >> >> I could not find a reason in any of the logs to find the reason.
> >> >>
> >> >>
> >> >>
> >> >> thanks,
> >> >> -upendra
> >> >>
> >> >>> From: tin...@opennebula.org
> >> >>> Date: Fri, 1 Apr 2011 15:01:42 +0100
> >> >>> To: zas...@pdc.kth.se
> >> >>> CC: users@lists.opennebula.org
> >> >>> Subject: Re: [one-users] VM creation stuck in "pending" state
> >> >>>
> >> >>> Hi,
> >> >>>
> >> >>> Any REQUIREMENT section in the VM templates?
> >> >>>
> >> >>> Regards,
> >> >>>
> >> >>> -Tino
> >> >>>
> >> >>> --
> >> >>> Constantino Vázquez Blanco, MSc
> >> >>> OpenNebula Major Contributor
> >> >>> www.OpenNebula.org | @tinova79
> >> >>>
> >> >>>
> >> >>>
> >> >>> On Fri, Apr 1, 2011 at 1:38 PM, Zeeshan Ali Shah 
> >> >>> wrote:
> >> >>> > in Our case they are monitorized and are not in error state as shown
> >> >>> > in
> >> >>> > one
> >> >>> > host list .  neither the memory cpu requirement are exhausted ..
> >> >>> > any other hint ?
> >> >>> > it was working fine after that I launched 5vm and it stucked
> >> >>> > (Although)
> >> >>> > I
> >> >>> > have 32 cores with 160GB RAM left.   but later i deleted vms
> >> >>> > restarted
> >> >>> > ONEd
> >> >>> > and SCHED:
> >> >>> > even after that when no vms left the new vms in pending state.I
> >> >>> > had
> >> >>> > to
> >> >>> > use manual one vm deploy everytime..
> >> >>> > Zeeshan
> >> >>> > On Fri, Apr 1, 2011 at 1:22 PM, Tino Vazquez 
> >> >>> > wrote:
> >> >>> >>
> >> >>> >> Hi,
> >> >>> >>
> >> >>> >> Please take a look at [1].
> >> >>> >>
> >> >>> >> Regards,
> >> >>> >>
> >> >>> >> -Tino
> >> >>> >>
> >> >>> >> [1]
> >> >>> >>
> >> >>> >>
> >> >>> >> http://opennebula.org/documentation:community:faq#my_machine_stays_in_pending_state_what_can_i_do
> >> >>> >>
> >> >>> >> --
> >> >>> >> Constantino Vázquez Blanco | dsa-research.org/tinova
> >> >>> >> Virtualiz

Re: [one-users] Problem with ebtables OpenNebula

2011-04-11 Thread marwen marwen
Dear Tino,

Thank you for your reply.
I haven't this error in the log file but when I stop a VM I have this error:

##
*Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 Command
execution fail: '/data1/opennebula/share/hooks/ebtables-flush ""'*
*
*
*Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 STDERR
follows.*
*
*
*Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 sudo: sorry,
you must have a tty to run sudo*
*
*
*Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152
/srv/cloud/share/hooks/ebtables-flush:37:in `get_rules': undefined method
`collect' for nil:NilClass (NoMethodError)*
*
*
*Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 from
/srv/cloud/share/hooks/ebtables-flush:35:in `each'*
*
*
*Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 from
/srv/cloud/share/hooks/ebtables-flush:35:in `get_rules'*
*
*
*Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 from
/srv/cloud/share/hooks/ebtables-flush:58*
*
*
*Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 ExitCode: 1*
*
*
*Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: EXECUTE FAILURE 152
ebtables-flush*
##

Best Regards
Marwen

2011/4/11 Tino Vazquez 

> Dear Leong, Marwen,
>
> If you are experiencing the following in the logs
>
> Fri Apr  8 11:59:05 2011 [MAD][E]: MAD did not answer INIT command
>
> it may be due to a missing dependency, we can walk you on finding out which
> one.
>
> Otherwise, please say so and we will look at other possible causes.
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco | dsa-research.org/tinova
> Virtualization Technology Engineer / Researcher
> OpenNebula Toolkit | opennebula.org
>
>
>
> On Mon, Apr 11, 2011 at 9:13 AM, Leong Marco 
> wrote:
> > Hi,
> > I have the same problem as Marwen. With this log message.
> > Mon Apr 11 14:50:26 2011 [TM][I]: tm_context.sh: Executed "rm -rf
> > /var/lib/one/2603e38607a144aef3bef07283d77095".
> > Mon Apr 11 14:50:26 2011 [LCM][I]: New VM state is BOOT
> > Mon Apr 11 14:50:26 2011 [VMM][I]: Generating deployment file:
> > /var/lib/one/165/deployment.1
> > Mon Apr 11 14:50:28 2011 [LCM][I]: New VM state is RUNNING
> > Mon Apr 11 14:50:28 2011 [HKM][I]: Hook ebtables-start successfully
> > executed.
> > However, if I do a list to ebtables, it is empty.
> > [oneadmin@geek root]$ sudo ebtables --list
> > Bridge table: filter
> > Bridge chain: INPUT, entries: 0, policy: ACCEPT
> > Bridge chain: FORWARD, entries: 0, policy: ACCEPT
> > Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
> > When I run some ebtables command like this one, it works
> > sudo ebtables -A FORWARD -p IPv4 -j ACCEPT
> > this does add the rules to the table.
> > What can I provide to help you to debug this problem?
> >
> > Leong Marco
> > leong.chou@usj.edu.mo
> >
> >
> > On Apr 7, 2011, at 9:46 PM, marwen marwen wrote:
> >
> > Hi Zaina
> > Yes I added oneadmin in the sudoers file of the physical host where the
> VM
> > is allocated.
> > And when I create the VM I specify the host where the VM will be
> allocated.
> > But the problem is not resolved.
> > Do you think that we must add this command in sudoers file of all cluster
> > nodes.
> > oneadminALL=(ALL) NOPASSWD: /sbin/ebtables *
> > Best regards
> > Marwen
> >
> >> From: Zaina AFOULKI 
> >> To: users@lists.opennebula.org
> >> Subject: Re: [one-users] Problem with ebtables OpenNebula
> >> Message-ID: <4d9cb10c.6080...@ensi-bourges.fr>
> >> Content-Type: text/plain; charset=ISO-8859-1
> >>
> >> Hi Marwen,
> >>
> >> Did you make sure that oneadmin is added in the /etc/sudoers file with
> >> oneadminALL=(ALL) NOPASSWD: /sbin/ebtables * ?
> >>
> >> http://opennebula.org/documentation:archives:rel2.0:nm
> >>
> >> --
> >> Zaina
> >>
> >>
> >> On 04/06/2011 06:40 PM, marwen marwen wrote:
> >> > Hi,
> >> >
> >> > I'm using ebtables to isolate virtual network in OpenNebula.
> >> > I have a problem when OpenNebula execute ebtables-kvm script.
> >> > In fact, the log file mention no error "Wed Apr  6 18:22:02 2011
> >> > [HKM][D]:
> >> > Message received: EXECUTE SUCCESS 146 ebtables-start".
> >> > But there are no rule added to the list rules of ebtables in the
> >> > physical
> >> > host where the VM is allocated.
> >> >
> >> > ###
> >> > sudo ebtables -L
> >> >
> >> > Bridge table: filter
> >> >
> >> > Bridge chain: INPUT, entries: 0, policy: ACCEPT
> >> >
> >> > Bridge chain: FORWARD, entries: 0, policy: ACCEPT
> >> >
> >> > Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
> >> > ###
> >> >
> >> > And when I execute manually the script on the worker node, the rules
> are
> >> > added.
> >> > In the oned.conf we put this configuration
> >> >
> >> > #

Re: [one-users] Problem with ebtables OpenNebula

2011-04-11 Thread Leong Marco
Dear Tino,

Yes, I did have this error in the log.
Mon Apr 11 15:13:09 2011 [MAD][E]: MAD did not answer INIT command

What is the problem happen here? Thank you for your help !

Leong Marco
leong.chou@usj.edu.mo



On Apr 11, 2011, at 8:55 PM, Tino Vazquez wrote:

> Dear Leong, Marwen,
> 
> If you are experiencing the following in the logs
> 
> Fri Apr  8 11:59:05 2011 [MAD][E]: MAD did not answer INIT command
> 
> it may be due to a missing dependency, we can walk you on finding out which 
> one.
> 
> Otherwise, please say so and we will look at other possible causes.
> 
> Regards,
> 
> -Tino
> 
> --
> Constantino Vázquez Blanco | dsa-research.org/tinova
> Virtualization Technology Engineer / Researcher
> OpenNebula Toolkit | opennebula.org
> 
> 
> 
> On Mon, Apr 11, 2011 at 9:13 AM, Leong Marco  
> wrote:
>> Hi,
>> I have the same problem as Marwen. With this log message.
>> Mon Apr 11 14:50:26 2011 [TM][I]: tm_context.sh: Executed "rm -rf
>> /var/lib/one/2603e38607a144aef3bef07283d77095".
>> Mon Apr 11 14:50:26 2011 [LCM][I]: New VM state is BOOT
>> Mon Apr 11 14:50:26 2011 [VMM][I]: Generating deployment file:
>> /var/lib/one/165/deployment.1
>> Mon Apr 11 14:50:28 2011 [LCM][I]: New VM state is RUNNING
>> Mon Apr 11 14:50:28 2011 [HKM][I]: Hook ebtables-start successfully
>> executed.
>> However, if I do a list to ebtables, it is empty.
>> [oneadmin@geek root]$ sudo ebtables --list
>> Bridge table: filter
>> Bridge chain: INPUT, entries: 0, policy: ACCEPT
>> Bridge chain: FORWARD, entries: 0, policy: ACCEPT
>> Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
>> When I run some ebtables command like this one, it works
>> sudo ebtables -A FORWARD -p IPv4 -j ACCEPT
>> this does add the rules to the table.
>> What can I provide to help you to debug this problem?
>> 
>> Leong Marco
>> leong.chou@usj.edu.mo
>> 
>> 
>> On Apr 7, 2011, at 9:46 PM, marwen marwen wrote:
>> 
>> Hi Zaina
>> Yes I added oneadmin in the sudoers file of the physical host where the VM
>> is allocated.
>> And when I create the VM I specify the host where the VM will be allocated.
>> But the problem is not resolved.
>> Do you think that we must add this command in sudoers file of all cluster
>> nodes.
>> oneadminALL=(ALL) NOPASSWD: /sbin/ebtables *
>> Best regards
>> Marwen
>> 
>>> From: Zaina AFOULKI 
>>> To: users@lists.opennebula.org
>>> Subject: Re: [one-users] Problem with ebtables OpenNebula
>>> Message-ID: <4d9cb10c.6080...@ensi-bourges.fr>
>>> Content-Type: text/plain; charset=ISO-8859-1
>>> 
>>> Hi Marwen,
>>> 
>>> Did you make sure that oneadmin is added in the /etc/sudoers file with
>>> oneadminALL=(ALL) NOPASSWD: /sbin/ebtables * ?
>>> 
>>> http://opennebula.org/documentation:archives:rel2.0:nm
>>> 
>>> --
>>> Zaina
>>> 
>>> 
>>> On 04/06/2011 06:40 PM, marwen marwen wrote:
 Hi,
 
 I'm using ebtables to isolate virtual network in OpenNebula.
 I have a problem when OpenNebula execute ebtables-kvm script.
 In fact, the log file mention no error "Wed Apr  6 18:22:02 2011
 [HKM][D]:
 Message received: EXECUTE SUCCESS 146 ebtables-start".
 But there are no rule added to the list rules of ebtables in the
 physical
 host where the VM is allocated.
 
 ###
 sudo ebtables -L
 
 Bridge table: filter
 
 Bridge chain: INPUT, entries: 0, policy: ACCEPT
 
 Bridge chain: FORWARD, entries: 0, policy: ACCEPT
 
 Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
 ###
 
 And when I execute manually the script on the worker node, the rules are
 added.
 In the oned.conf we put this configuration
 
 ###
 VM_HOOK = [
 name  = "ebtables-start",
 on= "running",
 command   = "ebtables-kvm", # or ebtables-xen
 arguments = "one-$VMID",
 remote= "yes" ]
 
 VM_HOOK = [
 name  = "ebtables-flush",
 on= "done",
 command   = "ebtables-flush",
 arguments = "",
 remote= "yes" ]
 ###
 
 can you help me to fix this problem
 
 Best Regards
 Marwen
 
 
 
 
 ___
 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.o

Re: [one-users] Command execution fail: /tmp/one/im/run_probes kvm 192.168.2.2

2011-04-11 Thread Daniel Molina
Hi,

The problem is that OpenNebula cannot ssh to the host. Can you ping
the host, any firewall?

Regards

On 9 April 2011 16:13, Vivek Shrivastava  wrote:
> Hello all,
>
> I have tried on nfs & ssh with kvm but there are few problems when I'm
> working with opennebula:
>
> (1) Whenever I create onehost it goes fine but when I see the list it
> shows:-
>
>   ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM    FMEM
> STAT
>    6 10.81.199.126 default    0  0  0    100  0K  0K
> on
>
> why this RVM, TCPU, ACPU TMEM showing these results & FMEM & STAT don't have
> any values?
>
> (2) when I use onehost show 6  it gives
>
> HOST 6
> INFORMATION
> ID    : 6
> NAME  : 10.81.199.126
> CLUSTER   : default
> STATE : ERROR
> IM_MAD    : im_kvm
> VM_MAD    : vmm_kvm
> TM_MAD    : tm_ssh
>
> HOST
> SHARES
> MAX MEM   : 0
> USED MEM (REAL)   : 0
> USED MEM (ALLOCATED)  : 0
> MAX CPU   : 0
> USED CPU (REAL)   : 0
> USED CPU (ALLOCATED)  : 0
> RUNNING VMS   : 0
>
> MONITORING INFORMATION
>
> then all blank (Monitoring information is totally blank) & STATE is error
> why?
>
> (3) should I use private lan starts from 192.168.2.2?
>
> (4)  oned.log shows:-
>
> ..
> ..
> Sun Apr 10 16:36:11 2011 [InM][I]: Monitoring host 192.168.2.2 (5)
> Sun Apr 10 16:36:23 2011 [InM][I]: Command execution fail:
> /tmp/one/im/run_probes kvm 192.168.2.2
> Sun Apr 10 16:36:23 2011 [InM][I]: STDERR follows.
> Sun Apr 10 16:36:23 2011 [InM][I]: ssh: connect to host 192.168.2.2 port 22:
> No route to host
> Sun Apr 10 16:36:23 2011 [InM][I]: ExitCode: 255
> Sun Apr 10 16:36:23 2011 [InM][E]: Error monitoring host 5 : MONITOR FAILURE
> 5 Could not monitor host 192.168.2.2.
>
> Sun Apr 10 16:37:00 2011 [ReM][D]: HostInfo method invoked
> Sun Apr 10 16:38:19 2011 [InM][I]: --Mark--
> Sun Apr 10 16:38:19 2011 [VMM][I]: --Mark--
> Sun Apr 10 16:39:45 2011 [InM][I]: Monitoring host 10.81.199.126 (6)
> Sun Apr 10 16:39:49 2011 [InM][I]: Command execution fail:
> /tmp/one/im/run_probes kvm 10.81.199.126
>
> what should I do?
>
>
>
> --
> From,
>
> Vivek Shrivastava
>
> ___
> 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


Re: [one-users] Problem with ebtables OpenNebula

2011-04-11 Thread Tino Vazquez
Dear Leong, Marwen,

If you are experiencing the following in the logs

Fri Apr  8 11:59:05 2011 [MAD][E]: MAD did not answer INIT command

it may be due to a missing dependency, we can walk you on finding out which one.

Otherwise, please say so and we will look at other possible causes.

Regards,

-Tino

--
Constantino Vázquez Blanco | dsa-research.org/tinova
Virtualization Technology Engineer / Researcher
OpenNebula Toolkit | opennebula.org



On Mon, Apr 11, 2011 at 9:13 AM, Leong Marco  wrote:
> Hi,
> I have the same problem as Marwen. With this log message.
> Mon Apr 11 14:50:26 2011 [TM][I]: tm_context.sh: Executed "rm -rf
> /var/lib/one/2603e38607a144aef3bef07283d77095".
> Mon Apr 11 14:50:26 2011 [LCM][I]: New VM state is BOOT
> Mon Apr 11 14:50:26 2011 [VMM][I]: Generating deployment file:
> /var/lib/one/165/deployment.1
> Mon Apr 11 14:50:28 2011 [LCM][I]: New VM state is RUNNING
> Mon Apr 11 14:50:28 2011 [HKM][I]: Hook ebtables-start successfully
> executed.
> However, if I do a list to ebtables, it is empty.
> [oneadmin@geek root]$ sudo ebtables --list
> Bridge table: filter
> Bridge chain: INPUT, entries: 0, policy: ACCEPT
> Bridge chain: FORWARD, entries: 0, policy: ACCEPT
> Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
> When I run some ebtables command like this one, it works
> sudo ebtables -A FORWARD -p IPv4 -j ACCEPT
> this does add the rules to the table.
> What can I provide to help you to debug this problem?
>
> Leong Marco
> leong.chou@usj.edu.mo
>
>
> On Apr 7, 2011, at 9:46 PM, marwen marwen wrote:
>
> Hi Zaina
> Yes I added oneadmin in the sudoers file of the physical host where the VM
> is allocated.
> And when I create the VM I specify the host where the VM will be allocated.
> But the problem is not resolved.
> Do you think that we must add this command in sudoers file of all cluster
> nodes.
> oneadmin    ALL=(ALL) NOPASSWD: /sbin/ebtables *
> Best regards
> Marwen
>
>> From: Zaina AFOULKI 
>> To: users@lists.opennebula.org
>> Subject: Re: [one-users] Problem with ebtables OpenNebula
>> Message-ID: <4d9cb10c.6080...@ensi-bourges.fr>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hi Marwen,
>>
>> Did you make sure that oneadmin is added in the /etc/sudoers file with
>> oneadmin    ALL=(ALL) NOPASSWD: /sbin/ebtables * ?
>>
>> http://opennebula.org/documentation:archives:rel2.0:nm
>>
>> --
>> Zaina
>>
>>
>> On 04/06/2011 06:40 PM, marwen marwen wrote:
>> > Hi,
>> >
>> > I'm using ebtables to isolate virtual network in OpenNebula.
>> > I have a problem when OpenNebula execute ebtables-kvm script.
>> > In fact, the log file mention no error "Wed Apr  6 18:22:02 2011
>> > [HKM][D]:
>> > Message received: EXECUTE SUCCESS 146 ebtables-start".
>> > But there are no rule added to the list rules of ebtables in the
>> > physical
>> > host where the VM is allocated.
>> >
>> > ###
>> > sudo ebtables -L
>> >
>> > Bridge table: filter
>> >
>> > Bridge chain: INPUT, entries: 0, policy: ACCEPT
>> >
>> > Bridge chain: FORWARD, entries: 0, policy: ACCEPT
>> >
>> > Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
>> > ###
>> >
>> > And when I execute manually the script on the worker node, the rules are
>> > added.
>> > In the oned.conf we put this configuration
>> >
>> > ###
>> > VM_HOOK = [
>> >     name      = "ebtables-start",
>> >     on        = "running",
>> >     command   = "ebtables-kvm", # or ebtables-xen
>> >     arguments = "one-$VMID",
>> >     remote    = "yes" ]
>> >
>> > VM_HOOK = [
>> >     name      = "ebtables-flush",
>> >     on        = "done",
>> >     command   = "ebtables-flush",
>> >     arguments = "",
>> >     remote    = "yes" ]
>> > ###
>> >
>> > can you help me to fix this problem
>> >
>> > Best Regards
>> > Marwen
>> >
>> >
>> >
>> >
>> > ___
>> > 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


Re: [one-users] Java OCA: poor choiche of Exception class

2011-04-11 Thread Carlos Martín Sánchez
Hi Gian Uberto,

Thank you for your feedback. As you may know, we use mainly our Ruby
bindings for external tools and extensions, so these comments about the Java
API are very welcome.
Please feel free to open a ticket in our development portal [1], along with
any other comments, suggestions or patches.

Regards,
Carlos.

[1] http://dev.opennebula.org/

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org  | cmar...@opennebula.org


On 4 April 2011 13:12, Gian Uberto Lauri  wrote:

> > "CC" == Gian Uberto Lauri  writes:
>
> CC> Hello, I just started to use OCA and immediately had the bad
> CC> surprise to find an "Exception" thrown by Client class
> CC> instantiation.
>
> One thing I forgot in the previous message:
>
> I  know people  in Apache  Software Foundation  do such  raw Exception
> throwing as  natinal sport, but in  my (again not so)  humble opinion,
> ASF  java  coders  are  next  in  line  after  the  Sirius  Cybernetic
> Corporation Marketing Division.
>
> --
> 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] Sunstone in ubuntu

2011-04-11 Thread Jeff
Thank you olivier. It seems that there is something wrong with the 
option -H when using sunstone-server command .So I edited the 
$ONE_LOCATION/bin/sunstone-server and replaced line ' HOST="127.0.0.1" ' 
with 'HOST="myip"' ,then it worked. That's kind of weird. Maybe it is a 
bug ?

Regards
Jeff
On 4/11/2011 6:13 PM, Olivier Sallou wrote:

the ip must be the one of the host running the sunstone server.
Then you can access it, as long as your ip is accessible via http 
(firewalls?)




*De: *"Jeff" 
*À: *"Olivier Sallou" 
*Cc: *users@lists.opennebula.org
*Envoyé: *Lundi 11 Avril 2011 12:12:31
*Objet: *Re: [one-users] Sunstone in ubuntu

Hi, Oliver. I tried but failed again. Can you access your Sunstone
from a remote client ?
Regards
Jeff
On 4/11/2011 5:40 PM, Olivier Sallou wrote:

by default, it listens on 127.0.0.1 only

To enable access from remote, run sunstone specifying the
network ip (-h option i think)

Olivier


*De: *"Jeff" 
*À: *users@lists.opennebula.org
*Envoyé: *Lundi 11 Avril 2011 11:13:38
*Objet: *[one-users] Sunstone in ubuntu

Hi, all. I have installed the opennebula successfully in
Ubuntu Maverick. I also can start a vm through the command
line. Now I want to try to use sunstone to manage VMs.
However, after configuring Sunstone following the
instuctions, I can start Sunstone without any error but
just can't access it through the web browser.
The command sudo lsof -i:4567 shows that the port is using
by rack.I think that means Sunstone running properly. When
I try to access it through Chrome browser, I get the error
information saying "Google Chrome could not connect to
X.X.X.X:4567" (X.X.X.X is the ip of head node).
Any hints ?
Best Regards
Jeff



___
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] VM creation stuck in "pending" state

2011-04-11 Thread Daniel Molina
Hi Upendra,

You should change the requirements section to:
REQUIREMENTS = "HOSTNAME=\"obelix20.local\""

or change the local hostname of your host, the name retrieved from it
($ uname -n) is:
>     

Regards.

On 8 April 2011 21:19, Upendra Sharma  wrote:
> Hi Daniel,
>
> sorry for late response ...
> here is the result
>
> 
>   4
>   obelix20
>   2
>   im_xen
>   vmm_xen
>   tm_ssh
>   1302289702
>   cluster1
>   
>     4
>     0
>     0
>     0
>     0
>     4193280
>     400
>     0
>     3091456
>     399
>     0
>     1101824
>     1
>     0
>   
>   
>     
>     
>     
>     
>     
>     
>     
>     
>     
>     
>     
>     
>     
>   
> 
>
>
> thanks,
> -upendra
>
>> From: dmol...@opennebula.org
>> Date: Tue, 5 Apr 2011 11:44:42 +0200
>> Subject: Re: [one-users] VM creation stuck in "pending" state
>> To: upend...@hotmail.com
>> CC: users@lists.opennebula.org
>>
>> Hi Upendra,
>>
>> Would you mind to send us the output of:
>> onehost show 4 -x
>>
>> Regards
>>
>> On 4 April 2011 15:58, Daniel Molina  wrote:
>> > Hi,
>> >
>> > Would you mind to try changing the Requirements statement to:
>> > REQUIREMENTS = "HOSTNAME=obelix20"
>> >
>> > Regards
>> >
>> > On 2 April 2011 20:56, Upendra Sharma  wrote:
>> >> Hi Tino,
>> >>
>> >> something similar is happening to me as well.
>> >>
>> >> the VM template looks is shown below.
>> >>
>> >>  vm template ==
>> >> NAME   = TPCW-L
>> >> CPU    = 1
>> >> MEMORY = 2000
>> >> REQUIREMENTS = "HOSTNAME=\"obelix20\""
>> >> RANK = FREECPU
>> >> OS = [ bootloader=/usr/bin/pygrub ]
>> >> DISK   = [
>> >>   source   = "disk-vm1.img",
>> >>   target   = "xvda",
>> >>   readonly = "no" ]
>> >> DISK   = [
>> >>   source   = "disk-tpcw-db.img",
>> >>   target   = "xvda5",
>> >>   readonly = "no" ]
>> >> NIC    = [ NETWORK = "Public VLAN" ]
>> >> RAW    = [
>> >>   type  = "xen",
>> >>   data  = "vcpus=1"
>> >> ]
>> >> ==
>> >>
>> >>
>> >>
>> >>
>> >> The main problem is this: my vm-template has a specific REQUIREMENTS ..
>> >> i.e.
>> >> HOSTNAME. That particular host has a no VMs running on it and a 3 G of
>> >> RAM
>> >> free on it. The list of hosts on the cluster are:
>> >>
>> >>
>> >>
>> >>
>> >> $ onehost list
>> >>   ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM
>> >> FMEM
>> >> STAT
>> >>    4 obelix20  cluster1  0    400  399 400
>> >> 4G   2.9G    on
>> >>
>> >> the machine simply sits on the pending state.
>> >>
>> >> When I comment out the REQUIREMENTS line, it works fine and schedules
>> >> it on
>> >> one of the machines.
>> >>
>> >> I could not find a reason in any of the logs to find the reason.
>> >>
>> >>
>> >>
>> >> thanks,
>> >> -upendra
>> >>
>> >>> From: tin...@opennebula.org
>> >>> Date: Fri, 1 Apr 2011 15:01:42 +0100
>> >>> To: zas...@pdc.kth.se
>> >>> CC: users@lists.opennebula.org
>> >>> Subject: Re: [one-users] VM creation stuck in "pending" state
>> >>>
>> >>> Hi,
>> >>>
>> >>> Any REQUIREMENT section in the VM templates?
>> >>>
>> >>> Regards,
>> >>>
>> >>> -Tino
>> >>>
>> >>> --
>> >>> Constantino Vázquez Blanco, MSc
>> >>> OpenNebula Major Contributor
>> >>> www.OpenNebula.org | @tinova79
>> >>>
>> >>>
>> >>>
>> >>> On Fri, Apr 1, 2011 at 1:38 PM, Zeeshan Ali Shah 
>> >>> wrote:
>> >>> > in Our case they are monitorized and are not in error state as shown
>> >>> > in
>> >>> > one
>> >>> > host list .  neither the memory cpu requirement are exhausted ..
>> >>> > any other hint ?
>> >>> > it was working fine after that I launched 5vm and it stucked
>> >>> > (Although)
>> >>> > I
>> >>> > have 32 cores with 160GB RAM left.   but later i deleted vms
>> >>> > restarted
>> >>> > ONEd
>> >>> > and SCHED:
>> >>> > even after that when no vms left the new vms in pending state.    I
>> >>> > had
>> >>> > to
>> >>> > use manual one vm deploy everytime..
>> >>> > Zeeshan
>> >>> > On Fri, Apr 1, 2011 at 1:22 PM, Tino Vazquez 
>> >>> > wrote:
>> >>> >>
>> >>> >> Hi,
>> >>> >>
>> >>> >> Please take a look at [1].
>> >>> >>
>> >>> >> Regards,
>> >>> >>
>> >>> >> -Tino
>> >>> >>
>> >>> >> [1]
>> >>> >>
>> >>> >>
>> >>> >> http://opennebula.org/documentation:community:faq#my_machine_stays_in_pending_state_what_can_i_do
>> >>> >>
>> >>> >> --
>> >>> >> Constantino Vázquez Blanco | dsa-research.org/tinova
>> >>> >> Virtualization Technology Engineer / Researcher
>> >>> >> OpenNebula Toolkit | opennebula.org
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> On Fri, Apr 1, 2011 at 11:59 AM, Zeeshan Ali Shah
>> >>> >> 
>> >>> >> wrote:
>> >>> >> > Happen to me as well , I can manually deploy, but by default it
>> >>> >> > is
>> >>> >> > stuck
>> >>> >> > in
>> >>> >> > Pending state forever ..   I restarted SCHED as well. but same ..
>> >>> >> > any hint ?
>> >>> >> >
>> >>> >> > Zeeshan
>> >>> >> >
>> >>> >> > On Sun, Mar 27, 2011 at 5:34 PM, Héctor Sanjuán
>> >>> >> > 
>> >>> >> > wrote:
>> >>> >> >>
>> >>> >> >> Hi,
>> >>> >> >>
>> >>> >> >> make sure there is a

[one-users] setting variables ONE_LOCATION

2011-04-11 Thread Marco Mirabile
i have install opnennebula with deb package.
where is it the directory of installation?
(i must set the ONE_LOCATION path)

I have searched the home directory in / srv / cloud / one, but I can not
find the folder

thank you very much
marco mirable
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] VM creation stuck in "pending" state

2011-04-11 Thread Zeeshan Ali Shah
I resolved it by removing CPU=   and adding Rank = FREECPU

now vm stages fine

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


Re: [one-users] Sunstone in ubuntu

2011-04-11 Thread Olivier Sallou
the ip must be the one of the host running the sunstone server. 
Then you can access it, as long as your ip is accessible via http (firewalls?) 

- Mail original -


De: "Jeff"  
À: "Olivier Sallou"  
Cc: users@lists.opennebula.org 
Envoyé: Lundi 11 Avril 2011 12:12:31 
Objet: Re: [one-users] Sunstone in ubuntu 

Hi, Oliver. I tried but failed again. Can you access your Sunstone from a 
remote client ? 
Regards 
Jeff 
On 4/11/2011 5:40 PM, Olivier Sallou wrote: 


by default, it listens on 127.0.0.1 only 

To enable access from remote, run sunstone specifying the network ip (-h option 
i think) 

Olivier 
- Mail original -


De: "Jeff"  
À: users@lists.opennebula.org 
Envoyé: Lundi 11 Avril 2011 11:13:38 
Objet: [one-users] Sunstone in ubuntu 

Hi, all. I have installed the opennebula successfully in Ubuntu Maverick. I 
also can start a vm through the command line. Now I want to try to use sunstone 
to manage VMs. 
However, after configuring Sunstone following the instuctions, I can start 
Sunstone without any error but just can't access it through the web browser. 
The command sudo lsof -i:4567 shows that the port is using by rack.I think that 
means Sunstone running properly. When I try to access it through Chrome 
browser, I get the error information saying "Google Chrome could not connect to 
X.X.X.X:4567" (X.X.X.X is the ip of head node). 
Any hints ? 
Best Regards 
Jeff 



___ 
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] Sunstone in ubuntu

2011-04-11 Thread Jeff
Hi, Oliver. I tried but failed again. Can you access your Sunstone from 
a remote client ?

Regards
Jeff
On 4/11/2011 5:40 PM, Olivier Sallou wrote:

by default, it listens on 127.0.0.1 only

To enable access from remote, run sunstone specifying the network ip 
(-h option i think)


Olivier


*De: *"Jeff" 
*À: *users@lists.opennebula.org
*Envoyé: *Lundi 11 Avril 2011 11:13:38
*Objet: *[one-users] Sunstone in ubuntu

Hi, all. I have installed the opennebula successfully in Ubuntu
Maverick. I also can start a vm through the command line. Now I
want to try to use sunstone to manage VMs.
However, after configuring Sunstone following the instuctions, I
can start Sunstone without any error but just can't access it
through the web browser.
The command sudo lsof -i:4567 shows that the port is using by
rack.I think that means Sunstone running properly. When I try to
access it through Chrome browser, I get the error information
saying "Google Chrome could not connect to X.X.X.X:4567" (X.X.X.X
is the ip of head node).
Any hints ?
Best Regards
Jeff



___
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] Sunstone in ubuntu

2011-04-11 Thread Jeff

Thank you for your reply, Daniel. I have tried following your advice.
I stoped Sunstone and started it with arguments : -H ip-of-head-cloud
It's still unable to work.
I'm a little confused about the -H option. Does it refer to the ip of 
the head cloud or remote client ip ?

Thanks again
Jeff
 On 4/11/2011 5:38 PM, Daniel Molina wrote:

Hi Jeff,

Sunstone is started on localhost by default, if you want to define a
different IP you should use the -H option when starting the server.

Regards.

On 11 April 2011 11:13, Jeff  wrote:

Hi, all. I have installed the opennebula successfully in Ubuntu Maverick. I
also can start a vm through the command line. Now I want to try to use
sunstone to manage VMs.
However, after configuring Sunstone following the instuctions, I can start
Sunstone without any error but just can't access it through the web browser.
The command sudo lsof -i:4567 shows that the port is using by rack.I think
that means Sunstone running properly. When I try to access it through Chrome
browser, I get the error information saying "Google Chrome could not connect
to X.X.X.X:4567" (X.X.X.X is the ip of head node).
Any hints ?
Best Regards
Jeff


___
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] VM creation stuck in "pending" state

2011-04-11 Thread Idafen Santana Pérez
Same for me, I've created several VMs without problem, but now every
time I want to create a new one it stays on pending state. Hope there
is a solution. Everything was working OK until i introduced a EC2 host
and deploy a VM on it, but I see no relation between this and the
pending problem.

Regards,
Idafen

On Fri, Apr 8, 2011 at 9:19 PM, Upendra Sharma  wrote:
> Hi Daniel,
>
> sorry for late response ...
> here is the result
>
> 
>   4
>   obelix20
>   2
>   im_xen
>   vmm_xen
>   tm_ssh
>   1302289702
>   cluster1
>   
>     4
>     0
>     0
>     0
>     0
>     4193280
>     400
>     0
>     3091456
>     399
>     0
>     1101824
>     1
>     0
>   
>   
>     
>     
>     
>     
>     
>     
>     
>     
>     
>     
>     
>     
>     
>   
> 
>
>
> thanks,
> -upendra
>
>> From: dmol...@opennebula.org
>> Date: Tue, 5 Apr 2011 11:44:42 +0200
>> Subject: Re: [one-users] VM creation stuck in "pending" state
>> To: upend...@hotmail.com
>> CC: users@lists.opennebula.org
>>
>> Hi Upendra,
>>
>> Would you mind to send us the output of:
>> onehost show 4 -x
>>
>> Regards
>>
>> On 4 April 2011 15:58, Daniel Molina  wrote:
>> > Hi,
>> >
>> > Would you mind to try changing the Requirements statement to:
>> > REQUIREMENTS = "HOSTNAME=obelix20"
>> >
>> > Regards
>> >
>> > On 2 April 2011 20:56, Upendra Sharma  wrote:
>> >> Hi Tino,
>> >>
>> >> something similar is happening to me as well.
>> >>
>> >> the VM template looks is shown below.
>> >>
>> >>  vm template ==
>> >> NAME   = TPCW-L
>> >> CPU    = 1
>> >> MEMORY = 2000
>> >> REQUIREMENTS = "HOSTNAME=\"obelix20\""
>> >> RANK = FREECPU
>> >> OS = [ bootloader=/usr/bin/pygrub ]
>> >> DISK   = [
>> >>   source   = "disk-vm1.img",
>> >>   target   = "xvda",
>> >>   readonly = "no" ]
>> >> DISK   = [
>> >>   source   = "disk-tpcw-db.img",
>> >>   target   = "xvda5",
>> >>   readonly = "no" ]
>> >> NIC    = [ NETWORK = "Public VLAN" ]
>> >> RAW    = [
>> >>   type  = "xen",
>> >>   data  = "vcpus=1"
>> >> ]
>> >> ==
>> >>
>> >>
>> >>
>> >>
>> >> The main problem is this: my vm-template has a specific REQUIREMENTS ..
>> >> i.e.
>> >> HOSTNAME. That particular host has a no VMs running on it and a 3 G of
>> >> RAM
>> >> free on it. The list of hosts on the cluster are:
>> >>
>> >>
>> >>
>> >>
>> >> $ onehost list
>> >>   ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM
>> >> FMEM
>> >> STAT
>> >>    4 obelix20  cluster1  0    400  399 400
>> >> 4G   2.9G    on
>> >>
>> >> the machine simply sits on the pending state.
>> >>
>> >> When I comment out the REQUIREMENTS line, it works fine and schedules
>> >> it on
>> >> one of the machines.
>> >>
>> >> I could not find a reason in any of the logs to find the reason.
>> >>
>> >>
>> >>
>> >> thanks,
>> >> -upendra
>> >>
>> >>> From: tin...@opennebula.org
>> >>> Date: Fri, 1 Apr 2011 15:01:42 +0100
>> >>> To: zas...@pdc.kth.se
>> >>> CC: users@lists.opennebula.org
>> >>> Subject: Re: [one-users] VM creation stuck in "pending" state
>> >>>
>> >>> Hi,
>> >>>
>> >>> Any REQUIREMENT section in the VM templates?
>> >>>
>> >>> Regards,
>> >>>
>> >>> -Tino
>> >>>
>> >>> --
>> >>> Constantino Vázquez Blanco, MSc
>> >>> OpenNebula Major Contributor
>> >>> www.OpenNebula.org | @tinova79
>> >>>
>> >>>
>> >>>
>> >>> On Fri, Apr 1, 2011 at 1:38 PM, Zeeshan Ali Shah 
>> >>> wrote:
>> >>> > in Our case they are monitorized and are not in error state as shown
>> >>> > in
>> >>> > one
>> >>> > host list .  neither the memory cpu requirement are exhausted ..
>> >>> > any other hint ?
>> >>> > it was working fine after that I launched 5vm and it stucked
>> >>> > (Although)
>> >>> > I
>> >>> > have 32 cores with 160GB RAM left.   but later i deleted vms
>> >>> > restarted
>> >>> > ONEd
>> >>> > and SCHED:
>> >>> > even after that when no vms left the new vms in pending state.    I
>> >>> > had
>> >>> > to
>> >>> > use manual one vm deploy everytime..
>> >>> > Zeeshan
>> >>> > On Fri, Apr 1, 2011 at 1:22 PM, Tino Vazquez 
>> >>> > wrote:
>> >>> >>
>> >>> >> Hi,
>> >>> >>
>> >>> >> Please take a look at [1].
>> >>> >>
>> >>> >> Regards,
>> >>> >>
>> >>> >> -Tino
>> >>> >>
>> >>> >> [1]
>> >>> >>
>> >>> >>
>> >>> >> http://opennebula.org/documentation:community:faq#my_machine_stays_in_pending_state_what_can_i_do
>> >>> >>
>> >>> >> --
>> >>> >> Constantino Vázquez Blanco | dsa-research.org/tinova
>> >>> >> Virtualization Technology Engineer / Researcher
>> >>> >> OpenNebula Toolkit | opennebula.org
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> On Fri, Apr 1, 2011 at 11:59 AM, Zeeshan Ali Shah
>> >>> >> 
>> >>> >> wrote:
>> >>> >> > Happen to me as well , I can manually deploy, but by default it
>> >>> >> > is
>> >>> >> > stuck
>> >>> >> > in
>> >>> >> > Pending state forever ..   I restarted SCHED as well. but same ..
>> >>> >> > any hint ?
>> >>> >> >
>> >>> >> > Zeeshan
>> >>> >> >
>> >>> >> > On Sun, Mar 27, 2011 at 5:34 PM, Héctor Sanjuán

Re: [one-users] Sunstone in ubuntu

2011-04-11 Thread Olivier Sallou
by default, it listens on 127.0.0.1 only 

To enable access from remote, run sunstone specifying the network ip (-h option 
i think) 

Olivier 
- Mail original -


De: "Jeff"  
À: users@lists.opennebula.org 
Envoyé: Lundi 11 Avril 2011 11:13:38 
Objet: [one-users] Sunstone in ubuntu 

Hi, all. I have installed the opennebula successfully in Ubuntu Maverick. I 
also can start a vm through the command line. Now I want to try to use sunstone 
to manage VMs. 
However, after configuring Sunstone following the instuctions, I can start 
Sunstone without any error but just can't access it through the web browser. 
The command sudo lsof -i:4567 shows that the port is using by rack.I think that 
means Sunstone running properly. When I try to access it through Chrome 
browser, I get the error information saying "Google Chrome could not connect to 
X.X.X.X:4567" (X.X.X.X is the ip of head node). 
Any hints ? 
Best Regards 
Jeff 



___ 
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] Sunstone in ubuntu

2011-04-11 Thread Daniel Molina
Hi Jeff,

Sunstone is started on localhost by default, if you want to define a
different IP you should use the -H option when starting the server.

Regards.

On 11 April 2011 11:13, Jeff  wrote:
> Hi, all. I have installed the opennebula successfully in Ubuntu Maverick. I
> also can start a vm through the command line. Now I want to try to use
> sunstone to manage VMs.
> However, after configuring Sunstone following the instuctions, I can start
> Sunstone without any error but just can't access it through the web browser.
> The command sudo lsof -i:4567 shows that the port is using by rack.I think
> that means Sunstone running properly. When I try to access it through Chrome
> browser, I get the error information saying "Google Chrome could not connect
> to X.X.X.X:4567" (X.X.X.X is the ip of head node).
> Any hints ?
> Best Regards
> Jeff
>
>
> ___
> 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] Directory structure under $ONE_LOCATION after install.sh, lacks several folders

2011-04-11 Thread Luis Rodero-Merino
Hi,

I'm following the instructions in
http://opennebula.org/documentation:rel2.2:ignc to install OpenNebula
v2.2 . I can compile using scons without any problem, and then I
install ONE by running:
./install.sh -u oneadmin -g cloud -d /one_sw -c

Everything goes fine, but the resulting directory structure differs
from what is shown in the webpage. It lacks many folders, such as
one_sw/lib/remotes, one_sw/lib/tm_commands, one_sw/libexec,
one_vm/share and one_vm/etc. Is this normal? It's me who is supposed
to create those folders?

Thanks for your help, regards,
Luis Rodero-Merino

-- 

Dr. Luis Rodero-Merino
Researcher @ Distributed Systems Laboratory (http://lsd.ls.fi.upm.es),
Computer Science School, Madrid Polytechnic University.
Phone: (34)913363681, Fax: (34)913363669
Address: Campus de Montegancedo, Bloque 2, L 3201
CP: 28660, Boadilla del Monte (Madrid), Spain

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


[one-users] Sunstone in ubuntu

2011-04-11 Thread Jeff
Hi, all. I have installed the opennebula successfully in Ubuntu 
Maverick. I also can start a vm through the command line. Now I want to 
try to use sunstone to manage VMs.
However, after configuring Sunstone following the instuctions, I can 
start Sunstone without any error but just can't access it through the 
web browser.
The command sudo lsof -i:4567 shows that the port is using by rack.I 
think that means Sunstone running properly. When I try to access it 
through Chrome browser, I get the error information saying "Google 
Chrome could not connect to X.X.X.X:4567" (X.X.X.X is the ip of head node).

Any hints ?
Best Regards
Jeff


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


Re: [one-users] Problem with ebtables OpenNebula

2011-04-11 Thread Leong Marco
Hi,

I have the same problem as Marwen. With this log message.
Mon Apr 11 14:50:26 2011 [TM][I]: tm_context.sh: Executed "rm -rf 
/var/lib/one/2603e38607a144aef3bef07283d77095".
Mon Apr 11 14:50:26 2011 [LCM][I]: New VM state is BOOT
Mon Apr 11 14:50:26 2011 [VMM][I]: Generating deployment file: 
/var/lib/one/165/deployment.1
Mon Apr 11 14:50:28 2011 [LCM][I]: New VM state is RUNNING
Mon Apr 11 14:50:28 2011 [HKM][I]: Hook ebtables-start successfully executed. 

However, if I do a list to ebtables, it is empty.

[oneadmin@geek root]$ sudo ebtables --list
Bridge table: filter

Bridge chain: INPUT, entries: 0, policy: ACCEPT

Bridge chain: FORWARD, entries: 0, policy: ACCEPT

Bridge chain: OUTPUT, entries: 0, policy: ACCEPT

When I run some ebtables command like this one, it works

sudo ebtables -A FORWARD -p IPv4 -j ACCEPT
this does add the rules to the table.

What can I provide to help you to debug this problem?


Leong Marco
leong.chou@usj.edu.mo



On Apr 7, 2011, at 9:46 PM, marwen marwen wrote:

> 
> Hi Zaina
> 
> Yes I added oneadmin in the sudoers file of the physical host where the VM is 
> allocated.
> And when I create the VM I specify the host where the VM will be allocated.
> But the problem is not resolved.
> Do you think that we must add this command in sudoers file of all cluster 
> nodes. 
> oneadminALL=(ALL) NOPASSWD: /sbin/ebtables *
> 
> Best regards
> Marwen
> 
> 
> From: Zaina AFOULKI 
> To: users@lists.opennebula.org
> Subject: Re: [one-users] Problem with ebtables OpenNebula
> Message-ID: <4d9cb10c.6080...@ensi-bourges.fr>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hi Marwen,
> 
> Did you make sure that oneadmin is added in the /etc/sudoers file with
> oneadminALL=(ALL) NOPASSWD: /sbin/ebtables * ?
> 
> http://opennebula.org/documentation:archives:rel2.0:nm
> 
> --
> Zaina
> 
> 
> On 04/06/2011 06:40 PM, marwen marwen wrote:
> > Hi,
> >
> > I'm using ebtables to isolate virtual network in OpenNebula.
> > I have a problem when OpenNebula execute ebtables-kvm script.
> > In fact, the log file mention no error "Wed Apr  6 18:22:02 2011 [HKM][D]:
> > Message received: EXECUTE SUCCESS 146 ebtables-start".
> > But there are no rule added to the list rules of ebtables in the physical
> > host where the VM is allocated.
> >
> > ###
> > sudo ebtables -L
> >
> > Bridge table: filter
> >
> > Bridge chain: INPUT, entries: 0, policy: ACCEPT
> >
> > Bridge chain: FORWARD, entries: 0, policy: ACCEPT
> >
> > Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
> > ###
> >
> > And when I execute manually the script on the worker node, the rules are
> > added.
> > In the oned.conf we put this configuration
> >
> > ###
> > VM_HOOK = [
> > name  = "ebtables-start",
> > on= "running",
> > command   = "ebtables-kvm", # or ebtables-xen
> > arguments = "one-$VMID",
> > remote= "yes" ]
> >
> > VM_HOOK = [
> > name  = "ebtables-flush",
> > on= "done",
> > command   = "ebtables-flush",
> > arguments = "",
> > remote= "yes" ]
> > ###
> >
> > can you help me to fix this problem
> >
> > Best Regards
> > Marwen
> >
> >
> >
> >
> > ___
> > 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