Skip to content

Connecting to sentinel with password #1219

@motiumansky

Description

@motiumansky

Version: 3.3.8

Platform: Python 3.6.8 on RedHat 7.4

Description: Connecting to sentinel with password fails

I'm trying to connect to sentinel with password:

from redis.sentinel import Sentinel
sentinel = Sentinel([('',26379)],socket_timeout=0.1, password='')
sentinel.discover_master('mymaster')

I'm getting:
No Master found for 'mymaster'

When I comment the requirepass parameter in sentinel conf file and restart sentinel, I'm getting the master.

It seems to me that sentinel.py does not have support for passwords.

Thanks,
Moti

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions