[one-users] ebtables does not give anything
Jaime Melis
jmelis at opennebula.org
Thu Oct 27 02:42:56 PDT 2011
Hello Fanttazio,
I'm sorry we couldn't find a solution for this problem. Have you by any
chance tried with OpenNebula 3.0?
Regards,
Jaime
On Mon, Jun 27, 2011 at 2:25 PM, fanttazio <fanttazio at gmail.com> wrote:
> OK here are the things that you wanted.
>
> oned.log:
>
> ##############################
> Mon Jun 27 13:02:32 2011 [ONE][I]: Init OpenNebula Log system
> Mon Jun 27 13:02:32 2011 [ONE][I]: Log Level: 3
> [0=ERROR,1=WARNING,2=INFO,3=DEBUG]
> Mon Jun 27 13:02:32 2011 [ONE][I]: ----------------------------------------
> Mon Jun 27 13:02:32 2011 [ONE][I]: OpenNebula Configuration File
> Mon Jun 27 13:02:32 2011 [ONE][I]: ----------------------------------------
> Mon Jun 27 13:02:32 2011 [ONE][I]:
> ----------------------------------
>
> DB=BACKEND=mysql,DB_NAME=opennebula,PASSWD=oneadmin,PORT=0,SERVER=localhost,USER=oneadmin
> DEBUG_LEVEL=3
> DEFAULT_DEVICE_PREFIX=hd
> DEFAULT_IMAGE_TYPE=OS
> HM_MAD=EXECUTABLE=one_hm
> HOST_MONITORING_INTERVAL=600
> IMAGE_REPOSITORY_PATH=/srv/cloud/one/var//images
> IM_MAD=ARGUMENTS=-r 0 -t 15 kvm,EXECUTABLE=one_im_ssh,NAME=im_kvm
> MAC_PREFIX=02:00
> MANAGER_TIMER=15
> NETWORK_SIZE=254
> PORT=2633
> SCRIPTS_REMOTE_DIR=/var/tmp/one
> TM_MAD=ARGUMENTS=tm_nfs/tm_nfs.conf,EXECUTABLE=one_tm,NAME=tm_nfs
> VM_DIR=/srv/cloud/one/var/
> VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE
>
> VM_HOOK=ARGUMENTS=one-$VMID,COMMAND=/srv/cloud/one/share/hooks/ebtables-kvm,NAME=ebtables-start,ON=running,REMOTE=yes
>
> VM_HOOK=ARGUMENTS="",COMMAND=/srv/cloud/one/share/hooks/ebtables-flush,NAME=ebtables-flush,ON=done,REMOTE=yes
> VM_MAD=ARGUMENTS=-t 15 -r 0
> kvm,DEFAULT=vmm_ssh/vmm_ssh_kvm.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_kvm,TYPE=kvm
> VM_POLLING_INTERVAL=600
> VNC_BASE_PORT=5900
> ----------------------------------
> Mon Jun 27 13:02:32 2011 [ONE][I]: Bootstraping OpenNebula database.
> Mon Jun 27 13:02:32 2011 [VMM][I]: Starting Virtual Machine Manager...
> Mon Jun 27 13:02:32 2011 [LCM][I]: Starting Life-cycle Manager...
> Mon Jun 27 13:02:32 2011 [VMM][I]: Virtual Machine Manager started.
> Mon Jun 27 13:02:32 2011 [LCM][I]: Life-cycle Manager started.
> Mon Jun 27 13:02:32 2011 [InM][I]: Starting Information Manager...
> Mon Jun 27 13:02:32 2011 [InM][I]: Information Manager started.
> Mon Jun 27 13:02:32 2011 [TrM][I]: Starting Transfer Manager...
> Mon Jun 27 13:02:32 2011 [TrM][I]: Transfer Manager started.
> Mon Jun 27 13:02:32 2011 [DiM][I]: Starting Dispatch Manager...
> Mon Jun 27 13:02:32 2011 [DiM][I]: Dispatch Manager started.
> Mon Jun 27 13:02:32 2011 [ReM][I]: Starting Request Manager...
> Mon Jun 27 13:02:32 2011 [ReM][I]: Starting XML-RPC server, port 2633 ...
> Mon Jun 27 13:02:32 2011 [ReM][I]: Request Manager started.
> Mon Jun 27 13:02:32 2011 [HKM][I]: Starting Hook Manager...
> Mon Jun 27 13:02:32 2011 [HKM][I]: Hook Manager started.
> Mon Jun 27 13:02:34 2011 [VMM][I]: Loading Virtual Machine Manager drivers.
> Mon Jun 27 13:02:34 2011 [VMM][I]: Loading driver: vmm_kvm (KVM)
> Mon Jun 27 13:02:34 2011 [VMM][I]: Driver vmm_kvm loaded.
> Mon Jun 27 13:02:34 2011 [InM][I]: Loading Information Manager drivers.
> Mon Jun 27 13:02:34 2011 [InM][I]: Loading driver: im_kvm
> Mon Jun 27 13:02:34 2011 [InM][I]: Driver im_kvm loaded
> Mon Jun 27 13:02:34 2011 [TM][I]: Loading Transfer Manager drivers.
> Mon Jun 27 13:02:34 2011 [VMM][I]: Loading driver: tm_nfs
> Mon Jun 27 13:02:34 2011 [TM][I]: Driver tm_nfs loaded.
> Mon Jun 27 13:02:34 2011 [HKM][I]: Loading Hook Manager driver.
> Mon Jun 27 13:02:34 2011 [HKM][I]: Hook Manager loaded
> Mon Jun 27 13:02:49 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:02:49 2011 [ReM][D]: ClusterPoolInfo method invoked
> Mon Jun 27 13:03:02 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:03:02 2011 [VMM][I]: Monitoring VM 6.
> Mon Jun 27 13:03:02 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:03:02 2011 [VMM][D]: Message received: POLL SUCCESS 6 STATE=a
> NETTX=300 USEDCPU=2.6 USEDMEMORY=262144 NETRX=2236446
>
> Mon Jun 27 13:03:17 2011 [InM][I]: Monitoring host node02 (2)
> Mon Jun 27 13:03:20 2011 [InM][D]: Host 2 successfully monitored.
> Mon Jun 27 13:03:32 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:03:32 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:03:37 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:04:01 2011 [ReM][D]: UserPoolInfo method invoked
> Mon Jun 27 13:04:02 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:04:02 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:04:09 2011 [ReM][D]: VirtualNetworkPoolInfo method invoked
> Mon Jun 27 13:04:17 2011 [ReM][D]: ImagePoolInfo method invoked
> Mon Jun 27 13:04:32 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:04:32 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:04:33 2011 [ReM][D]: VirtualMachineInfo method invoked
> Mon Jun 27 13:04:33 2011 [ReM][D]: VirtualMachineMigrate invoked
> Mon Jun 27 13:04:33 2011 [DiM][D]: Live-migrating VM 2
> Mon Jun 27 13:04:33 2011 [ReM][D]: VirtualMachineInfo method invoked
> Mon Jun 27 13:04:37 2011 [ReM][D]: VirtualMachineInfo method invoked
> Mon Jun 27 13:04:38 2011 [VMM][D]: Message received: MIGRATE SUCCESS 2
>
> Mon Jun 27 13:04:38 2011 [ReM][D]: VirtualMachineInfo method invoked
> Mon Jun 27 13:04:38 2011 [HKM][D]: Message received: EXECUTE SUCCESS 2
> ebtables-start
>
> Mon Jun 27 13:04:49 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:04:53 2011 [ReM][D]: ClusterPoolInfo method invoked
> Mon Jun 27 13:05:02 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:05:02 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:05:32 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:05:32 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:05:49 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:06:02 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:06:02 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:06:12 2011 [ReM][D]: VirtualMachineAllocate invoked
> Mon Jun 27 13:06:15 2011 [ReM][D]: UserPoolInfo method invoked
> Mon Jun 27 13:06:17 2011 [VMM][I]: Monitoring VM 5.
> Mon Jun 27 13:06:17 2011 [VMM][D]: Message received: POLL SUCCESS 5 STATE=a
> NETTX=300 USEDCPU=0.9 USEDMEMORY=1048576 NETRX=2250646
>
> Mon Jun 27 13:06:17 2011 [ReM][D]: VirtualNetworkPoolInfo method invoked
> Mon Jun 27 13:06:27 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:06:32 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:06:32 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:06:32 2011 [ReM][D]: VirtualMachineDeploy invoked
> Mon Jun 27 13:06:32 2011 [DiM][D]: Deploying VM 10
> Mon Jun 27 13:06:32 2011 [TM][D]: Message received: LOG - 10 tm_clone.sh:
> front-end:/srv/cloud/images/ttylinux.img
> node01:/srv/cloud/one/var//10/images/disk.0
>
> Mon Jun 27 13:06:32 2011 [TM][D]: Message received: LOG - 10 tm_clone.sh:
> DST: /srv/cloud/one/var//10/images/disk.0
>
> Mon Jun 27 13:06:32 2011 [TM][D]: Message received: LOG - 10 tm_clone.sh:
> Creating directory /srv/cloud/one/var//10/images
>
> Mon Jun 27 13:06:32 2011 [TM][D]: Message received: LOG - 10 tm_clone.sh:
> Executed "mkdir -p /srv/cloud/one/var//10/images".
>
> Mon Jun 27 13:06:32 2011 [TM][D]: Message received: LOG - 10 tm_clone.sh:
> Executed "chmod a+w /srv/cloud/one/var//10/images".
>
> Mon Jun 27 13:06:32 2011 [TM][D]: Message received: LOG - 10 tm_clone.sh:
> Cloning /srv/cloud/images/ttylinux.img
>
> Mon Jun 27 13:06:32 2011 [TM][D]: Message received: LOG - 10 tm_clone.sh:
> Executed "cp -r /srv/cloud/images/ttylinux.img
> /srv/cloud/one/var//10/images/disk.0".
>
> Mon Jun 27 13:06:32 2011 [TM][D]: Message received: LOG - 10 tm_clone.sh:
> Executed "chmod a+rw /srv/cloud/one/var//10/images/disk.0".
>
> Mon Jun 27 13:06:32 2011 [TM][D]: Message received: TRANSFER SUCCESS 10 -
>
> Mon Jun 27 13:06:33 2011 [ReM][D]: ImagePoolInfo method invoked
> Mon Jun 27 13:06:49 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:06:57 2011 [ReM][D]: ClusterPoolInfo method invoked
> Mon Jun 27 13:07:01 2011 [VMM][D]: Message received: DEPLOY SUCCESS 10
> one-10
>
> Mon Jun 27 13:07:02 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:07:02 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:07:29 2011 [HKM][D]: Message received: EXECUTE SUCCESS 10
> ebtables-start
>
> Mon Jun 27 13:07:32 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:07:32 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:07:47 2011 [VMM][I]: Monitoring VM 3.
> Mon Jun 27 13:07:47 2011 [VMM][D]: Message received: POLL SUCCESS 3 STATE=a
> NETTX=300 USEDCPU=2.6 USEDMEMORY=262144 NETRX=9767297
>
> Mon Jun 27 13:08:01 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:08:02 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:08:02 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:08:25 2011 [ReM][D]: VirtualNetworkPoolInfo method invoked
> Mon Jun 27 13:08:29 2011 [ReM][D]: UserPoolInfo method invoked
> Mon Jun 27 13:08:32 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:08:32 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:08:47 2011 [InM][I]: Monitoring host node03 (1)
> Mon Jun 27 13:08:49 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:08:49 2011 [ReM][D]: ImagePoolInfo method invoked
> Mon Jun 27 13:08:50 2011 [InM][D]: Host 1 successfully monitored.
> Mon Jun 27 13:09:01 2011 [ReM][D]: ClusterPoolInfo method invoked
> Mon Jun 27 13:09:02 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:09:02 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:09:17 2011 [VMM][I]: Monitoring VM 2.
> Mon Jun 27 13:09:17 2011 [VMM][D]: Message received: POLL SUCCESS 2 STATE=a
> NETTX=300 USEDCPU=2.7 USEDMEMORY=262144 NETRX=90
>
> Mon Jun 27 13:09:32 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:09:32 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:10:02 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:10:02 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:10:13 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:10:32 2011 [ReM][D]: HostPoolInfo method invoked
> Mon Jun 27 13:10:32 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jun 27 13:10:33 2011 [ReM][D]: VirtualNetworkPoolInfo method invoked
> Mon Jun 27 13:10:43 2011 [ReM][D]: UserPoolInfo method invoked
> Mon Jun 27 13:10:47 2011 [VMM][I]: Monitoring VM 8.
> Mon Jun 27 13:10:47 2011 [VMM][D]: Message received: POLL SUCCESS 8 STATE=a
> NETTX=19318 USEDCPU=0.9 USEDMEMORY=1048576 NETRX=10673136
> ###############################################
>
> Config file:
>
> ###############################################
> DB=BACKEND=mysql,DB_NAME=opennebula,PORT=0,SERVER=localhost,USER=oneadmin
> DEBUG_LEVEL=3
> DEFAULT_DEVICE_PREFIX=hd
> DEFAULT_IMAGE_TYPE=OS
> HM_MAD=EXECUTABLE=one_hm
> HOST_MONITORING_INTERVAL=600
> IMAGE_REPOSITORY_PATH=/srv/cloud/one/var//images
> IM_MAD=ARGUMENTS=-r 0 -t 15 kvm,EXECUTABLE=one_im_ssh,NAME=im_kvm
> MAC_PREFIX=02:00
> MANAGER_TIMER=15
> NETWORK_SIZE=254
> PORT=2633
> SCRIPTS_REMOTE_DIR=/var/tmp/one
> TM_MAD=ARGUMENTS=tm_nfs/tm_nfs.conf,EXECUTABLE=one_tm,NAME=tm_nfs
> VM_DIR=/srv/cloud/one/var/
> VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE
>
> VM_HOOK=ARGUMENTS=one-$VMID,COMMAND=/srv/cloud/one/share/hooks/ebtables-kvm,NAME=ebtables-start,ON=running,REMOTE=yes
>
> VM_HOOK=ARGUMENTS="",COMMAND=/srv/cloud/one/share/hooks/ebtables-flush,NAME=ebtables-flush,ON=done,REMOTE=yes
> VM_MAD=ARGUMENTS=-t 15 -r 0
> kvm,DEFAULT=vmm_ssh/vmm_ssh_kvm.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_kvm,TYPE=kvm
> VM_POLLING_INTERVAL=600
> VNC_BASE_PORT=5900
> #################################################
>
> VM log:
>
> #################################################
> Mon Jun 27 13:06:32 2011 [DiM][I]: New VM state is ACTIVE.
> Mon Jun 27 13:06:32 2011 [LCM][I]: New VM state is PROLOG.
> Mon Jun 27 13:06:32 2011 [VM][I]: Virtual Machine has no context
> Mon Jun 27 13:06:32 2011 [TM][I]: tm_clone.sh:
> front-end:/srv/cloud/images/ttylinux.img
> node01:/srv/cloud/one/var//10/images/disk.0
> Mon Jun 27 13:06:32 2011 [TM][I]: tm_clone.sh: DST:
> /srv/cloud/one/var//10/images/disk.0
> Mon Jun 27 13:06:32 2011 [TM][I]: tm_clone.sh: Creating directory
> /srv/cloud/one/var//10/images
> Mon Jun 27 13:06:32 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p
> /srv/cloud/one/var//10/images".
> Mon Jun 27 13:06:32 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w
> /srv/cloud/one/var//10/images".
> Mon Jun 27 13:06:32 2011 [TM][I]: tm_clone.sh: Cloning
> /srv/cloud/images/ttylinux.img
> Mon Jun 27 13:06:32 2011 [TM][I]: tm_clone.sh: Executed "cp -r
> /srv/cloud/images/ttylinux.img /srv/cloud/one/var//10/images/disk.0".
> Mon Jun 27 13:06:32 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw
> /srv/cloud/one/var//10/images/disk.0".
> Mon Jun 27 13:06:32 2011 [LCM][I]: New VM state is BOOT
> Mon Jun 27 13:06:32 2011 [VMM][I]: Generating deployment file:
> /srv/cloud/one/var/10/deployment.0
> Mon Jun 27 13:07:01 2011 [LCM][I]: New VM state is RUNNING
> Mon Jun 27 13:07:29 2011 [HKM][I]: Hook ebtables-start successfully
> executed.
> ###################################################
>
> oned -v output:
>
> ###################################################
> Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org)
>
> OpenNebula 2.2 is distributed and licensed for use under the terms of the
> Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0).
> ###################################################
>
> after activating the debug mode in defaultrc file, couple of files were
> created in var folder but all of them are empty.
>
> Regards,
> Fanttazio
>
>
> On Mon, Jun 27, 2011 at 11:32 AM, Jaime Melis <j.melis at gmail.com> wrote:
>
>> Hi Fanttazio,
>>
>> Could you send us a few things in order to see what's going on?
>> - /srv/cloud/one/var/config (remove any passwords in that file)
>> - set ONE_MAD_DEBUG=1 in /srv/cloud/one/etc/defaultrc, restart
>> OpenNebula, relaunch the vm and send us the error that will appear on
>> oned.log
>> - the version: oned -v
>>
>> Regards,
>> Jaime
>>
>> On Fri, Jun 24, 2011 at 3:33 PM, fanttazio <fanttazio at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I am trying to use ebtables hook but despite it gives no error on
>>> oned.log and it says that *execute success ebtables-start* for every VM
>>> that I create but in hosts when I execute ebtables -L the entries are empty.
>>> when I try to execute ebtables-kvm manually on hosts it gives me this error:
>>> *Comand 'dumxml' requires <domain> option.*
>>> */srv/cloud/one/share/hooks/ebtables-kvm:75: undefined nethod 'elements'
>>> for nil:NilClass (NoMethodError)*
>>> *
>>> *
>>> anybody knows what's wrong with my setting?
>>>
>>> Regards,
>>> Fanttazio
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>
>
--
Jaime Melis
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | jmelis at opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111027/48706788/attachment-0002.htm>
More information about the Users
mailing list