-
Bug
-
Resolution: Done
-
Major
-
2.0 GA
-
None
-
None
I'm not able to deploy AMP on ocp 3.5 due to redis instances not booting up.
Error syncing pod, skipping: failed to "StartContainer" for "backend-redis" with RunContainerError: "GenerateRunContainerOptions: mkdir /var/lib/origin/openshift.local.volumes/pods/d07af666-3f99-11e7-ad04-02c0191b7b7c/volumes/kubernetes.io~configmap/redis-config/redis.conf: not a directory"
This is related to the way we override the default /etc/redis.conf file:
containers:
- args:
image: ${REDIS_IMAGE}
imagePullPolicy: IfNotPresent
name: system-redis
terminationMessagePath: /dev/termination-log
volumeMounts:- name: system-redis-storage
mountPath: "/var/lib/redis/data"- name: redis-config
mountPath: /etc/redis.conf
subPath: redis.conf
My environment:
Version
OpenShift Master: v3.5.5.15
Kubernetes Master: v1.5.2+43a9be4
Investigating the root cause:
- https://github.com/kubernetes/kubernetes/pull/43775
- https://github.com/kubernetes/kubernetes/pull/45623
- https://github.com/kubernetes/kubernetes/issues/45613
Internal bug:
Looks like the patch has been merged into 3.5, and a new release has been created, but still has to be productised into a linux container image.