-
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
05b919d
commit c124717
Showing
3 changed files
with
24 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
13 changes: 13 additions & 0 deletions
13
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,13 @@ | ||
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/ovn/templates/bin/_ovn-controller-init.sh.tpl | ||
+++ b/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 |
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