nodepool/nodepool/tests/unit
James E. Blair 6386170914 Support deleting DIB images while builder is offline
We don't currently support deleting a DIB image while the builder
that built it is offline.  The reason for this is to ensure that
we actually remove the files from disk on the builder.  The mechanism
is for all other builders to defer handling "DELETING" image nodes
in ZK to the builder which built them.

This can be problematic if the builder is offline for an extended
period, or permanently.

To address this case without compromising the original goal, we now
let any builder delete the uploads and ZK nodes for a DIB build.
Subsequently, every builder will now look for DIB manifest directories
within its image-dir, and if it finds one that does not have a
corresponding ZK node, it garbage collects that image from disk.

Change-Id: I65efb31ca02cea4bcf7ef8f962a00b5263ccf69c
2022-06-27 13:03:27 -07:00
..
__init__.py Add tox functional testing for drivers 2018-11-01 15:33:44 +01:00
fake_aws.py Improve AWS driver performance 2022-05-04 11:02:08 -07:00
fake_azure.py Add user-data/custom-data to Azure driver 2021-10-18 16:32:49 -07:00
fake_ibmboto.py Add IBM Cloud VPC driver 2022-03-15 06:49:57 -07:00
fake_ibmvpc.py Add IBM Cloud VPC driver 2022-03-15 06:49:57 -07:00
test_builder.py Use Zuul-style ZooKeeper connections 2022-05-23 07:40:20 -07:00
test_commands.py Support deleting DIB images while builder is offline 2022-06-27 13:03:27 -07:00
test_config_comparisons.py rename imagesdir/elementdir with underscore 2020-11-26 15:15:37 +11:00
test_config_validator.py config: add environment variable substitution 2020-05-20 11:44:49 +00:00
test_driver_aws.py Merge "Use Zuul-style ZooKeeper connections" 2022-05-23 22:56:54 +00:00
test_driver_azure.py Use Zuul-style ZooKeeper connections 2022-05-23 07:40:20 -07:00
test_driver_gce.py Use Zuul-style ZooKeeper connections 2022-05-23 07:40:20 -07:00
test_driver_ibmvpc.py Use Zuul-style ZooKeeper connections 2022-05-23 07:40:20 -07:00
test_driver_kubernetes.py Merge "Default limits for k8s labels and quota support" 2022-05-31 09:19:59 +00:00
test_driver_metastatic.py Fix unknown label in metastatic driver 2022-06-16 11:27:33 -07:00
test_driver_openshift.py Use Zuul-style ZooKeeper connections 2022-05-23 07:40:20 -07:00
test_driver_openshiftpods.py Use Zuul-style ZooKeeper connections 2022-05-23 07:40:20 -07:00
test_driver_static.py Use Zuul-style ZooKeeper connections 2022-05-23 07:40:20 -07:00
test_drivers.py Add tox functional testing for drivers 2018-11-01 15:33:44 +01:00
test_launcher.py Merge "Update some variable names" 2022-05-24 16:02:36 +00:00
test_sdk_integration.py Validate openstack provider pool labels have top-level labels 2019-10-15 15:32:32 +11:00
test_webapp.py Add nodepool.image_build_requests metric 2022-06-21 14:52:53 -07:00
test_zk.py Expose image build requests in web UI and cli 2022-06-21 13:32:35 -07:00