You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a password is required for redis + redis sentinel the Nautobot healthcheck fails because the healtcheck code is not passing those values to the redis-py library and therefore failing to connect to redis.
Steps to Reproduce
Create redis + sentinel cluster with a password
Connect Nautobot
Expected Behavior
Nautobot health checks pass
Observed Behavior
$ nautobot-server health_check
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/nautobot/extras/health_checks.py", line 46, in check_status
master.ping()
File "/usr/local/lib/python3.7/site-packages/redis/commands/core.py", line 1053, in ping
return self.execute_command("PING", **kwargs)
File "/usr/local/lib/python3.7/site-packages/redis/client.py", line 1215, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.7/site-packages/redis/connection.py", line 1386, in get_connection
connection.connect()
File "/usr/local/lib/python3.7/site-packages/redis/sentinel.py", line 56, in connect
lambda error: None,
File "/usr/local/lib/python3.7/site-packages/redis/retry.py", line 50, in call_with_retry
raise error
File "/usr/local/lib/python3.7/site-packages/redis/retry.py", line 45, in call_with_retry
return do()
File "/usr/local/lib/python3.7/site-packages/redis/sentinel.py", line 44, in _connect_retry
self.connect_to(self.connection_pool.get_master_address())
File "/usr/local/lib/python3.7/site-packages/redis/sentinel.py", line 117, in get_master_address
master_address = self.sentinel_manager.discover_master(self.service_name)
File "/usr/local/lib/python3.7/site-packages/redis/sentinel.py", line 251, in discover_master
raise MasterNotFoundError(f"No master found for {service_name!r}")
redis.sentinel.MasterNotFoundError: No master found for 'nautobot'
DatabaseBackend ... working
DefaultFileStorageHealthCheck ... working
RedisBackend ... unavailable: Unable to connect to Redis Sentinel: MasterNotFoundError
The text was updated successfully, but these errors were encountered:
Environment
If a password is required for redis + redis sentinel the Nautobot healthcheck fails because the healtcheck code is not passing those values to the redis-py library and therefore failing to connect to redis.
Steps to Reproduce
Expected Behavior
Nautobot health checks pass
Observed Behavior
The text was updated successfully, but these errors were encountered: