New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR “can't update cluster config file. ” When using azurefile as storage #13215
Comments
azurefile uses SMB protocol, it can't be read like local storage. |
We're using azureblob to get around this temporarily, but we're using it directly and not using proxy or doing any other special operations |
I'm using redis:6.0.14, the official image of redis on dockerhub, deployed in azure's AKS using azurefile as storage. After K8S version 1.28, redis reports error "Fatal: can't update cluster config file.". This error does not appear in K8S 1.27, nor in 1.28 with local disk storage and azureblob storage, does anyone have a clue about this!
I find that this is not an isolated case, you can find other cases in bitnami/charts#20355
===log===
15:C 17 Apr 2024 01:33:34.380 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
15:C 17 Apr 2024 01:33:34.401 # Redis version=6.0.14, bits=64, commit=00000000, modified=0, pid=15, just started
15:C 17 Apr 2024 01:33:34.425 # Configuration loaded
15:M 17 Apr 2024 01:33:34.458 * No cluster configuration found, I'm b4b66dccb01f8909f617dee6ebf5810731d261fa
15:M 17 Apr 2024 01:33:34.490 # Fatal: can't update cluster config file.
===Inside the storage directory===
root@redis-6380-0:/data# ls -l
total 1
-rwxrwxrwx 1 root root 0 Apr 17 01:33 nodes-6380.conf
-rwxrwxrwx 1 root root 426 Apr 17 01:33 redis6380.log
===version===
AKS(K8S): 1.28.5
redis:6.0.14
===redis config===
bind 0.0.0.0
cluster-enabled yes
cluster-config-file "nodes-6380.conf"
cluster-node-timeout 15000
===statefulset info===
apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: middleware
name: redis-6380
spec:
serviceName: redis-6380
replicas: 1
selector:
matchLabels:
app: redis-6380
template:
metadata:
labels:
app: redis-6380
spec:
terminationGracePeriodSeconds: 30
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- redis-6380
topologyKey: kubernetes.io/hostname
containers:
- name: redis
image: redis:6.0.14
ports:
- containerPort: 6380
name: client
- containerPort: 16380
name: gossip
command: ["redis-server", "/etc/redis/redis.conf"]
#command: ["sleep", "10000"]
env:
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
resources:
requests:
cpu: "100m"
memory: "100Mi"
volumeMounts:
- name: conf
mountPath: /etc/redis/
readOnly: false
- name: data
mountPath: /data
readOnly: false
volumes:
- name: conf
configMap:
name: redis-6380
defaultMode: 0755
volumeClaimTemplates:
name: data
spec:
storageClassName: azurefile
accessModes:
- ReadWriteMany
resources:
requests:
storage: 5Gi
The text was updated successfully, but these errors were encountered: