kazoo icon indicating copy to clipboard operation
kazoo copied to clipboard

Kazoo python client Unable to create node after ACL is passed while creating client

Open anish97IND opened this issue 5 years ago • 0 comments

I am facing issue with kazoo while implementing lock with default_acl. When I initialize client and try to create node, it shows, NoAuthError. I m sharing the code below.

credentials=make_digest_acl_credential('distribution','password') zk= KazooClient(hosts='192xxxx:2181,192.xxxxx:2181,192xxxxx:2181', default_acl=(make_acl('digest', credentials, all=True),)) zk.start() zk.add_auth('digest',credentials) zk.create("/testNode/locking",makepath=True) # i get error here while creating

As lock function of Kazoo client also creates an ephemeral node, hence, that also doesn't work...

Please help me out in this ....thanks in advance :)

anish97IND avatar Mar 20 '20 12:03 anish97IND