set hugepage mount point permission for nova when using dpdk

Change-Id: Ic4b6e8aac5a4c6b6398e5ef03fa9608c43f766ed
This commit is contained in:
Yaguang Tang 2025-01-17 17:56:00 +08:00 committed by Vladimir Kozhukalov
parent 558ed90132
commit e15d449f0f
2 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,7 @@ OVS_PID=/run/openvswitch/ovs-vswitchd.pid
{{- if .Values.conf.ovs_dpdk.enabled }}
mkdir -p /run/openvswitch/{{ .Values.conf.ovs_dpdk.vhostuser_socket_dir }}
chown {{ .Values.pod.user.nova.uid }}.{{ .Values.pod.user.nova.uid }} /run/openvswitch/{{ .Values.conf.ovs_dpdk.vhostuser_socket_dir }}
chown {{ .Values.pod.user.nova.uid }}.{{ .Values.pod.user.nova.uid }} {{ .Values.conf.ovs_dpdk.hugepages_mountpath }}
{{- end }}
function start () {

View File

@ -0,0 +1,4 @@
---
openvswitch:
- Set nova user as owner for hugepages mount path
...