``create(makepath=True)`` doesn't create directories for chroot #53

Closed
nekto0n opened this Issue Jan 28, 2013 · 5 comments

Projects

None yet

3 participants

@nekto0n

Not sure who should handle this (kazoo or user), but if chroot directories chain doesn't exist - ensure path fails with NoNodeException

@nekto0n

Hmm... Seems like it's not an easy task for a client to create chroot directories if we created KazooClient passing chroot in hosts.

@hannosch
Python Zookeeper High-Level Libraries member

We could do a "exists" call on client startup and see if the chroot node is present. If it isn't, we could at least throw a more meaningful error message.

@nekto0n

That could help a lot

@bbangert bbangert added a commit that referenced this issue Jul 23, 2013
@bbangert bbangert - Issue #53: Throw a warning upon starting if the chroot path doesn't…
… exist

  so that it's more obvious when the chroot should be created before
  performing more operations.
68640b7
@bbangert
Python Zookeeper High-Level Libraries member

I've added a warning to the start() method that warns if the chroot doesn't exist. This seems like the sanest part since throwing an exception could likely be undesireable and change the API substantially.

@bbangert bbangert closed this Jul 23, 2013
@nekto0n

Yes, that's better than nothing, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment