Merge "Set ctl socket ownership"
This commit is contained in:
commit
2e743df516
openvswitch/templates
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user