Merge "Set ctl socket ownership"

This commit is contained in:
Zuul 2020-05-04 21:24:38 +00:00 committed by Gerrit Code Review
commit 2e743df516
2 changed files with 13 additions and 0 deletions

@ -107,4 +107,12 @@ function stop () {
ovs-appctl -T1 -t /run/openvswitch/ovs-vswitchd.${PID}.ctl exit
}
function poststart () {
# This enables the usage of 'ovs-appctl' from neutron-ovs-agent pod.
PID=$(cat $OVS_PID)
OVS_CTL=/run/openvswitch/ovs-vswitchd.${PID}.ctl
chown {{ .Values.pod.user.nova.uid }}.{{ .Values.pod.user.nova.uid }} ${OVS_CTL}
}
$COMMAND

@ -112,6 +112,11 @@ It should be handled through lcore and pmd core masks. */}}
- /tmp/openvswitch-vswitchd.sh
- start
lifecycle:
postStart:
exec:
command:
- /tmp/openvswitch-vswitchd.sh
- poststart
preStop:
exec:
command: