<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="monospace">Hi Jamie,<br>
<br>
I'm still stuck..<br>
The virtual machines deployed by kvm-opennebula driver have this rights:<br>
-rw------- 1 root root 11 Dec  2 15:38 /var/run/libvirt/qemu/one-50.pid<br>
I suppose there is something wrong because with this settings I can't
see the VM as oneadmin, in fact:<br>
<br>
oneamdin@omii001$ virsh list<br>
16:24:54.622: error : No vport operation path found for host1<br>
16:24:54.637: error : No vport operation path found for host0<br>
16:24:54.658: error : No vport operation path found for host2<br>
16:24:54.715: warning : Cannot set group when not running as root<br>
 Id Name                 State<br>
----------------------------------<br>
<br>
</font><font face="monospace">oneamdin@omii001</font><font
 face="monospace">$ sudo virsh list<br>
 Id Name                 State<br>
----------------------------------<br>
  4 one-50               running<br>
<br>
Where and by who the VM are deployed?</font><font face="monospace"><br>
<br>
This is my report:<br>
<br>
Fri Dec 11 15:38:34 2009 [VMM][D]: Message received: DEPLOY SUCCESS 50
one-50<br>
Fri Dec 11 15:39:01 2009 [VMM][I]: Monitoring VM 50.<br>
Fri Dec 11 15:39:02 2009 [VMM][D]: Message received: POLL SUCCESS 50 
STATE=a USEDMEMORY=524288<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: LOG - 50 Command
execution fail: '/srv/cloud/one/share/hooks/ebtables-kvm one-50'<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: LOG - 50 STDERR
follows.<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: LOG - 50
15:37:27.779: error : No vport operation path found for host1<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: LOG - 50
15:37:27.795: error : No vport operation path found for host0<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: LOG - 50
15:37:27.817: error : No vport operation path found for host2<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: LOG - 50
15:37:27.877: warning : Cannot set group when not running as root<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: LOG - 50
15:37:28.064: error : Domain not found: no domain with matching name
'one-50'<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: LOG - 50 libvir:
QEMU error : Domain not found: no domain with matching name 'one-50'<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: LOG - 50 error:
failed to get domain 'one-50'<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: LOG - 50 error:
Domain not found: no domain with matching name 'one-50'<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: LOG - 50
/usr/lib/ruby/1.8/rexml/encoding.rb:47: command not found: brctl show<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: LOG - 50
/srv/cloud/one/share/hooks/ebtables-kvm:36:in `get_bridges': undefined
method `each' for nil:Ni<br>
lClass (NoMethodError)<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: LOG - 50 from
/srv/cloud/one/share/hooks/ebtables-kvm:50:in `get_interfaces'<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: LOG - 50 from
/srv/cloud/one/share/hooks/ebtables-kvm:62<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: LOG - 50 ExitCode:
1<br>
Fri Dec 11 15:39:05 2009 [HKM][D]: Message received: EXECUTE FAILURE 50
ebtables-running<br>
</font><br>
<font face="monospace">Thanks in advance for the help.<br>
<br>
Regards,<br>
Gianni<br>
<br>
</font><font face="monospace"><br>
<br>
On 30/11/2009 12:04, Jaime Melis wrote:</font>
<blockquote
 cite="mid:b08f20eb0911300304s154a4f58pf966ef5b1429eb4f@mail.gmail.com"
 type="cite"><font face="monospace">Hi Gianni,<br>
I have updated the documentation for the new set of ebtables scripts:<br>
  <br>
  <a moz-do-not-send="true"
 href="http://opennebula.org/doku.php?id=documentation:rel1.4:nm">http://opennebula.org/doku.php?id=documentation:rel1.4:nm</a><br>
  <br>
Regarding your problems, please verify the following things:<br>
  <br>
* you have properly set the VM_HOOK configuration in oned.conf,
especially the remote = "yes" option, and restarted one.<br>
* brctl is installed in your worker nodes<br>
* oneadmin user has permissions to execute "sudo ebtables" and "sudo
virsh" in the worker nodes.<br>
  <br>
regards,<br>
Jaime<br>
  <br>
  </font>
  <div class="gmail_quote"><font face="monospace">On Thu, Nov 26, 2009
at 4:58 PM, Gianni Dalla Torre <span dir="ltr"><<a
 moz-do-not-send="true" href="mailto:gianni.dallatorre@cnaf.infn.it">gianni.dallatorre@cnaf.infn.it</a>></span>
wrote:</font><br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">
    <div>
    <div class="h5"><tt>Hi Jaime,<br>
    <br>
thank you for the support, I changed the oned.conf, but I still have
problems (using argv[1] in the script, was the same to omit start
indeed).<br>
Checking the vm.</tt><tt>log seems monitor information has some
problems:</tt><br>
    <tt><br>
Thu Nov 26 14:29:01 2009 [LCM][I]: New VM state is BOOT<br>
Thu Nov 26 14:29:01 2009 [VMM][I]: Generating deployment file:
/srv/cloud/one/var/38/deployment.0<br>
Thu Nov 26 14:29:03 2009 [LCM][I]: New VM state is RUNNING<br>
Thu Nov 26 14:29:20 2009 [VMM][D]: Monitor Information:<br>
        CPU   : -1<br>
        Memory: 524288<br>
        Net_TX: -1<br>
        Net_RX: -1<br>
Thu Nov 26 14:29:33 2009 [HKM][I]: Command execution fail:
'/srv/cloud/one/share/hooks/ebtables-kvm one-38'<br>
Thu Nov 26 14:29:33 2009 [HKM][I]: STDERR follows.<br>
Thu Nov 26 14:29:33 2009 [HKM][I]: 14:29:03.836: error : No vport
operation path found for host1<br>
Thu Nov 26 14:29:33 2009 [HKM][I]: 14:29:03.851: error : No vport
operation path found for host0<br>
Thu Nov 26 14:29:33 2009 [HKM][I]: 14:29:03.872: error : No vport
operation path found for host2<br>
Thu Nov 26 14:29:33 2009 [HKM][I]: 14:29:03.929: warning : Cannot set
group when not running as root<br>
Thu Nov 26 14:29:33 2009 [HKM][I]: 14:29:04.119: error : Domain not
found: no domain with matching name 'one-38'<br>
Thu Nov 26 14:29:33 2009 [HKM][I]: libvir: QEMU error : Domain not
found: no domain with matching name 'one-38'<br>
Thu Nov 26 14:29:33 2009 [HKM][I]: error: failed to get domain 'one-38'<br>
Thu Nov 26 14:29:33 2009 [HKM][I]: error: Domain not found: no domain
with matching name 'one-38'<br>
Thu Nov 26 14:29:33 2009 [HKM][I]:
/usr/lib/ruby/1.8/rexml/encoding.rb:47: command not found: brctl show<br>
Thu Nov 26 14:29:33 2009 [HKM][I]:
/srv/cloud/one/share/hooks/ebtables-kvm:36:in `get_bridges': undefined
method `each' for nil:NilClass (NoMethodError)<br>
Thu Nov 26 14:29:33 2009 [HKM][I]: from
/srv/cloud/one/share/hooks/ebtables-kvm:50:in `get_interfaces'<br>
Thu Nov 26 14:29:33 2009 [HKM][I]: from
/srv/cloud/one/share/hooks/ebtables-kvm:62<br>
Thu Nov 26 14:29:33 2009 [HKM][I]: ExitCode: 1<br>
Thu Nov 26 14:29:33 2009 [HKM][E]: Error executing Hook:
ebtables-running.<br>
    <br>
Any other suggestions?<br>
    <br>
regards,<br>
Gianni<br>
    <br>
    <br>
    </tt><tt>Jaime</tt><tt> Melis wrote:</tt>
    </div>
    </div>
    <div>
    <div class="h5">
    <blockquote type="cite"><tt>Hello Gianni,<br>
I'm afraid the documentation section related to the isolation of
networks has not yet been properly updated  (<a moz-do-not-send="true"
 href="http://opennebula.org/doku.php?id=documentation:rel1.4:nm"
 target="_blank">http://opennebula.org/doku.php?id=documentation:rel1.4:nm</a>).<br>
      <br>
Please allow me one or two days to update the relevant section.<br>
      <br>
In the meantime try with the following confiuration:<br>
      <br>
The "oned.conf" should be:<br>
      <br>
arguments = "one-$VMID",<br>
instead of <br>
arguments = "start one-$VMID",<br>
      <br>
so please go ahead and change that in your oned.conf.<br>
      <br>
As soon as I finish updating the configuration I will let you know.<br>
      <br>
      <br>
Thanks for your feedback.<br>
      <br>
regards,<br>
Jaime<br>
      <br>
      <br>
      <br>
      </tt>
      <div class="gmail_quote"><tt>On Wed, Nov 25, 2009 at 3:02 PM,
Gianni
Dalla Torre <span dir="ltr"><<a moz-do-not-send="true"
 href="mailto:gianni.dallatorre@cnaf.infn.it" target="_blank">gianni.dallatorre@cnaf.infn.it</a>></span>
wrote:<br>
      </tt>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><tt>Hi
all,<br>
        <br>
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.<br>
        <br>
But I have a problem with this script:<br>
/srv/cloud/one/share/hooks/ebtables-kvm<br>
        <br>
This is the log I have:<br>
Wed Nov 25 12:41:45 2009 [VMM][D]: Message received: DEPLOY SUCCESS 36
one-36<br>
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'<br>
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: LOG - 36 STDERR
follows.<br>
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: LOG - 36 error:
failed to get domain 'start'<br>
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: LOG - 36 error:
Domain not found: no domain with matching name 'start'<br>
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<br>
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)<br>
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'<br>
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: LOG - 36 from
/srv/cloud/one/share/hooks/ebtables-kvm:62<br>
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: LOG - 36 ExitCode:
1<br>
Wed Nov 25 12:41:46 2009 [HKM][D]: Message received: EXECUTE FAILURE 36
ebtables-running<br>
Wed Nov 25 12:42:10 2009 [VMM][I]: Monitoring VM 36.<br>
Wed Nov 25 12:42:11 2009 [VMM][D]: Message received: POLL SUCCESS 36
 STATE=a USEDMEMORY=524288<br>
Wed Nov 25 12:42:19 2009 [InM][D]: Host 4 successfully monitored.<br>
        <br>
I also had a go changing the assignation of argv[0] to argv [1] inside
the script, but it didn't work.<br>
        <br>
This are some information about my host configuration:<br>
        <br>
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<br>
release 2.6.18-164.6.1.el5 x86_64).<br>
I need to access my VM through ssh, so I used the Bridged
networking("shared physical device") following this instructions:<br>
        <a moz-do-not-send="true"
 href="http://www.opennebula.org/doku.php?id=documentation:rel1.4:nm"
 target="_blank">http://www.opennebula.org/doku.php?id=documentation:rel1.4:nm</a><br>
        <br>
oneadmin@omii001$ brctl show<br>
bridge name     bridge id               STP enabled     interfaces<br>
br0             8000.0015c5edbf17       no              vnet0<br>
                                                       eth0<br>
virbr0          8000.000000000000       yes     <br>
        <br>
Setting ifcfg-eth0 and ifcfg-br0 in this way:<br>
        <br>
oneadmin@omii001$ cat /etc/sysconfig/network-scripts/ifcfg-eth0<br>
# Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet<br>
DEVICE=eth0<br>
BOOTPROTO=static<br>
DHCPCLASS=<br>
HWADDR=00:15:C5:ED:BF:17<br>
IPADDR=131.154.100.175<br>
NETMASK=255.255.255.0<br>
ONBOOT=yes<br>
BRIDGE=br0<br>
        <br>
oneadmin@omii001$ cat /etc/sysconfig/network-scripts/ifcfg-br0<br>
DEVICE=br0<br>
TYPE=Bridge<br>
BOOTPROTO=dhcp<br>
ONBOOT=yes<br>
DELAY=0<br>
        <br>
And this is the template of the VM:<br>
        <br>
#---------------------------------------<br>
# VM definition example<br>
#---------------------------------------<br>
NAME    = two<br>
CPU     = 1 MEMORY  = 512<br>
# --- kernel & boot device ---<br>
OS      = [ boot   = hd]<br>
# --- 1 disks ---<br>
DISK    = [<br>
       source   = "/srv/cloud/one/images/debian5.img",<br>
       target   = "vda",<br>
       readonly = "no" ]<br>
# --- I/O ---<br>
GRAPHICS= [<br>
      type    = "vnc",<br>
      listen  = "127.0.0.1",<br>
      port    = "1"]<br>
# --- 2 NIC ---<br>
#NIC    = [ NETWORK = "OpenNebulaLAN",<br>
#       BRIDGE  = "wlan0" ]<br>
NIC     = [ NETWORK = "PublicVLAN",<br>
      BRIDGE  = "br0" ]<br>
SAVE    = yes<br>
        <br>
Some other information about my configuration are in the previous mail:<br>
        <a moz-do-not-send="true"
 href="http://lists.opennebula.org/pipermail/users-opennebula.org/2009-November/001202.html"
 target="_blank">http://lists.opennebula.org/pipermail/users-opennebula.org/2009-November/001202.html</a><br>
        <br>
If someone have some advice, I would really appreciate it.<br>
        <br>
Best regards,<br>
Gianni.<br>
        <br>
        <br>
|-----|<br>
|NOTE:|<br>
|-----|<br>
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.<br>
( 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<br>
cannot find the solution and neither any package for Ubuntu that
satisfies the requirements.<br>
        <br>
        <a moz-do-not-send="true"
 href="mailto:oneadmin@solaris:%7E/one-1.3.90$" target="_blank">oneadmin@solaris:~/one-1.3.90$</a>
sudo scons<br>
scons: Reading SConscript files ...<br>
Testing recipe: pkg-config<br>
 Error calling pkg-config xmlrpc_server_abyss++ --static --libs<br>
Testing recipe: xmlrpc-c-config<br>
g++ .xmlrpc_test/<a moz-do-not-send="true"
 href="http://xmlrpc_test.a7469a.cc" target="_blank">xmlrpc_test.a7469a.cc</a>
-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<br>
        <br>
Testing recipe: pkg-config<br>
 Error calling pkg-config xmlrpc_client++ xmlrpc++ --libs<br>
Testing recipe: xmlrpc-c-config<br>
g++ .xmlrpc_test/<a moz-do-not-send="true"
 href="http://xmlrpc_test.2781fc.cc" target="_blank">xmlrpc_test.2781fc.cc</a>
-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<br>
        <br>
Testing recipe: pkg-config<br>
 Error calling pkg-config xmlrpc_server_abyss++ --static --libs<br>
Testing recipe: xmlrpc-c-config<br>
g++ .xmlrpc_test/<a moz-do-not-send="true"
 href="http://xmlrpc_test.6d95be.cc" target="_blank">xmlrpc_test.6d95be.cc</a>
-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<br>
        <br>
Testing recipe: pkg-config<br>
 Error calling pkg-config xmlrpc_client++ xmlrpc++ --libs<br>
Testing recipe: xmlrpc-c-config<br>
g++ .xmlrpc_test/<a moz-do-not-send="true"
 href="http://xmlrpc_test.ce42a1.cc" target="_blank">xmlrpc_test.ce42a1.cc</a>
-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<br>
        <br>
scons: done reading SConscript files.<br>
scons: Building targets ...<br>
scons: `.' is up to date.<br>
scons: done building targets.<br>
        <br>
-- <br>
Gianni Dalla Torre<br>
        </tt></blockquote>
      </div>
    </blockquote>
    <tt><br>
    <br>
-- <br>
Gianni Dalla Torre<br>
Computer Science Engineering<br>
    <br>
INFN -CNAF<br>
Via Ranzani 13/2<br>
40127 Bologna, Italy<br>
Phone: +39 051 6092913<br>
Fax: +39 051 6092916<br>
mail: dallatorre&<a moz-do-not-send="true"
 href="http://cnaf.infn.it" target="_blank">cnaf.infn.it</a><br>
    <br>
    </tt>
    </div>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
</blockquote>
</body>
</html>