Does kazoo support the ZK "ip" ACL scheme?

32 views
Skip to first unread message

Kevan Rehm

unread,
Nov 18, 2017, 5:40:18 PM11/18/17
to python-zk
Does kazoo support the "ip" scheme when creating ZK ACLs?   I can't find it referenced in the documentation.

I created an ACL like so:

acl = make_acl(u'ip', u'10.0.0.0/24', all=True)

print([acl])


Output looks right to me:


[ACL(perms=31, acl_list=['ALL'], id=Id(scheme=u'ip', id=u'10.0.0.0/24'))]


But I get the exception:


Traceback (most recent call last):

  File "test.py", line 110, in <module>

    zk.set_acls("/my/favorite", [acl])

  File "/usr/lib/python2.7/site-packages/kazoo/client.py", line 1187, in set_acls

    return self.set_acls_async(path, acls, version).get()

  File "/usr/lib/python2.7/site-packages/kazoo/handlers/utils.py", line 79, in get

    raise self._exception

kazoo.exceptions.InvalidACLError


Am I doing something wrong, or is "ip" just not supported?

Reply all
Reply to author
Forward
0 new messages