[one-users] Problem with ebtables-kvm script.

Gianni Dalla Torre gianni.dallatorre at cnaf.infn.it
Wed Nov 25 06:02:04 PST 2009


Hi all,

I update my installation to the last 1.3.90 openNenbula version, and I'm trying to give some public Ip to my VM. using Bridged networking and the scripts 
included in the last release.

But I have a problem with this script:
/srv/cloud/one/share/hooks/ebtables-kvm

This is the log I have:
Wed Nov 25 12:41:45 2009 [VMM][D]: Message received: DEPLOY SUCCESS 36 one-36
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: LOG - 36 Command execution fail: '/srv/cloud/one/share/hooks/ebtables-kvm start one-36'
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: LOG - 36 STDERR follows.
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: LOG - 36 error: failed to get domain 'start'
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: LOG - 36 error: Domain not found: no domain with matching name 'start'
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: LOG - 36 /usr/lib/ruby/1.8/rexml/encoding.rb:47: command not found: brctl show
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: LOG - 36 /srv/cloud/one/share/hooks/ebtables-kvm:36:in `get_bridges': undefined method `each' for nil:NilClass (NoMethodError)
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: LOG - 36 from /srv/cloud/one/share/hooks/ebtables-kvm:50:in `get_interfaces'
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: LOG - 36 from /srv/cloud/one/share/hooks/ebtables-kvm:62
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: LOG - 36 ExitCode: 1
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: EXECUTE FAILURE 36 ebtables-running
Wed Nov 25 12:42:10 2009 [VMM][I]: Monitoring VM 36.
Wed Nov 25 12:42:11 2009 [VMM][D]: Message received: POLL SUCCESS 36  STATE=a USEDMEMORY=524288
Wed Nov 25 12:42:19 2009 [InM][D]: Host 4 successfully monitored.

I also had a go changing the assignation of argv[0] to argv [1] inside the script, but it didn't work.

This are some information about my host configuration:

I configured an OpenNebula (v 1.3.90) front-end in my pc "solaris" (Ubuntu 9.04) and installed a cluster node "omii001" (Scientific Linux CERN SLC
release 2.6.18-164.6.1.el5 x86_64).
I need to access my VM through ssh, so I used the Bridged networking("shared physical device") following this instructions:
http://www.opennebula.org/doku.php?id=documentation:rel1.4:nm

oneadmin at omii001$ brctl show
bridge name	bridge id		STP enabled	interfaces
br0		8000.0015c5edbf17	no		vnet0
							eth0
virbr0		8000.000000000000	yes	

Setting ifcfg-eth0 and ifcfg-br0 in this way:

oneadmin at omii001$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet
DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=00:15:C5:ED:BF:17
IPADDR=131.154.100.175
NETMASK=255.255.255.0
ONBOOT=yes
BRIDGE=br0

oneadmin at omii001$ cat /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge
BOOTPROTO=dhcp
ONBOOT=yes
DELAY=0

And this is the template of the VM:

#---------------------------------------
# VM definition example
#---------------------------------------
NAME	= two
CPU	= 1 
MEMORY	= 512
# --- kernel & boot device ---
OS	= [ boot   = hd]
# --- 1 disks ---
DISK	= [
	source   = "/srv/cloud/one/images/debian5.img",
	target   = "vda",
	readonly = "no" ]
# --- I/O ---
GRAPHICS= [
        type    = "vnc",
        listen  = "127.0.0.1",
        port    = "1"]
# --- 2 NIC ---
#NIC	= [ NETWORK = "OpenNebulaLAN",
#	BRIDGE  = "wlan0" ]
NIC     = [ NETWORK = "PublicVLAN",
        BRIDGE  = "br0" ]
SAVE	= yes

Some other information about my configuration are in the previous mail:
http://lists.opennebula.org/pipermail/users-opennebula.org/2009-November/001202.html

If someone have some advice, I would really appreciate it.

Best regards,
Gianni.


|-----|
|NOTE:|
|-----|
I'm not sure if it could be related, but when I compiled opennebula I had problems with some dependencies, but anyway the installation seems to work.
( I'm sure I installed all the the software dependencies listed in the "Platform Notes 1.4" page). I also read some other people had the same issue in the past, but I
cannot find the solution and neither any package for Ubuntu that satisfies the requirements.

oneadmin at solaris:~/one-1.3.90$ sudo scons
scons: Reading SConscript files ...
Testing recipe: pkg-config
  Error calling pkg-config xmlrpc_server_abyss++ --static --libs
Testing recipe: xmlrpc-c-config
g++ .xmlrpc_test/xmlrpc_test.a7469a.cc -o .xmlrpc_test/xmlrpc_test.a7469a.cc.out -L/usr/lib  -lxmlrpc_server_abyss++ -lxmlrpc_server++ -lxmlrpc_server_abyss -lxmlrpc_server -lxmlrpc_abyss  -lpthread -lxmlrpc++ -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok  -I/usr/include 1>>.xmlrpc_test/xmlrpc_test.a7469a.cc.log 2>&1

Testing recipe: pkg-config
  Error calling pkg-config xmlrpc_client++ xmlrpc++ --libs
Testing recipe: xmlrpc-c-config
g++ .xmlrpc_test/xmlrpc_test.2781fc.cc -o .xmlrpc_test/xmlrpc_test.2781fc.cc.out -L/usr/lib  -lxmlrpc_client++ -lcurl -lgssapi_krb5 -lxmlrpc_client -lxmlrpc++ -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok -Wl,--rpath -Wl,/usr/lib  -I/usr/include 1>>.xmlrpc_test/xmlrpc_test.2781fc.cc.log 2>&1

Testing recipe: pkg-config
  Error calling pkg-config xmlrpc_server_abyss++ --static --libs
Testing recipe: xmlrpc-c-config
g++ .xmlrpc_test/xmlrpc_test.6d95be.cc -o .xmlrpc_test/xmlrpc_test.6d95be.cc.out -L/usr/lib  -lxmlrpc_server_abyss++ -lxmlrpc_server++ -lxmlrpc_server_abyss -lxmlrpc_server -lxmlrpc_abyss  -lpthread -lxmlrpc++ -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok  -I/usr/include 1>>.xmlrpc_test/xmlrpc_test.6d95be.cc.log 2>&1

Testing recipe: pkg-config
  Error calling pkg-config xmlrpc_client++ xmlrpc++ --libs
Testing recipe: xmlrpc-c-config
g++ .xmlrpc_test/xmlrpc_test.ce42a1.cc -o .xmlrpc_test/xmlrpc_test.ce42a1.cc.out -L/usr/lib  -lxmlrpc_client++ -lcurl -lgssapi_krb5 -lxmlrpc_client -lxmlrpc++ -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok -Wl,--rpath -Wl,/usr/lib  -I/usr/include 1>>.xmlrpc_test/xmlrpc_test.ce42a1.cc.log 2>&1

scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
scons: done building targets.

-- 
Gianni Dalla Torre
Computer Science Engineering

INFN -CNAF
Via Ranzani 13/2
40127 Bologna, Italy
Phone:	+39 051 6092913
Fax:	+39 051 6092916
mail:	dallatorre&cnaf.infn.it





More information about the Users mailing list