nodepool/nodepool/driver
James E. Blair 1b1eab77b0 Fix unknown label in metastatic driver
If a label is removed from the configuration while a node still
exists, the periodic cleanup performed by the metastatic driver
will raise an AttributeError exception when trying to access
the grace_time attribute, since the label pointer is None.

To address this, treat a missing label as if it has a grace time
of zero seconds.

This adds a test which simulates the issue.

This also adds an extra log entry for when a metastatic backing
node slot is deallocated is added so that we log both the allocation
and deallocation.

Change-Id: I0c104a2fe9874e2cd30e2bf2f2227569a73be243
2022-06-16 11:27:33 -07:00
..
aws Improve AWS driver performance 2022-05-04 11:02:08 -07:00
azure Fix default python paths in aws, azure, ibmvpc drivers 2022-04-12 06:32:41 -07:00
example Add more debug info to AWS driver 2022-04-11 10:14:20 -07:00
fake Do not reset quota cache timestamp when invalid 2022-05-10 15:04:25 -05:00
gce Fix infinite recursion in GCE provider 2021-11-08 15:32:49 -08:00
ibmvpc Add provider/pool priority support 2022-05-23 13:28:21 -07:00
kubernetes Merge "Default limits for k8s labels and quota support" 2022-05-31 09:19:59 +00:00
metastatic Fix unknown label in metastatic driver 2022-06-16 11:27:33 -07:00
openshift Use Zuul-style ZooKeeper connections 2022-05-23 07:40:20 -07:00
openshiftpods Use Zuul-style ZooKeeper connections 2022-05-23 07:40:20 -07:00
openstack Merge "openstack: Remove metadata limit checks" 2022-05-24 01:59:39 +00:00
static Merge "Use Zuul-style ZooKeeper connections" 2022-05-23 22:56:54 +00:00
test Use Zuul-style ZooKeeper connections 2022-05-23 07:40:20 -07:00
__init__.py Update some variable names 2022-05-23 13:30:50 -07:00
simple.py Use Zuul-style ZooKeeper connections 2022-05-23 07:40:20 -07:00
statemachine.py Use Zuul-style ZooKeeper connections 2022-05-23 07:40:20 -07:00
taskmanager.py Improve max-servers handling for GCE 2020-06-21 06:38:50 -07:00
utils.py Merge "Use Zuul-style ZooKeeper connections" 2022-05-23 22:56:54 +00:00
utils_k8s.py kubernetes: handle situation where the configuration is empty 2021-07-08 12:54:16 -07:00