Solved

OvS Bonding


Badge +2
I am trying to implement SLB, or LACP, rather than A-B. To do this seems to require using either the manage_ovs show_bridges or list port {br0 | bond0} command.

Other then the Command_Ref-AOS and AHV_Admin-Guid, where can more information be found ?

I am getting a `ERROR kvm.py:488 failed to execute ....` error.
icon

Best answer by mbstein 3 January 2019, 18:34

Try to grab a copy of the. Nutanix Networking Best Practices manual.

Pages 31 to 33 provide an example on how to use the ovs-ctl and ovs-appctl from the host shell to configure LACP and loadbalancing.
Depending on your setup, you will find something like this:

[root@NTNX-0f82fb36-A ~]# ovs-vsctl set port bond0 lacp=active
[root@NTNX-0f82fb36-A ~]# ovs-vsctl set port bond0 bond_mode=balance-tcp
[root@NTNX-0f82fb36-A ~]# ovs-appctl bond/show bond0
---- bond0 ----
bond_mode: balance-tcp
bond may use recirculation: yes, Recirc-ID : 1
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
next rebalance: 5540 ms
lacp_status: negotiated
active slave mac: a0:36:9f:1d:f3:67(enp4s0f1)

slave enp4s0f0: enabled
may_enable: true

slave enp4s0f1: enabled
active slave
may_enable: true

[root@NTNX-0f82fb36-A ~]# ovs-appctl lacp/show bond0
---- bond0 ----
status: active negotiated
sys_id: a0:36:9f:1d:f3:66
sys_priority: 65534
aggregation key: 5
lacp_time: slow

View original

6 replies

Badge +2
Okay, so this seems to be a "manage_ovs" issue as 'show_interfaces' and other switches fail as well. All pointing back to kvm.py line 488 with a return code of 255.

There is also a stderr of "{date/time} CRITICAL manage_ovs:151 Failed to execute ovs command: list-br"
Badge +1
Try to grab a copy of the. Nutanix Networking Best Practices manual.

Pages 31 to 33 provide an example on how to use the ovs-ctl and ovs-appctl from the host shell to configure LACP and loadbalancing.
Depending on your setup, you will find something like this:

[root@NTNX-0f82fb36-A ~]# ovs-vsctl set port bond0 lacp=active
[root@NTNX-0f82fb36-A ~]# ovs-vsctl set port bond0 bond_mode=balance-tcp
[root@NTNX-0f82fb36-A ~]# ovs-appctl bond/show bond0
---- bond0 ----
bond_mode: balance-tcp
bond may use recirculation: yes, Recirc-ID : 1
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
next rebalance: 5540 ms
lacp_status: negotiated
active slave mac: a0:36:9f:1d:f3:67(enp4s0f1)

slave enp4s0f0: enabled
may_enable: true

slave enp4s0f1: enabled
active slave
may_enable: true

[root@NTNX-0f82fb36-A ~]# ovs-appctl lacp/show bond0
---- bond0 ----
status: active negotiated
sys_id: a0:36:9f:1d:f3:66
sys_priority: 65534
aggregation key: 5
lacp_time: slow
Badge +2
Thank you.

Yes, I have looked at BP-2071 and a few others. I will re-review.
Badge +2
When I try the OvS-{x}ctl commands I receive a "command not found" error?

This is from SSHing into the CVM, should I be using nCLI?
Badge +1
No, that is not running on the CVM but on the host.
From the CVM, use
ssh root@192.168.5.1 “ovs-vsctl set port bond0 lacp=active“
to set the physical interface configuration.
Badge +2
Thank you.

Reply