Fix /run/xtables.lock may be a directory

By default, hostPath does not specify type. Instead, it creates a directory. If the Neutron container starts earlier than CNI(Calico), Calico may fail.

Change-Id: I56498a91461214bf591c7dfe6f9445ffe2e6d7d0
This commit is contained in:
Samuel Liu 2022-05-18 10:59:09 +08:00 committed by Brian Haley
parent 5e19791931
commit b1182ebfd8
5 changed files with 10 additions and 1 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Neutron
name: neutron
version: 0.2.21
version: 0.2.22
home: https://docs.openstack.org/neutron/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Neutron/OpenStack_Project_Neutron_vertical.png
sources:

View File

@ -235,6 +235,8 @@ spec:
readOnly: true
{{- end }}
{{- end }}
- name: iptables-lockfile
mountPath: /run/xtables.lock
- name: socket
mountPath: /var/lib/neutron/openstack-helm
{{- if .Values.network.share_namespaces }}
@ -257,6 +259,10 @@ spec:
secret:
secretName: {{ $configMapName }}
defaultMode: 0444
- name: iptables-lockfile
hostPath:
path: /run/xtables.lock
type: FileOrCreate
- name: socket
hostPath:
path: /var/lib/neutron/openstack-helm

View File

@ -265,6 +265,7 @@ spec:
- name: iptables-lockfile
hostPath:
path: /run/xtables.lock
type: FileOrCreate
- name: pod-shared
emptyDir: {}
- name: socket

View File

@ -158,6 +158,7 @@ spec:
- name: iptables-lockfile
hostPath:
path: /run/xtables.lock
type: FileOrCreate
- name: socket
hostPath:
path: /var/lib/neutron/openstack-helm

View File

@ -35,4 +35,5 @@ neutron:
- 0.2.19 Added qdhcp NS host validation for deleting wrong namespaces.
- 0.2.20 Add Xena and Yoga values overrides
- 0.2.21 Fix for qdhcp NS host validation for deleting wrong namespaces.
- 0.2.22 Fix /run/xtables.lock may be a directory
...