nodepool/nodepool/tests/unit
Tobias Henkel 0dc40d33e4
Support optional post upload hooks
There are several scenarios where it can be useful hook into nodepool
after an image got uploaded but before it is taken into use by the
launchers. One use case is to be able to run validations on the image
(e.g. image size, boot test, etc.) before nodepool tries to use that
image and causing potentially node_failures. Another more advanced use
case is to be able to pre-distribute an image to all compute nodes in
a cloud before an image is used at scale.

To facilitate these use cases this adds a new config option
post-upload-hook to the provider config. This takes a path to a user
defined executable script which then can perform various tasks. If the
process fails with an rc != 0 the image gets deleted again and the
upload fails.

Change-Id: I099cf1243b1bd262b8ee96ab323dbd34c7578c10
2019-11-25 13:37:28 +01:00
..
__init__.py Add tox functional testing for drivers 2018-11-01 15:33:44 +01:00
test_builder.py Support optional post upload hooks 2019-11-25 13:37:28 +01:00
test_commands.py Add second level cache of nodes 2018-11-26 20:04:04 +01:00
test_config_comparisons.py Extract out common config parsing for ConfigPool 2019-01-03 11:05:26 -05:00
test_config_validator.py Validate openstack provider pool labels have top-level labels 2019-10-15 15:32:32 +11:00
test_driver_aws.py AWS driver: add ability to determine AMI id using filters 2019-10-08 12:06:46 -07:00
test_driver_kubernetes.py Add tox functional testing for drivers 2018-11-01 15:33:44 +01:00
test_driver_openshift.py Add python-path option to node 2019-05-07 02:22:45 +00:00
test_driver_openshiftpods.py Implement an OpenShift Pod provider 2019-05-07 02:25:15 +00:00
test_driver_static.py Merge "Validate openstack provider pool labels have top-level labels" 2019-10-15 13:16:42 +00:00
test_drivers.py Add tox functional testing for drivers 2018-11-01 15:33:44 +01:00
test_launcher.py Merge "Set default python-path to "auto"" 2019-10-17 05:26:10 +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 tox functional testing for drivers 2018-11-01 15:33:44 +01:00
test_zk.py Do not overwrite image upload ZK data on delete 2019-09-24 10:43:25 -04:00