-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add user and group to ovn container image to rebuild for dpdk file ac…
…cess update ovn-controler script to chown ovs bridge socket files so that libvirt pod can read fix #1982
- Loading branch information
1 parent
a4b05aa
commit c2c572c
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
charts/patches/ovn/0003-update-ovs-bridge-socket-file-ownship-to-non-root.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From ae76ebd037c455456801f9563b3dccc66aebef8c Mon Sep 17 00:00:00 2001 | ||
From: Yaguang Tang <[email protected]> | ||
Date: Mon, 28 Oct 2024 16:26:39 +0800 | ||
Subject: [PATCH] update ovs bridge socket file ownship to non root | ||
|
||
--- | ||
charts/ovn/templates/bin/_ovn-controller-init.sh.tpl | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/charts/ovn/templates/bin/_ovn-controller-init.sh.tpl b/charts/ovn/templates/bin/_ovn-controller-init.sh.tpl | ||
index b1960212..8da8416f 100644 | ||
--- a/charts/ovn/templates/bin/_ovn-controller-init.sh.tpl | ||
+++ b/charts/ovn/templates/bin/_ovn-controller-init.sh.tpl | ||
@@ -169,5 +169,8 @@ do | ||
then | ||
ovs-vsctl --may-exist add-port $bridge $iface | ||
migrate_ip_from_nic $iface $bridge | ||
+ # update bridge socket file to non root owner 42424 | ||
+ chown 42424:42424 /var/run/openvswitch/*.mgmt | ||
+ chown 42424:42424 /var/run/openvswitch/*.snoop | ||
fi | ||
done | ||
-- | ||
2.39.5 (Apple Git-154) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters