<div dir="ltr">Hello,<div><br></div><div style>I know that previous versions of opennebula required openvswitch-brcompat </div><div style><br></div><div style>>> <a href="http://opennebula.org/documentation:rel3.8:openvswitch#hosts_configuration">http://opennebula.org/documentation:rel3.8:openvswitch#hosts_configuration</a></div>
<div style><br></div><div style>but the 4.0 docs seem to indicate that with KVM brcompat is not required:</div><div style><br></div><div style>>> <a href="http://opennebula.org/documentation:rel4.0:openvswitch#ovswitch_and_ovswitch_brcompat">http://opennebula.org/documentation:rel4.0:openvswitch#ovswitch_and_ovswitch_brcompat</a></div>
<div style><br></div><div style>Anyway, I did install the openvswitch-brcompat package, but got the same error.</div><div style>(looking at the docs now, it seems that you have to tell the OpenNebula to use a different openvswitch driver, </div>
<div style>specifically openvswitch_brcompat, so I think this test may have been incomplete)</div><div style><br></div><div style>Then I attempted to run the ovs command at the command line, when I do so, I get the following error:</div>
<div style><br></div><div style>>> root@loki:~# sudo /usr/bin/ovs-ofctl add-flow ovsbr0 in_port=,dl_src=02:00:44:47:83:44,priority=40000,actions=normal</div><div>>> ovs-ofctl: dl_src=02:00:44:47:83:44: bad syntax for in_port</div>
<div><br></div><div style>I think this might be the root cause of the issue? Where is "in_port" defined? </div><div style>I don't see it in the onevnet template, but that doesn't mean I didn't just miss it.</div>
<div style><br></div><div style>One other question I had while going through the docs again, I see on the openvswitch page:</div><div style><br></div><div style>>> The sudoers file must be configured so oneadmin can execute ovs_vsctl in the hosts.</div>
<div style><br></div><div style>How do you recommend doing this? I thought the oneadmin was set up to execute commands with sudo when installing the packages...</div><div style>I didn't see the oneadmin user in any of the sudo groups (sudoers, wheel, root) so I added the </div>
<div style><br></div><div style>I did add the oneadmin user to the sudo group also without any success:</div><div style><br></div><div style>>> root@loki:~# addgroup oneadmin sudo</div><div>>> Adding user `oneadmin' to group `sudo' ...</div>
<div>>> Adding user oneadmin to group sudo</div><div>>> Done.</div><div style><br></div><div style>The only thing else I can think to do would be to set no passwords in the sudoers file:</div><div style><br>
</div><div style>>> oneadmin ALL=NOPASSWD: ALL</div><div style><br></div><div style>But this seems less than ideal. Also, I think the incorrect syntax is the root cause of the issue, if there are other issues.</div>
<div style><br></div><div style>What steps can I try next?</div><div style><br></div><div style>Thanks,</div><div style>Jon A</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 28, 2013 at 2:56 PM, Jaime Melis <span dir="ltr"><<a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">3) Documentation<div><br></div><div>The fact that install_novnc.sh is being installed to two separate locations is a bug that has already been fixed.</div>
<div><br></div><div>With regard to the "/usr/share/opennebula" issue, I'm afraid that's because of the Debian/Ubuntu packaging policy. For other distros (CentOS and openSUSE for example) the path is the one that appears in the documentation.</div>
<div><br></div><div>To makes things easier for users I think this should be reflected in the README.debian file, and in the platform notes in the documentation. So thanks a lot for pointing this out.</div><div>
<br></div><div>I created this feature to follow this problem:</div><div><a href="http://dev.opennebula.org/issues/1844" target="_blank">http://dev.opennebula.org/issues/1844</a><br></div><div><br></div><div>cheers,<br>
Jaime</div><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 28, 2013 at 1:06 PM, Jon <span dir="ltr"><<a href="mailto:three18ti@gmail.com" target="_blank">three18ti@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hello All,<br>
<br>
I've just installed OpenNebula 3.9.80 and I have to say this is<br>
amazing. Everything works so smoothly.<br>
<br>
Anyway, down to business.<br>
<br>
OpenVSwitch:<br>
<br>
I've installed and configured OpenVSwitch and am able to manually add<br>
the OVS config using libvirt, then launch a VM,<br>
<br>
>> <interface type='bridge'><br>
>> <source bridge='ovsbr0'/><br>
>> <virtualport type='openvswitch'><br>
>> </virtualport><br>
>> <model type='virtio'/><br>
>> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/><br>
>> </interface><br>
<br>
Which creates the device in ovs:<br>
<br>
>> system@ovsbr0:<br>
>> lookups: hit:1346333 missed:46007 lost:0<br>
>> flows: 8<br>
>> port 0: ovsbr0 (internal)<br>
>> port 1: eth0<br>
>> port 2: br0 (internal)<br>
>> port 7: vnet0<br>
<br>
<br>
However, when I attempt to create a virtual network without assigning<br>
an IP and instantiate the template I get the error:<br>
<br>
>> [TemplateInstantiate] Error allocating a new virtual machine. Cannot get IP/MAC lease from virtual network 0.<br>
<br>
The template of the virtual network is:<br>
<br>
>> oneadmin@loki:~$ onevnet show testnet1<br>
>> VIRTUAL NETWORK 0 INFORMATION<br>
>> ID : 0<br>
>> NAME : testnet1<br>
>> USER : oneadmin<br>
>> GROUP : oneadmin<br>
>> CLUSTER : -<br>
>> TYPE : FIXED<br>
>> BRIDGE : ovsbr0<br>
>> VLAN : No<br>
>> USED LEASES : 0<br>
>><br>
>> PERMISSIONS<br>
>> OWNER : um-<br>
>> GROUP : ---<br>
>> OTHER : ---<br>
>><br>
>> VIRTUAL NETWORK TEMPLATE<br>
>><br>
>><br>
>> VIRTUAL MACHINES<br>
>><br>
<br>
If I add an IP to the vnet, I get the following template and error<br>
logs (full vm log attached, I think I've identified the relevant<br>
line):<br>
<br>
>> Thu Mar 28 10:34:05 2013 [VMM][E]: post: Command "sudo /usr/bin/ovs-ofctl add-flow ovsbr0 in_port=,dl_src=02:00:44:47:83:43,priority=40000,actions=normal" failed.<br>
<br>
>> oneadmin@loki:~$ onevnet show testnet1<br>
>> VIRTUAL NETWORK 0 INFORMATION<br>
>> ID : 0<br>
>> NAME : testnet1<br>
>> USER : oneadmin<br>
>> GROUP : oneadmin<br>
>> CLUSTER : -<br>
>> TYPE : FIXED<br>
>> BRIDGE : ovsbr0<br>
>> VLAN : No<br>
>> USED LEASES : 1<br>
>><br>
>> PERMISSIONS<br>
>> OWNER : um-<br>
>> GROUP : ---<br>
>> OTHER : ---<br>
>><br>
>> VIRTUAL NETWORK TEMPLATE<br>
>><br>
>><br>
>> USED LEASES<br>
>> LEASE=[ MAC="02:00:44:47:83:43", IP="192.168.0.2", IP6_LINK="fe80::400:44ff:fe47:8343", USED="1", VID="7" ]<br>
>><br>
>> VIRTUAL MACHINES<br>
>><br>
>> ID USER GROUP NAME STAT UCPU UMEM HOST TIME<br>
>> 7 oneadmin oneadmin template-4-7 fail 0 0K 0d 00h00<br>
<br>
>> root@loki:~# cat /var/log/openvswitch/ovs-vswitchd.log<br>
>> Mar 28 10:34:04|00081|bridge|INFO|created port vnet1 on bridge ovsbr0<br>
>> Mar 28 10:34:07|00082|netdev_linux|WARN|ethtool command ETHTOOL_GSET on network device vnet1 failed: No such device<br>
>> Mar 28 10:34:07|00083|netdev_linux|INFO|ioctl(SIOCGIFHWADDR) on vnet1 device failed: No such device<br>
>> Mar 28 10:34:07|00084|netdev|WARN|failed to get flags for network device vnet1: No such device<br>
>> Mar 28 10:34:07|00085|netdev|WARN|failed to retrieve MTU for network device vnet1: No such device<br>
>> Mar 28 10:34:07|00086|netdev|WARN|failed to get flags for network device vnet1: No such device<br>
>> Mar 28 10:34:07|00087|bridge|INFO|destroyed port vnet1 on bridge ovsbr0<br>
<br>
I attempted to run the command but I never set a password for the<br>
oneadmin user, but I don't think it's a permissions / sudo access<br>
problem.<br>
<br>
Not really sure where to look next. Any ideas are appreciated.<br>
<br>
CEPH:<br>
<br>
I'm trying to use a Ceph datastore with a RBD instead of a cephFS<br>
(it's an option).<br>
When I try to create a Ceph datastore with a RBD type, I get a state<br>
of "Error",<br>
but I'm not sure where to look for relevant logs, oned.log didn't seem<br>
to have anything,<br>
or maybe I'm just grepping for the wrong string.<br>
<br>
As a work around, I have been creating the directory, creating the rbd<br>
then manually mounting it,<br>
this seems to work in my test environment, but doesn't seem very<br>
scalable, how are others using CEPH?<br>
<br>
Documentation:<br>
<br>
I've noticed some errors in the documentation, namely the location of<br>
the install scripts,<br>
<br>
The docs state they are in:<br>
>> /usr/share/one/install_gems<br>
>> /usr/share/one/sunstone/install_novnc.sh<br>
<br>
However, I found them in:<br>
>> /usr/share/opennebula/install_gems<br>
>> /usr/share/opennebula/install_novnc.sh<br>
>> /usr/share/opennebula/sunstone/install_novnc.sh<br>
<br>
Is there some repository of the documentation somewhere that we can<br>
contribute to?<br>
It's a small thing, but when I'm going through the instructions, I<br>
like to copy / paste;<br>
I figured it out, but I know if it caused me problems, it might cause<br>
others problems too.<br>
<br>
Thanks again, I can't wait for the final release of OpenNebula!<br>
<br>
Best Regards,<br>
Jon A<br>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a>
</div></div></div></div>
</blockquote></div><br></div>