debian-forge-composer/cmd
Tomas Hozza 3a0540dff0 test/api.sh: randomize used GCP zone from the region
The `api.sh` test currently always defaults to "<REGION>-a" zone when
creating instance using the built image. The resources in a zone may get
exhausted and the solution is to use a different zone. Currently even a
CI job retry won't help with mitigation of such error during a CI run.

Modify `api.sh` to pick random GCP zone for a given region when creating
a compute instance. Use only GCP zones which are "UP".

The `cloud-cleaner` relied on the behavior of `api.sh` to always choose
the "<REGION>-a" zone. Guessing the chosen zone in `cloud-cleaner` is
not viable, but thankfully the instance name is by default unique for
the whole GCP project. Modify `cloud-cleaner` to iterate over all
available zones in the used region and try to delete the specific
instance in each of them.

Make `ComputeZonesInRegion` method from the `internal/cloud/gcp` package
exported and use it in `cloud-cleaner` for getting the list of available
zones in a region.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-07-16 10:14:30 +02:00
..
cloud-cleaner test/api.sh: randomize used GCP zone from the region 2021-07-16 10:14:30 +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 osbuild-composer: Move InitWeldr code into weldr.New 2021-07-12 08:58:42 +02: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: drop Fedora 32 2021-07-05 11:16:08 +02:00
osbuild-image-tests image tests: ignore 'selinux/context-mismatch' in image-info report on RHEL-8 2021-06-22 13:25:59 +03:00
osbuild-koji rpmmd: move RPM metadata tooling to internal pkg 2021-06-29 09:33:05 +01:00
osbuild-koji-tests rpmmd: move RPM metadata tooling to internal pkg 2021-06-29 09:33:05 +01:00
osbuild-pipeline osbuild-pipeline: add ostree.ref image option 2021-03-17 18:12:17 +00:00
osbuild-store-dump distro: drop Fedora 32 2021-07-05 11:16:08 +02:00
osbuild-upload-aws upload/aws: add support for session tokens 2021-06-28 13:14:19 +03:00
osbuild-upload-azure cmd/upload-azure: set storage account 2021-03-06 15:40:48 +00:00
osbuild-upload-gcp Rename all occurrences of "Compute Node" to "Compute Engine" 2021-04-01 20:12:39 +02:00
osbuild-worker rpmmd: move RPM metadata tooling to internal pkg 2021-06-29 09:33:05 +01:00