debian-forge-composer/cmd
Tomas Hozza e799f752be GCP: clean up resources after canceled image import
Add method to fetch Cloudbuild job log.

Add method to parse Cloudbuild job log for created resources. Parsing is
specific to the Image import Cloudbuild job and its logs format. Add
unit tests for the parsing function.

Add method to clean up all resources (instances, disks, storage objects)
after a Cloudbuild job.

Modify the worker osbuild job implementation and also the GCP upload CLI
tool to use the new cleanup method CloudbuildBuildCleanup().

Keep the StorageImageImportCleanup() method, because it is still used by
the cloud-cleaner tool. There is no way for the cloud-cleaner to figure
out the Cloudbuild job ID to be able to call CloudbuildBuildCleanup()
instead.

Add methods to delete Compute instance and disk.

Add method to get Compute instance information. This is useful for
checking if the instance has been already deleted, or whether it still
exists.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-04-01 20:12:39 +02:00
..
cloud-cleaner GCP: accept context from the caller in all methods 2021-04-01 20:12:39 +02:00
osbuild-auth-tests test/auth: rework the test to use the new openssl setup 2020-11-05 13:48:48 +01:00
osbuild-composer distroregistry: add a default distroregistry 2021-03-12 08:29:30 +01:00
osbuild-composer-cli-tests test/cli: add a sanity check for Weldr logs 2021-03-19 18:50:31 +01:00
osbuild-dnf-json-tests distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
osbuild-image-tests osbuild-image-tests: call osbuild with export option 2021-03-17 18:12:17 +00:00
osbuild-koji upload/koji: don't pass task_id to cg_init_build 2020-09-16 00:15:02 +01:00
osbuild-koji-tests test/koji: move the koji test to schutzbot 2020-11-02 19:59:28 +01:00
osbuild-pipeline osbuild-pipeline: add ostree.ref image option 2021-03-17 18:12:17 +00:00
osbuild-store-dump osbuild-store-dump: Use bp1 with iot image type 2021-03-30 00:19:30 +01:00
osbuild-upload-aws upload/aws: fix architecture for aarch64 images 2020-12-01 08:27:44 +01:00
osbuild-upload-azure cmd/upload-azure: set storage account 2021-03-06 15:40:48 +00:00
osbuild-upload-gcp GCP: clean up resources after canceled image import 2021-04-01 20:12:39 +02:00
osbuild-worker GCP: clean up resources after canceled image import 2021-04-01 20:12:39 +02:00