Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.

Bug 2134772

Summary: Failure configuring multiple controllers and connection-mode=out-of-band in a single transaction.
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Eelco Chaudron <echaudro>
Component: openvswitch2.11Assignee: Eelco Chaudron <echaudro>
Status: CLOSED NOTABUG QA Contact: ovs-qe
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: FDP 22.CCC: ctrautma, i.maximets, jhsiao, ralongi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-10-14 15:26:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 :)