Skip to content

Instantly share code, notes, and snippets.

@nmathew
nmathew / Ovsdb records for NM restart
Created September 9, 2022 15:18
Relevant OVSDB records
record 6718: 2022-09-06 13:01:35.628
table Interface row "ccd_backhaul" (8497fbca):
delete row
table Port row "ccd_backhaul" (e673fc80):
delete row
table Bridge row "br_data" (f066df83):
ports=[08a84441-52c3-4e46-9cc3-290f5117d6a0, 27b88e52-738f-441a-b40a-6b68e8e40642, 40ea6324-3b94-40aa-b92b-8998368f7bb9, 43b5c9b6-18ca-4a29-997a-2adf2cbb92ac, 95c337c7-16bd-46da-a494-480c2da2ff2b, b66a9e09-154e-4226-92d2-6895003999d7, f8b431bd-0a89-4290-836d-839b0b31c44a, fc209f72-93a6-443d-a05a-93c37d48b57d]
table Open_vSwitch row 4177a4b7 (4177a4b7):
next_cfg=4607
@nmathew
nmathew / Interface configurations
Created September 9, 2022 15:07
system.connections configurations
control-plane-dc284-mast-n2:/etc/NetworkManager/system-connections # ls
bond_control.nmconnection ccd_backhaul-port.nmconnection ccd_hs_san-if.nmconnection ccd_midhaul-port.nmconnection ens10f0.nmconnection ens3f1.nmconnection
bond_data-port.nmconnection ccd_ecfe_om-if.nmconnection ccd_hs_san-port.nmconnection ccd_om-if.nmconnection ens10f1.nmconnection sdi_semc.nmconnection
bond_data.nmconnection ccd_ecfe_om-port.nmconnection ccd_int-if.nmconnection ccd_om-port.nmconnection ens1f0.nmconnection
br_data-br.nmconnection ccd_hs_repl-if.nmconnection ccd_int-port.nmconnection ecfe_cran-if.nmconnection ens1f1.nmconnection
ccd_backhaul-if.nmconnection ccd_hs_repl-port.nmconnection ccd_midhaul-if.nmconnection ecfe_cran-port.nmconnection ens3f0.nmconnection
control-plane-dc284-mast-n2:/etc/NetworkManager/system-connections # cat *
[connection]
id=bond_control
uuid=670f218f-5157-4ac7-b64a-1427c00fb036
This file has been truncated, but you can view the full file.
record 0: "Open_vSwitch" schema, version="8.2.0", cksum="1076640191 26427"
record 1: 2022-09-02 10:28:06.678 "ovs-vsctl (invoked by /bin/sh): ovs-vsctl --no-wait -- init -- set Open_vSwitch . db-version=8.2.0"
table Open_vSwitch insert row 4177a4b7:
db_version="8.2.0"
record 2: 2022-09-02 10:28:06.695 "ovs-vsctl (invoked by /bin/sh): ovs-vsctl --no-wait set Open_vSwitch . ovs-version=2.14.2 "external-ids:system-id=\"7ac26dad-1206-4fb0-9600-1b2a2a8db78a\"" "external-ids:rundir=\"/run/openvswitch\"" "system-type=\"sles\"" "system-version=\"15.3\"""
table Open_vSwitch row 4177a4b7 (4177a4b7):
ovs_version="2.14.2"
external_ids={rundir="/run/openvswitch", system-id="7ac26dad-1206-4fb0-9600-1b2a2a8db78a"}
This file has been truncated, but you can view the full file.
2022-09-06T00:00:01.758Z|00010|vlog|INFO|opened log file /var/log/openvswitch/ovsdb-server.log
2022-09-06T06:08:26.104Z|00011|jsonrpc|WARN|unix#9: receive error: Connection reset by peer
2022-09-06T06:08:26.104Z|00012|reconnect|WARN|unix#9: connection dropped (Connection reset by peer)
2022-09-06T06:13:37.743Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovsdb-server.log
2022-09-06T06:13:37.839Z|00002|ovsdb_server|INFO|ovsdb-server (Open vSwitch) 2.14.2
2022-09-06T06:13:38.206Z|00003|jsonrpc|WARN|unix#7: receive error: Connection reset by peer
2022-09-06T06:13:38.206Z|00004|reconnect|WARN|unix#7: connection dropped (Connection reset by peer)
2022-09-06T06:13:47.844Z|00005|memory|INFO|7276 kB peak resident set size after 10.1 seconds
2022-09-06T06:13:47.844Z|00006|memory|INFO|cells:594 monitors:3 sessions:2
2022-09-06T07:58:20.548Z|00007|jsonrpc|WARN|unix#9: receive error: Connection reset by peer
This file has been truncated, but you can view the full file.
2022-09-06T12:32:05.521Z|04253|poll_loop(revalidator118)|DBG|wakeup due to [POLLIN] on fd 35 (FIFO pipe:[1828968]) at lib/ovs-thread.c:341 (0% CPU usage)
2022-09-06T12:32:05.521Z|10313|dpif(revalidator121)|DBG|system@ovs-system: flow_dump ufid:16a630bd-dda9-4f64-aed6-060adb2c2f42 <empty>, packets:19, bytes:1292, used:0.180s
2022-09-06T12:32:05.521Z|03826|poll_loop(revalidator119)|DBG|wakeup due to [POLLIN] on fd 33 (FIFO pipe:[1831903]) at lib/ovs-thread.c:341 (0% CPU usage)
2022-09-06T12:32:05.521Z|03827|poll_loop(revalidator119)|DBG|wakeup due to [POLLIN] on fd 33 (FIFO pipe:[1831903]) at lib/ovs-thread.c:341 (0% CPU usage)
2022-09-06T12:32:05.521Z|04254|poll_loop(revalidator118)|DBG|wakeup due to [POLLIN] on fd 35 (FIFO pipe:[1828968]) at lib/ovs-thread.c:341 (0% CPU usage)
2022-09-06T12:32:05.521Z|04255|poll_loop(revalidator118)|DBG|wakeup due to [POLLIN] on fd 35 (FIFO pipe:[1828968]) at lib/ovs-thread.c:341 (0% CPU usage)
2022-09-06T12:32:05.521Z|10314|poll_loop(revalidator121)|DBG|wakeup due to [POLLIN
This file has been truncated, but you can view the full file.
2022-09-06T12:12:10.026Z|18376|dpif(revalidator101)|DBG|system@ovs-system: flow_dump ufid:c591709e-47e0-4f10-b1c6-f18f52083d20 <empty>, packets:109632, bytes:107286479, used:0.092s, flags:SFPR.
2022-09-06T12:12:10.026Z|18377|dpif(revalidator101)|DBG|system@ovs-system: flow_dump ufid:6a594d91-f497-45e4-8bad-4723accf7666 <empty>, packets:1590, bytes:111300, used:0.064s
2022-09-06T12:12:10.026Z|06154|poll_loop(revalidator102)|DBG|wakeup due to [POLLIN] on fd 33 (FIFO pipe:[1510431]) at lib/ovs-thread.c:341 (0% CPU usage)
2022-09-06T12:12:10.026Z|06423|poll_loop(revalidator104)|DBG|wakeup due to [POLLIN] on fd 39 (FIFO pipe:[1506460]) at lib/ovs-thread.c:341 (0% CPU usage)
2022-09-06T12:12:10.026Z|18378|dpif(revalidator101)|DBG|system@ovs-system: flow_dump ufid:e52aadd2-92c7-4130-aed7-ab2c6d016e13 <empty>, packets:4217, bytes:296506, used:0.024s, flags:SP.
2022-09-06T12:12:10.026Z|18379|dpif(revalidator101)|DBG|system@ovs-system: flow_dump ufid:7ace1d93-1262-4e9b-8cf3-ce0301b5c596 <empty>, packets:0, bytes:0, use
9832:2022-09-06T13:01:35.629Z|29354|bridge|INFO|bridge br_data: deleted interface ccd_backhaul on port 18
480350:2022-09-06T13:01:36.478Z|29425|bridge|INFO|bridge br_data: deleted interface bond_data on port 17
480431:2022-09-06T13:01:36.505Z|29444|bridge|INFO|bridge br_data: deleted interface ccd_om on port 15
480480:2022-09-06T13:01:37.187Z|29462|bridge|INFO|bridge br_data: deleted interface ccd_ecfe_om on port 12
480529:2022-09-06T13:01:37.266Z|29471|bridge|INFO|bridge br_data: deleted interface ecfe_cran on port 13
480573:2022-09-06T13:01:37.364Z|29485|bridge|INFO|bridge br_data: deleted interface ccd_hs_repl on port 11
480584:2022-09-06T13:01:37.364Z|29488|bridge|INFO|bridge br_data: deleted interface ccd_int on port 10
480585:2022-09-06T13:01:37.364Z|29489|bridge|INFO|bridge br_data: deleted interface ccd_midhaul on port 16
@nmathew
nmathew / Missing interfaces
Last active August 27, 2022 01:01
NetworkManager losses interface
Working case:
bm25c_ext_iface
traffic1_iface
nex_iface
nex_mgmt_iface
traffic5_iface
bond0
/home/ubuntu/go/pkg/mod/k8s.io/code-generator@v0.23.0/generate-groups.sh all pkg/client apis "v1" -o ./ -h hack/boilerplate.go.txt -v 10
Generating deepcopy funcs
I0810 04:51:53.617759 26809 main.go:82] Completed successfully.
Generating clientset for v1 at pkg/client/clientset
I0810 04:51:53.645477 26829 execute.go:217] Processing package "versioned", disk location "pkg/client/clientset/versioned"
I0810 04:51:53.645708 26829 execute.go:67] Assembling file "pkg/client/clientset/versioned/doc.go"
I0810 04:51:53.646813 26829 execute.go:67] Assembling file "pkg/client/clientset/versioned/clientset.go"
I0810 04:51:53.647095 26829 execute.go:217] Processing package "scheme", disk location "pkg/client/clientset/versioned/scheme"
I0810 04:51:53.647315 26829 execute.go:67] Assembling file "pkg/client/clientset/versioned/scheme/doc.go"
I0810 04:51:53.647636 26829 execute.go:67] Assembling file "pkg/client/clientset/versioned/scheme/register.go"
@nmathew
nmathew / ovs_issue.txt
Last active June 28, 2022 14:28
Nmstate ovs issue
boot configuration:
interfaces:
- name: bond0
state: up
type: bond
ipv4:
enabled: false
dhcp: false
link-aggregation:
mode: 802.3ad