nodepool/nodepool
James E. Blair 7d83166346 Fix exception in cache update
In the ZK cache, we previously would exit the cache update method
if we received a cache add or update with the empty string as data.
This usually represents a component trying to lock something after
it has been deleted, and the path being recreated with empty data,
so it's safe to ignore.

During the recent cache refactor, the short circuit we previously
had (if !data, return) was inadvertently converted to (if !data,
data=None) which would then throw an exception as we tried to
deserialize a None object.  The only reason to proceed with the
method at this point is to trigger the postCacheHook, and the only
postCacheHook implemented updates node stats, which don't need to
be updated in this case.

In other words, the old behavior of simply returning from the cache
listener in this case is acceptable and we should revert to it.

Change-Id: I9567bd387ab65f08a3f05be466760bd8e1c5c149
2023-03-16 11:35:16 -07:00
..
cmd Convert openstack driver to statemachine 2023-01-10 10:30:14 -08:00
driver Merge "Offload openstack delete api calls to an executor" 2023-03-15 13:37:00 +00:00
releasenotes/notes Filter active images for OpenStack provider 2020-03-17 16:26:50 +01:00
tests Merge "Add support for specifying pod resource limits" 2023-03-13 08:38:55 +00:00
zk Fix exception in cache update 2023-03-16 11:35:16 -07:00
__init__.py Initial commit 2013-08-15 09:47:23 -07:00
builder.py Add a cache for image lists 2023-01-31 16:43:43 -08:00
config.py Add OpenStack volume quota 2023-02-13 06:56:03 -08:00
exceptions.py Remove uneeded shebang and exec bit on some files 2019-12-13 19:30:03 +01:00
launcher.py Make assignHandlers a generator 2023-03-09 13:33:51 -08:00
logconfig.py Format multi-line log entries 2021-03-05 13:34:19 -08:00
model_api.py Add the component registry from Zuul 2022-05-23 07:41:27 -07:00
nodeutils.py Add API timing debug statements to openstack driver 2023-02-28 07:49:51 +01:00
provider_manager.py Add idle state to driver providers 2022-10-24 15:30:31 -07:00
stats.py Update some variable names 2022-05-23 13:30:50 -07:00
status.py Add a cache for image lists 2023-01-31 16:43:43 -08:00
version.py Add the component registry from Zuul 2022-05-23 07:41:27 -07:00
webapp.py Convert dib-request-list to image-status command 2022-06-21 14:12:22 -07:00