Skip to content

Support OVN Interconnect#38

Merged
amorenoz merged 2 commits intomainfrom
ovn-ic
Mar 27, 2025
Merged

Support OVN Interconnect#38
amorenoz merged 2 commits intomainfrom
ovn-ic

Conversation

@amorenoz
Copy link
Owner

@amorenoz amorenoz commented Mar 27, 2025

Reported-by: @linup2011

With OVN interconnect, an OVN instance is deployed on each node so,
instead of deploying the pod on the master node, reuse the daemonset.

Also, the entrypoint has to be modified to include well-known ovn-ic
paths.

Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Use openvswitch2.17 and OVN 23.09.
Also, increase the memory limit as centos9's go compiler seems more
memory hungry.

Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
@linup2011
Copy link

with the new patches, installed ovsdb-mon.OVN_Northbound successfully with source ovsdb-mon-ovn-ic.source, and get the following result:

[root@sdn-15 ovsdb-mon]# git log -1 --oneline
1b54a96 (HEAD -> ovn-ic, origin/ovn-ic) Dockerfile: bump to centos stream 9

source ovsdb-mon-ovn-ic.source

namespace/ovsdb-mon created
namespace/ovsdb-mon labeled
role.rbac.authorization.k8s.io/ovsdb-mon created
rolebinding.rbac.authorization.k8s.io/ovsdb-mon created
daemonset.apps/ovsdb-mon created
worker-0 has pod ovsdb-mon-6m9c5 . Creating alias ovsdb-mon.ovs.worker-0
master-2 has pod ovsdb-mon-8pf8j . Creating alias ovsdb-mon.ovs.master-2
master-0 has pod ovsdb-mon-gj7vh . Creating alias ovsdb-mon.ovs.master-0
worker-1 has pod ovsdb-mon-k9bzd . Creating alias ovsdb-mon.ovs.worker-1
master-1 has pod ovsdb-mon-sfz5x . Creating alias ovsdb-mon.ovs.master-1

NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
ovsdb-mon 5 5 0 5 0 1s

to remove daemonset created, do: kubectl delete -n ovsdb-mon ds ovsdb-mon
commands to try (after pod becomes ready):
ovsdb-mon.ovs.master-1 list Interface Name Ofport ExternalIDs
ovsdb-mon.nb.master-1 list ACL
kubectl exec -n ovsdb-mon -it ovsdb-mon-sfz5x -- ovs-vsctl show
kubectl exec -n ovsdb-mon -it ovsdb-mon-sfz5x -- ovs-ofctl --names dump-flows br-int table=0 | cut -d',' -f3-

oc get pod -n ovsdb-mon -o wide

NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
ovsdb-mon-6m9c5 1/1 Running 0 6m13s 192.168.111.23 worker-0
ovsdb-mon-8pf8j 1/1 Running 0 6m13s 192.168.111.22 master-2
ovsdb-mon-gj7vh 1/1 Running 0 6m13s 192.168.111.20 master-0
ovsdb-mon-k9bzd 1/1 Running 0 6m13s 192.168.111.24 worker-1
ovsdb-mon-sfz5x 1/1 Running 0 6m13s 192.168.111.21 master-1

@amorenoz
Copy link
Owner Author

Thanks @linup2011 for reporting and testing!

@amorenoz amorenoz merged commit 38c5848 into main Mar 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants