Commit Graph

7 Commits

Author SHA1 Message Date
James E. Blair 7bbdfdc9fd Update ZooKeeper class connection methods
This updates the ZooKeeper class to inherit from ZooKeeperBase
and utilize its connection methods.

It also moves the connection loss detection used by the builder
to be more localized and removes unused methods.

Change-Id: I6c9dbe17976560bc024f74cd31bdb6305d51168d
2022-06-29 07:46:34 -07:00
James E. Blair 10df93540f Use Zuul-style ZooKeeper connections
We have made many improvements to connection handling in Zuul.
Bring those back to Nodepool by copying over the zuul/zk directory
which has our base ZK connection classes.

This will enable us to bring other Zuul classes over, such as the
component registry.

The existing connection-related code is removed and the remaining
model-style code is moved to nodepool.zk.zookeeper.  Almost every
file imported the model as nodepool.zk, so import adjustments are
made to compensate while keeping the code more or less as-is.

Change-Id: I9f793d7bbad573cb881dfcfdf11e3013e0f8e4a3
2022-05-23 07:40:20 -07:00
Tristan Cacqueray 7fd6411dac print-zk: convert zookeeper_servers to a list
The print-zk script needs to convert the dictionary iterator to a proper list.

Change-Id: I786799ff881c361071fa06c78541c617fc7461a9
2019-01-10 02:32:09 +00:00
Zuul f116826d2b Merge "Fix print-zk tool for python3" 2018-12-01 20:44:29 +00:00
Tobias Henkel 9d77f05d8e
Only setup zNode caches in launcher
We currently only need to setup the zNode caches in the
launcher. Within the commandline client and the builders this is just
unneccessary work.

Change-Id: I03aa2a11b75cab3932e4b45c5e964811a7e0b3d4
2018-11-26 20:13:39 +01:00
Tobias Henkel cacedff80e
Fix print-zk tool for python3
The print-zk tool still contained python2 style prints.

Change-Id: Ief9cb9e2c76cf682daf34b57a754d4d26446fdc0
2018-11-22 07:10:11 +01:00
James E. Blair 19a9d49fe8 Add a script to print the ZK tree
This script uses a nodepool config file to connect to ZK and print
the entire contents of the ZK tree for debugging purposes.

Change-Id: I31566e15d915e701639325f757d1b917ad93c780
2016-08-18 13:54:47 -07:00