Closed seekelvis closed 1 year ago
It seems all the rfr-redisfailover are slave now.
The issue is similar to #412 . But I still cannot found the solution.
Could you paste if there is some relevant log in the operator? redisoperator-78c9d88948-555wz
time="2022-09-15T15:35:53Z" level=info msg="Listening on :9710 for metrics exposure" src="asm_amd64.s:1581"
time="2022-09-15T15:35:53Z" level=info msg="starting controller" controller-id=redisfailover operator=redisfailover service=kooper.controller src="controller.go:233"
time="2022-09-15T15:36:26Z" level=info msg="service created" namespace=default service=k8s.service serviceName=rfs-redisfailover src="service.go:61"
time="2022-09-15T15:36:27Z" level=info msg="configMap created" configMap=rfs-redisfailover namespace=default service=k8s.configMap src="configmap.go:68"
time="2022-09-15T15:36:27Z" level=info msg="configMap created" configMap=rfr-s-redisfailover namespace=default service=k8s.configMap src="configmap.go:68"
time="2022-09-15T15:36:27Z" level=info msg="configMap created" configMap=rfr-readiness-redisfailover namespace=default service=k8s.configMap src="configmap.go:68"
time="2022-09-15T15:36:27Z" level=info msg="configMap created" configMap=rfr-redisfailover namespace=default service=k8s.configMap src="configmap.go:68"
W0915 15:36:27.146989 1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
W0915 15:36:27.151321 1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
time="2022-09-15T15:36:27Z" level=info msg="podDisruptionBudget created" namespace=default podDisruptionBudget=rfr-redisfailover service=k8s.podDisruptionBudget src="poddisruptionbudget.go:69"
time="2022-09-15T15:36:27Z" level=info msg="statefulSet created" namespace=default service=k8s.statefulSet src="statefulset.go:92" statefulSet=rfr-redisfailover
W0915 15:36:27.344713 1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
W0915 15:36:27.347547 1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
time="2022-09-15T15:36:27Z" level=info msg="podDisruptionBudget created" namespace=default podDisruptionBudget=rfs-redisfailover service=k8s.podDisruptionBudget src="poddisruptionbudget.go:69"
time="2022-09-15T15:36:27Z" level=info msg="deployment created" deployment=rfs-redisfailover namespace=default service=k8s.deployment src="deployment.go:92"
time="2022-09-15T15:36:53Z" level=info msg="configMap updated" configMap=rfs-redisfailover namespace=default service=k8s.configMap src="configmap.go:78"
time="2022-09-15T15:36:53Z" level=info msg="configMap updated" configMap=rfr-s-redisfailover namespace=default service=k8s.configMap src="configmap.go:78"
time="2022-09-15T15:36:53Z" level=info msg="configMap updated" configMap=rfr-readiness-redisfailover namespace=default service=k8s.configMap src="configmap.go:78"
time="2022-09-15T15:36:53Z" level=info msg="configMap updated" configMap=rfr-redisfailover namespace=default service=k8s.configMap src="configmap.go:78"
W0915 15:36:53.606013 1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
W0915 15:36:53.610646 1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
time="2022-09-15T15:36:53Z" level=info msg="podDisruptionBudget updated" namespace=default podDisruptionBudget=rfr-redisfailover service=k8s.podDisruptionBudget src="poddisruptionbudget.go:79"
time="2022-09-15T15:36:53Z" level=info msg="statefulSet updated" namespace=default service=k8s.statefulSet src="statefulset.go:102" statefulSet=rfr-redisfailover
W0915 15:36:53.618265 1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
W0915 15:36:53.620573 1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
time="2022-09-15T15:36:53Z" level=info msg="podDisruptionBudget updated" namespace=default podDisruptionBudget=rfs-redisfailover service=k8s.podDisruptionBudget src="poddisruptionbudget.go:79"
time="2022-09-15T15:36:53Z" level=info msg="deployment updated" deployment=rfs-redisfailover namespace=default service=k8s.deployment src="deployment.go:102"
time="2022-09-15T15:36:58Z" level=error msg="error on object processing: dial tcp 192.168.140.66:6379: i/o timeout" controller-id=redisfailover object-key=default/redisfailover operator=redisfailover service=kooper.controller src="controller.go:279"
time="2022-09-15T15:37:23Z" level=info msg="configMap updated" configMap=rfs-redisfailover namespace=default service=k8s.configMap src="configmap.go:78"
time="2022-09-15T15:37:23Z" level=info msg="configMap updated" configMap=rfr-s-redisfailover namespace=default service=k8s.configMap src="configmap.go:78"
time="2022-09-15T15:37:23Z" level=info msg="configMap updated" configMap=rfr-readiness-redisfailover namespace=default service=k8s.configMap src="configmap.go:78"
time="2022-09-15T15:37:23Z" level=info msg="configMap updated" configMap=rfr-redisfailover namespace=default service=k8s.configMap src="configmap.go:78"
W0915 15:37:23.656240 1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
W0915 15:37:23.658631 1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
time="2022-09-15T15:37:23Z" level=info msg="podDisruptionBudget updated" namespace=default podDisruptionBudget=rfr-redisfailover service=k8s.podDisruptionBudget src="poddisruptionbudget.go:79"
time="2022-09-15T15:37:23Z" level=info msg="statefulSet updated" namespace=default service=k8s.statefulSet src="statefulset.go:102" statefulSet=rfr-redisfailover
W0915 15:37:23.665736 1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
W0915 15:37:23.744248 1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
time="2022-09-15T15:37:23Z" level=info msg="podDisruptionBudget updated" namespace=default podDisruptionBudget=rfs-redisfailover service=k8s.podDisruptionBudget src="poddisruptionbudget.go:79"
time="2022-09-15T15:37:23Z" level=info msg="deployment updated" deployment=rfs-redisfailover namespace=default service=k8s.deployment src="deployment.go:102"
time="2022-09-15T15:37:28Z" level=error msg="error on object processing: dial tcp 192.168.140.66:6379: i/o timeout" controller-id=redisfailover object-key=default/redisfailover operator=redisfailover service=kooper.controller src="controller.go:279
@ese
It seems redis-operator
cannot connect to redis instance to configure it
time="2022-09-15T15:37:28Z" level=error msg="error on object processing: dial tcp 192.168.140.66:6379: i/o timeout" controller-id=redisfailover object-key=default/redisfailover operator=redisfailover service=kooper.controller src="controller.go:279
Redis instances bootstrap as slave of their self until Redis-operator takes control to configure the cluster. Readiness probe will fail until they are configured by redis-operator
What kind of Kubernetes deploy are you using? GKE, kind, kops,..? What CNI are you using? Have you any network policy in place?
I also ran into this issue because of a network policy. Maybe the status could be reported back onto the RedisFailover resource for better transparency. Currently the timeout is also configured at 30s. Maybe decreasing that makes it easier visible. A 10s timeout would be good enough already.
time="2022-10-11T10:47:29Z" level=error msg="error on object processing: dial tcp 10.42.0.66:6379: i/o timeout" controller-id=redisfailover object-key=somenamespace/redis operator=redisfailover service=kooper.controller src="controller.go:279"
I have the same problem. rfr-service doesn't get deployed by the operator and thus, isn't found => which logs errors
This issue is stale because it has been open for 45 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
bump
Same issue.
Expected behaviour
The rfr-redisfailover are running.
Actual behaviour
The rfr-redisfailover are not running.
Steps to reproduce the behaviour
kubectl apply -f basic.yaml
Environment
How are the pieces configured?
Logs
kubectl describe pod/rfr-redisfailover-0
kubectl logs pod/rfr-redisfailover-0
kubectl logs rfs-redisfailover-6b8648d584-r6qtn