diff --git a/cinder/templates/deployment-volume.yaml b/cinder/templates/deployment-volume.yaml index 49537a20d9..d1cd918866 100644 --- a/cinder/templates/deployment-volume.yaml +++ b/cinder/templates/deployment-volume.yaml @@ -162,6 +162,8 @@ spec: volumeMounts: - name: pod-tmp mountPath: /tmp + - name: pod-var-cinder + mountPath: {{ .Values.conf.cinder.DEFAULT.state_path }} - name: cinder-bin mountPath: /tmp/cinder-volume.sh subPath: cinder-volume.sh @@ -293,6 +295,8 @@ spec: volumes: - name: pod-tmp emptyDir: {} + - name: pod-var-cinder + emptyDir: {} - name: cinder-bin configMap: name: cinder-bin diff --git a/cinder/values.yaml b/cinder/values.yaml index 757cd7a0e6..744d43913d 100644 --- a/cinder/values.yaml +++ b/cinder/values.yaml @@ -835,6 +835,7 @@ conf: app_name: cinder-volume cinder: DEFAULT: + state_path: /var/lib/cinder volume_usage_audit_period: hour resource_query_filters_file: /etc/cinder/resource_filters.json log_config_append: /etc/cinder/logging.conf diff --git a/releasenotes/notes/cinder-f177532ecd78dcec.yaml b/releasenotes/notes/cinder-f177532ecd78dcec.yaml new file mode 100644 index 0000000000..2d74beb9c5 --- /dev/null +++ b/releasenotes/notes/cinder-f177532ecd78dcec.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Some backends of cinder will write some temp data into the state_path + so it should be something available to be written to for the pod. +...