ci: cache:redis-sentinel job keeps failing
Context
Job #2554403448 failed for 8a2bbbbd:
redis-sentinel:latest
is failing to start
Service container logs:
2022-06-07T06:02:56.744174560Z redis-sentinel 06:02:56.74
2022-06-07T06:02:56.751253571Z redis-sentinel 06:02:56.74 Welcome to the Bitnami redis-sentinel container
2022-06-07T06:02:56.753095823Z redis-sentinel 06:02:56.75 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-redis-sentinel
2022-06-07T06:02:56.756483142Z redis-sentinel 06:02:56.75 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-redis-sentinel/issues
2022-06-07T06:02:56.758901869Z redis-sentinel 06:02:56.75
2022-06-07T06:02:56.758944590Z redis-sentinel 06:02:56.75 INFO ==> ** Starting Redis sentinel setup **
2022-06-07T06:02:56.789230297Z redis-sentinel 06:02:56.78 INFO ==> Initializing Redis Sentinel...
2022-06-07T06:02:56.807471216Z redis-sentinel 06:02:56.79 INFO ==> Configuring Redis Sentinel...
2022-06-07T06:02:56.861302444Z redis-sentinel 06:02:56.86 INFO ==> ** Redis sentinel setup finished! **
2022-06-07T06:02:56.861340794Z
2022-06-07T06:02:56.872558293Z redis-sentinel 06:02:56.87 INFO ==> ** Starting Redis Sentinel **
2022-06-07T06:02:56.878411310Z
2022-06-07T06:02:56.878428450Z *** FATAL CONFIG FILE ERROR (Redis 7.0.0) ***
2022-06-07T06:02:56.878433770Z Reading the configuration file, at line 340
2022-06-07T06:02:56.878437541Z >>> 'SENTINEL master-reboot-down-after-period mymaster 0'
2022-06-07T06:02:56.878441730Z No such master with specified name.
And the test fails:
=== RUN TestRedisBlobDescriptorCacheProvider
redis: 2022/06/07 01:37:46 sentinel.go:507: sentinel: GetMasterAddrByName master="main-redis" failed: dial tcp: lookup redis-sentinel on 127.0.0.11:53: no such host
redis_integration_test.go:62: unexpected error flushing redis db: redis: all sentinels specified in configuration are unreachable
--- FAIL: TestRedisBlobDescriptorCacheProvider (0.19s)
FAIL registry/storage/cache/redis.TestRedisBlobDescriptorCacheProvider (0.19s)
coverage: 0.0% of statements
FAIL registry/storage/cache/redis
=== Failed
=== FAIL: registry/storage/cache/redis TestRedisBlobDescriptorCacheProvider (0.19s)
redis: 2022/06/07 01:37:46 sentinel.go:507: sentinel: GetMasterAddrByName master="main-redis" failed: dial tcp: lookup redis-sentinel on 127.0.0.11:53: no such host
redis_integration_test.go:62: unexpected error flushing redis db: redis: all sentinels specified in configuration are unreachable
DONE 1 tests, 1 failure in 16.505s
exit status 1
Uploading artifacts for failed job
Multiple failures in:
Problem
Redis® Sentinel's branch 6.0 is no longer maintained by upstream and is now internally tagged as to be deprecated. This branch will no longer be released in our catalog a month after this notice is published, but already released container images will still persist in the registries. Valid to be removed starting on: 07-01-2022
Seems like major version 6 has been deprecated, so we need to migrate to version 7+.
Solution
We need to identify the issue running the container in CI and update the configuration. From the looks of it we might be missing some new flags that are needed in this newer version.
Edited by Jaime Martinez