Bug 2134772 - Failure configuring multiple controllers and connection-mode=out-of-band in a single transaction.
Summary: Failure configuring multiple controllers and connection-mode=out-of-band in a...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: openvswitch2.11
Version: FDP 22.C
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Eelco Chaudron
QA Contact: ovs-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-14 09:10 UTC by Eelco Chaudron
Modified: 2022-10-14 15:26 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-10-14 15:26:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FD-2369 0 None None None 2022-10-14 10:17:13 UTC

Description Eelco Chaudron 2022-10-14 09:10:56 UTC
When we try to add multiple controllers and connection-mode=out-of-band in a single transaction it fails:

[wsfd-netdev64:~]$ ovs-vsctl set-controller br-int tcp:127.0.0.1:6633 tcp:127.0.0.1:6644 -- set controller br-int connection-mode=out-of-band
ovs-vsctl: no row "br-int" in table Controller


With a single controller, it works fine:

[wsfd-netdev64:~]$ ovs-vsctl set-controller br-int tcp:127.0.0.1:6633 -- set controller br-int connection-mode=out-of-band
[wsfd-netdev64:~]$

Comment 1 Ilya Maximets 2022-10-14 09:47:48 UTC
'set controller br-int' is a syntactic sugar that can work if the bridge
has only one controller.   The reason is that 'set controller' is a
direct access to database rows, it's not a vsctl wrapper like 'set-controller',
and 'Controller' table has no row corresponding to 'br-int' directly.
The full database command should be used instead:

  ovs-vsctl --id=@c1 create controller target='"tcp:127.0.0.1:6633"' connection-mode=out-of-band -- \
            --id=@c2 create controller target='"tcp:127.0.0.1:6644"' connection-mode=out-of-band -- \
            add bridge test-br controller @c1 @c2

Comment 2 Eelco Chaudron 2022-10-14 15:26:29 UTC
Closing as this is not a problem :)


Note You need to log in before you can comment on or make changes to this bug.