debian-forge-composer/internal
Tomáš Hozza d7e59e6eec Worker: move GCE image guest OS features to upload target options
Previously, the worker was determining the GCE image guest OS Features
on its own, based on the OS name. This caused problems, in case the
osbuild-composer was of a newer version than the worker.

Example:
osbuild-composer contained support for c10s GCE image type and its
implementation also contained the proper guest OS Features list for it.
However, when the worker got the osbuild job, it built it and tried to
fetch the guest OS Features for the distro. Since its implementation was
too old, it didn't contain the code that added the actual support for
c10s GCE images and got no guest OS features list (which is the default
for unsupported distros). The image was successfully uploaded and
shared, but it does not boot in GCP, because it does not know that it
should use UEFI to boot it.

This behavior could be considered a bug. The worker should be dumb. It
should not be making decisions about the image features, but instead it
should take them from the upload target options. And composer should be
the authoritative source of truth for this. Because otherwise, we
basically have two components that need to be updated in sync to add
support for GCE images on a new distro.

Move the GCE image guest OS features to the GCP upload target options.
The worker will just take what is specified there and use it when
importing the image to GCP. As a compatibility layer for the case when
the composer would be older than the worker (unlikely, but still),
worker will try to determine the image guest OS features in case the
list in the upload target options is empty.

Extend the GCP functional tests to check that the imported image has at
least some guest OS features set.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2024-08-29 17:37:48 +02:00
..
auth internal/auth: add TenantChannelMiddleware 2023-06-28 15:08:37 +02:00
blueprint Add support for RHSM customizations 2024-08-13 15:52:44 +02:00
boot internal/boot: adapt to aws sdk v2 2024-08-20 15:32:40 +02:00
client client/compose_test: fix error message checked by the test 2024-08-23 13:10:53 +02:00
cloud compute/gcp: add guest OS features for el10/c10s 2024-08-23 13:10:53 +02:00
cloudapi Worker: move GCE image guest OS features to upload target options 2024-08-29 17:37:48 +02:00
common splunk_logger: move environment hook to splunk_logger pt2 2024-08-28 16:41:07 +02:00
fsnode internal/fsnode: add API for custom directories and files 2023-02-22 12:17:36 +01:00
jobqueue jobqueue: add channel to workers 2024-04-19 14:32:07 +02:00
jsondb jsondb: improve performance of list operation 2023-06-20 10:45:22 +02:00
mocks mocks/dnfjson: support new depsolve result 2024-04-17 10:27:08 +02:00
osbuildexecutor osbuildexecutor: show full osbuild exector on json decode errors 2024-08-05 14:51:40 +02:00
prometheus internal/prometheus: more human-readable time buckets 2024-07-04 11:19:25 +02:00
remotefile clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
runner runner: add platform-python only for RHEL 8+ 2023-01-25 20:37:12 +01:00
store osbuild/images update: ignore repoconfigs where appropriate 2024-04-17 10:27:08 +02:00
target Worker: move GCE image guest OS features to upload target options 2024-08-29 17:37:48 +02:00
test Drop common.CurrentArch() in favor of osbuild/images 2024-01-26 11:32:34 +01:00
upload upload/azure: set hyperv generation 2024-01-16 14:25:58 +01:00
weldr Worker: move GCE image guest OS features to upload target options 2024-08-29 17:37:48 +02:00
worker worker: move api.BasePath setup to the start of the funcs 2024-08-28 17:17:56 +02:00
tools.go Remove old build tag comments 2023-03-07 09:22:23 -08:00