Re: [Users] oVIrt 3.1 - Network Bonding

2012-08-13 Thread Justin Clift
On 13/08/2012, at 10:55 PM, Ricardo Esteves wrote:
> Hi,
> 
> I the attached picture "net1.jpg" i have my initial network configuration.
> 
> Physical card (em1) with vlan 10 (em1.10) bridged to the ovirtmgmt with IP 
> 192.168.10.25 and default gw 192.168.10.254. 
> 
> Now i want to bond em1 card with p1p1 card (attached picture net2.jpg)
> 
> But if i fill the default gw it gives me this error: The default gateway 
> should be set only on engine network.
> 
> If i don't fill the default gw, when i click ok, i loose connection to the 
> server and then after more or less 1 minute the server automaticaly reboots.
> 
> Anyone had this kind of problem?

Two thoughts here: ;)

 * The "lose connection to the server" bit sort of sounds like
   this bug:

 https://bugzilla.redhat.com/show_bug.cgi?id=838816

   Reckon that's a match?


 * Aside from that, you might have to manually configure
   networking for the hosts from the command line.  Using the
   normal Linux commands I mean, not oVirt specific ones.

 i.e. creating the bridging and everything manually.

   This is the approach I had to take last week when trying
   out Aeolus with oVirt 3.1.  Network layer breaks when
   adding a 2nd interface, but was able to work around it
   by manually creating the bridges from cli, after having
   defined the logical networks in the oVirt Web UI.

The "configure things manually" approach isn't all that
documented either.  I kind of stumbled my way through, by
looking at the examples here:

  
http://wiki.ovirt.org/wiki/Installing_VDSM_from_rpm#Configuring_the_bridge_Interface

Is any of that helpful?

Regards and best wishes,

Justin Clift


> Best regards,
> Ricardo Esteves.

--
Aeolus Community Manager
http://www.aeolusproject.org

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] oVIrt 3.1 - Network Bonding

2012-08-13 Thread Karli Sjöberg

13 aug 2012 kl. 23.56 skrev Justin Clift:

On 13/08/2012, at 10:55 PM, Ricardo Esteves wrote:
Hi,

I the attached picture "net1.jpg" i have my initial network configuration.

Physical card (em1) with vlan 10 (em1.10) bridged to the ovirtmgmt with IP 
192.168.10.25 and default gw 192.168.10.254.

Now i want to bond em1 card with p1p1 card (attached picture net2.jpg)

But if i fill the default gw it gives me this error: The default gateway should 
be set only on engine network.

If i don't fill the default gw, when i click ok, i loose connection to the 
server and then after more or less 1 minute the server automaticaly reboots.

Anyone had this kind of problem?

Two thoughts here: ;)

* The "lose connection to the server" bit sort of sounds like
  this bug:

https://bugzilla.redhat.com/show_bug.cgi?id=838816

  Reckon that's a match?


* Aside from that, you might have to manually configure
  networking for the hosts from the command line.  Using the
  normal Linux commands I mean, not oVirt specific ones.

i.e. creating the bridging and everything manually.

  This is the approach I had to take last week when trying
  out Aeolus with oVirt 3.1.  Network layer breaks when
  adding a 2nd interface, but was able to work around it
  by manually creating the bridges from cli, after having
  defined the logical networks in the oVirt Web UI.

The "configure things manually" approach isn't all that
documented either.  I kind of stumbled my way through, by
looking at the examples here:

I second that! I just trial and errored my way through bond -> vlan -> bridge. 
Let´s just say that´s for people who are up for a challenge. But luckily, I´m 
one for sharing:

Start by defining to load bonding at boot:
# cat > /etc/modprobe.d/bonding.conf << EOF
alias bond0 bonding

EOF

Then define the bond. This is LACP mode:
# cat > /etc/sysconfig/network-scripts/ifcfg-bond0 << EOF
DEVICE=bond0
NM_CONTROLLED=no
USERCTL=no
BOOTPROTO=none
BONDING_OPTS="mode=4 miimon=100"
TYPE=Ethernet
MTU=9000

EOF

Then "enslave" the physical NICs to the bond:
# cat > /etc/sysconfig/network-scripts/ifcfg-em1 << EOF
NM_CONTROLLED="no"
BOOTPROTO="none"
DEVICE="em1"
ONBOOT="yes"
USERCTL=no
MASTER=bond0
SLAVE=yes

EOF

# cat > /etc/sysconfig/network-scripts/ifcfg-em2 << EOF
NM_CONTROLLED="no"
BOOTPROTO="none"
DEVICE="em2"
ONBOOT="yes"
USERCTL=no
MASTER=bond0
SLAVE=yes

EOF

Then create VLAN interfaces ontop of the bond. In this example, I´m using VLAN 
ID 1 and 2:
# cat > /etc/sysconfig/network-scripts/ifcfg-bond0.1 << EOF
DEVICE=bond0.1
VLAN=yes
BOOTPROTO=none
NM_CONTROLLED=no
BRIDGE=br1
MTU=1500

EOF

# cat > /etc/sysconfig/network-scripts/ifcfg-bond0.2 << EOF
DEVICE=bond0.2
VLAN=yes
BOOTPROTO=none
NM_CONTROLLED=no
BRIDGE=ovirtmgmt
MTU=9000

EOF

Lastly, create the bridges ontop of the VLAN interfaces. The names, as I have 
understood it, can be whatever you want, but one needs to be called "ovirtmgmt" 
of course:
# cat > /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt << EOF
TYPE=Bridge
NM_CONTROLLED="no"
BOOTPROTO="none"
DEVICE="ovirtmgmt"
ONBOOT="yes"
IPADDR=XXX.XXX.XXX.XXX
NETMASK=255.255.255.0

EOF

# cat > /etc/sysconfig/network-scripts/ifcfg-br0 << EOF
TYPE=Bridge
NM_CONTROLLED="no"
BOOTPROTO="none"
DEVICE="br0"
ONBOOT="yes"
IPADDR=XXX.XXX.XXX.XXX
NETMASK=255.255.255.0

EOF

Gateway goes into:
# cat > /etc/sysconfig/network << EOF
GATEWAY=XXX.XXX.XXX.XXX

EOF

This way, you can have almost(4096) as many interfaces as you want with only 
two physical NICs. I also gave an example on how you tune Jumbo Frames to be 
active on some interfaces, and have regular windows size on the rest. Jumbo 
most only be active on interfaces that isn´t routed, since the default routing 
size is 1500.

/Karli


 
http://wiki.ovirt.org/wiki/Installing_VDSM_from_rpm#Configuring_the_bridge_Interface

Is any of that helpful?

Regards and best wishes,

Justin Clift


Best regards,
Ricardo Esteves.

--
Aeolus Community Manager
http://www.aeolusproject.org

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



Med Vänliga Hälsningar
---
Karli Sjöberg
Swedish University of Agricultural Sciences
Box 7079 (Visiting Address Kronåsvägen 8)
S-750 07 Uppsala, Sweden
Phone:  +46-(0)18-67 15 66
karli.sjob...@slu.se

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] oVIrt 3.1 - Network Bonding

2012-08-13 Thread Justin Clift
On 14/08/2012, at 3:59 PM, Karli Sjöberg wrote:

> This way, you can have almost(4096) as many interfaces as you want with only 
> two physical NICs. I also gave an example on how you tune Jumbo Frames to be 
> active on some interfaces, and have regular windows size on the rest. Jumbo 
> most only be active on interfaces that isn´t routed, since the default 
> routing size is 1500.

Oooohhh Aaaahhh... that's really nicely written out. :)

Could you be convinced to make a wiki page for it?

(just hoping :>)

Regards and best wishes,

Justin Clift

--
Aeolus Community Manager
http://www.aeolusproject.org

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] oVIrt 3.1 - Network Bonding

2012-08-13 Thread Karli Sjöberg

14 aug 2012 kl. 08.30 skrev Justin Clift:

On 14/08/2012, at 3:59 PM, Karli Sjöberg wrote:

This way, you can have almost(4096) as many interfaces as you want with only 
two physical NICs. I also gave an example on how you tune Jumbo Frames to be 
active on some interfaces, and have regular windows size on the rest. Jumbo 
most only be active on interfaces that isn´t routed, since the default routing 
size is 1500.

Oooohhh Aaaahhh... that's really nicely written out. :)

Could you be convinced to make a wiki page for it?

DIY? It´s just copy-pasting the instructions basically, but I would be honored 
to have contributed:)


(just hoping :>)

Regards and best wishes,

Justin Clift

--
Aeolus Community Manager
http://www.aeolusproject.org




Med Vänliga Hälsningar
---
Karli Sjöberg
Swedish University of Agricultural Sciences
Box 7079 (Visiting Address Kronåsvägen 8)
S-750 07 Uppsala, Sweden
Phone:  +46-(0)18-67 15 66
karli.sjob...@slu.se

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] oVIrt 3.1 - Network Bonding

2012-08-14 Thread Moti Asayag
Hi,

There was a bug about this issue before which is solved:
https://bugzilla.redhat.com/show_bug.cgi?id=820989

Which version are you using ? Is it built from source or installed from
rpms ?

A simple test to verify if this fix included is to create the management
network (ovirtmgmt) over a nic with static boot protocol (also provide
ip, subnet mask and gateway).

Than via the Setup Networks drag another nic on top of the management
nic. If it fails for the same reason (NETWORK_ATTACH_ILLEGAL_GATEWAY) -
your version doesn't include that fix. If this scenario does work -
there is a potentially bug.

Note that the you shouldn't modify the management network bridge
connectivity details (meaning use the same ip, subnet mask and gateway).

I think this topic is entitled to its own thread as it was concealed in
a long unrelated thread.

Thanks,
Moti

On 08/13/2012 03:55 PM, Ricardo Esteves wrote:
> Hi,
> 
> I the attached picture "net1.jpg" i have my initial network configuration.
> 
> Physical card (em1) with vlan 10 (em1.10) bridged to the ovirtmgmt with
> IP 192.168.10.25 and default gw 192.168.10.254.
> 
> Now i want to bond em1 card with p1p1 card (attached picture net2.jpg)
> 
> But if i fill the default gw it gives me this error: The default gateway
> should be set only on engine network.
> 
> If i don't fill the default gw, when i click ok, i loose connection to
> the server and then after more or less 1 minute the server automaticaly
> reboots.
> 
> Anyone had this kind of problem?
> 
> Best regards,
> Ricardo Esteves.
> 
> 
> 
> 
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] oVIrt 3.1 - Network Bonding

2012-08-14 Thread Justin Clift
On 14/08/2012, at 5:14 PM, Moti Asayag wrote:
> There was a bug about this issue before which is solved:
> https://bugzilla.redhat.com/show_bug.cgi?id=820989


This bug may be what Karli hit.  It's almost definitely
not what I hit though.  For my setup, already had the
ovirtmgmt interface in place (static), and was attempting
to add a new logical network on another interface.  Wasn't
attempting to touch ovirtmgmt logical network at all.

Not sure if that helps.

+ Justin

--
Aeolus Community Manager
http://www.aeolusproject.org

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users