debian-forge-composer/cmd
Thomas Lavocat ab7fe6558a worker: protect the instance from upgrading
Before the instance was vulnerable to an OTA update while processing a
request. Because there is no way of retriggering a job in Composer, it
is better to avoid this situation.
The way we are doing it is by setting the `protected` flag onto the
instance when a job is being processed. This way the AWS scheduler
does hopefully not shutdown the machine at the wrong time.

Main caveats of this solution:
* Starvation: If a worker keeps accepting new jobs, then it might not be
  updated.
* Inconsistency: There exist a window between the job acceptation and the
  protection where the worker can be shutdown without having the time to
  protect itself.
2022-05-10 11:45:29 +02:00
..
cloud-cleaner internal/cloud/gcp: delete unused internal API 2022-04-14 19:07:31 +01:00
osbuild-auth-tests osbuild-auth-tests: add a build constraint also to certificates.go 2021-12-18 11:56:17 +00:00
osbuild-composer RHEL-86: add gce-rhui image type 2022-04-14 19:07:31 +01:00
osbuild-composer-cli-tests gosec: G204 - Subproccess launched as function arg 2021-12-13 12:17:30 +02:00
osbuild-composer-dbjobqueue-tests jobqueue: introduce the concept of channels 2022-03-08 12:07:00 +01:00
osbuild-composer-manifest-tests Test all manifests with depsolved package sets 2021-11-19 19:50:25 +01:00
osbuild-dnf-json-tests distro/fedora: refactor based on RHEL 9.0 code 2022-05-09 12:25:21 +02:00
osbuild-image-tests osbuild-image-tests: skip Openstack boot testing on aarch64 2021-11-18 16:24:36 +01:00
osbuild-koji koji: fix excessive logging & monitoring 2022-04-05 23:48:30 +02:00
osbuild-koji-tests gosec: G204 - Subproccess launched as function arg 2021-12-13 12:17:30 +02:00
osbuild-mock-openid-provider osbuild-mock-openid-provider: use offline token as org id 2022-03-08 12:07:00 +01:00
osbuild-package-sets cmd: add osbuild-package-sets for printing package sets of an image 2022-03-29 11:36:52 +02:00
osbuild-pipeline osbuild-pipeline: use DepsolvePackageSets instead of Depsolve 2022-04-28 14:42:49 +02:00
osbuild-service-maintenance cmd/osbuild-service-maintenance: Log aws error 2022-03-02 12:36:09 +01:00
osbuild-store-dump distro/fedora: refactor based on RHEL 9.0 code 2022-05-09 12:25:21 +02:00
osbuild-upload-aws osbuild-service-maintenance: Clean up expired images 2021-12-03 00:14:09 +00:00
osbuild-upload-azure cmd/upload-azure: set storage account 2021-03-06 15:40:48 +00:00
osbuild-upload-gcp cmd/osbuild-upload-gcp: use ComputeImageInsert() 2022-04-14 19:07:31 +01:00
osbuild-upload-generic-s3 OSBuild - add support for generic S3 services 2022-04-07 15:01:01 +02:00
osbuild-upload-oci Add support for OCI upload provider 2022-01-28 15:16:47 +01:00
osbuild-worker worker: protect the instance from upgrading 2022-05-10 11:45:29 +02:00