nodepool/nodepool
David Shrewsbury fcc68b8fd6 Support UUID as builder identifier
We currently use the hostname of the builder host as the
identifier for the owner of built images. This value is
recorded in ZooKeeper and is used to make sure that only
the owner of an image build ever deletes the entry from
ZooKeeper.

Using hostname can be problematic if it ever changes. It will
cause orphaned builds that will not get deleted. This change
allows us to use a UUID as the identifier, deprecating use of
hostname altogether (although we continue storing that info).
The UUID will be stored in a file in the images directory so
that it may persist across nodepool-builder restarts.

In order to help with transitioning existing builders to using
UUID instead of hostname, the code will always compare the UUID
value AND the hostname so that existing ZK entries will be
matched until they age away.

Change-Id: Ifafbab9fb0f41564cc1af595586fa7353ce1d0d0
2017-07-19 11:46:30 -04:00
..
cmd Merge "Add support for custom ssh port" into feature/zuulv3 2017-07-12 09:22:57 +00:00
tests Support UUID as builder identifier 2017-07-19 11:46:30 -04:00
__init__.py Initial commit 2013-08-15 09:47:23 -07:00
builder.py Support UUID as builder identifier 2017-07-19 11:46:30 -04:00
config.py Add image-id and image-name options to cloud-images 2017-06-14 15:18:07 -07:00
exceptions.py Add initial ZooKeeper API 2016-07-21 14:46:04 -04:00
fakeprovider.py Fix imports for python3 2017-05-17 15:19:48 -04:00
launcher.py Merge "Add image-id and image-name options to cloud-images" into feature/zuulv3 2017-07-10 15:11:32 +00:00
nodeutils.py Add support for custom ssh port 2017-07-06 06:34:28 +00:00
provider_manager.py Merge "Create group for label type" into feature/zuulv3 2017-06-13 17:34:36 +00:00
stats.py Don't use global statsd 2016-01-15 12:38:21 +11:00
status.py Add support for custom ssh port 2017-07-06 06:34:28 +00:00
task_manager.py Use six.reraise for python3 2017-05-18 12:47:41 -04:00
version.py Fix nodepool --version 2015-02-06 12:09:52 -08:00
webapp.py Add webapp port and listen_address configuration 2017-06-09 13:56:36 +00:00
zk.py Support UUID as builder identifier 2017-07-19 11:46:30 -04:00