summaryrefslogtreecommitdiff
path: root/4 archive/fix-tc-issues.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-01-08 10:48:09 +0100
committerJasper Ras <jras@hostnet.nl>2025-01-08 10:48:09 +0100
commited0753ad224f0c65133bd7a63180257eecd9f5e3 (patch)
treecc662868574fe17db58be9e0faadd452c84dc59c /4 archive/fix-tc-issues.md
parent493be30dc981eaf762a95a1218f96893b1976727 (diff)
vault backup: 2025-01-08 10:48:09
Diffstat (limited to '4 archive/fix-tc-issues.md')
-rw-r--r--4 archive/fix-tc-issues.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/4 archive/fix-tc-issues.md b/4 archive/fix-tc-issues.md
new file mode 100644
index 0000000..4ad3bf8
--- /dev/null
+++ b/4 archive/fix-tc-issues.md
@@ -0,0 +1,25 @@
+Probleem: referenties in ovs naar devices die niet meer bestaan. Hij probeert vervolgens een nieuw device aan te maken met een qdisc op zo'n niet bestaande device.
+
+```
+sudo grep -r 'could not open network device' /var/log/openvswitch/ | grep -oi 'tap[a-z0-9\-]*' | uniq > ports_no_device
+```
+```
+sudo ip l l | grep ports_no_device | grep -oi 'tap[a-z0-9\-]*' > ports_with_device
+```
+```
+for P in $(cat ports_no_device | grep -v -f ports_with_device); do sudo ovs-vsctl del-port $P; done
+```
+```
+sudo systemctl restart ovn-controller
+```
+
+
+Rutger versie:
+```
+sudo grep 'could not open network device' /var/log/openvswitch/ovs-vswitchd.log | grep -oi 'tap[a-z0-9\-]*' | sort | uniq | while read dev; do ip l l $dev || sudo ovs-vsctl del-port $dev; done; sudo systemctl restart ovn-controller
+```
+
+
+Dus: ovs-vsctl del-port is nice.
+
+Niet vergeten ovn-controller te herstarten.