Commit graph

230 commits

Author SHA1 Message Date
schutzbot
12e5dbd531 Post release version bump
[skip ci]
2023-03-01 12:06:53 +00:00
Antonio Murdaca
ed4d12fe33 ignition: enable systemd firstboot condition through kargs
This is a workaround to make the systemd believe it's firstboot
when ignition runs on real firstboot.
Right now, since we ship /etc/machine-id, systemd thinks it's not firstboot
and ignition depends on it to run on the real firstboot to enable services from presets.
Since this only applies to artifacts with ignition and changing machineid-compat at
commit creation time may have undesiderable effect, we're doing it here as a stopgap.
We may revisit this in the future.
This patch also pins the version of osbuild because it depends on a fix
for the ignition stage.

Signed-off-by: Antonio Murdaca <antoniomurdaca@gmail.com>
2023-02-28 18:35:45 +01:00
schutzbot
cd8898842c Post release version bump
[skip ci]
2023-02-22 14:01:35 +00:00
Tomáš Hozza
145e89211d SPEC: depend on osbuild v80
Set the dependency to osbuild version 80, which contains the
`remove_destination` option in the copy stage.

https://github.com/osbuild/osbuild/releases/tag/v80

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-02-22 12:17:36 +01:00
Tomáš Hozza
4e2b369acf SPEC: depend on osbuid v78
The version 78 is needed in order to use the `chown` stage.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-02-22 12:17:36 +01:00
schutzbot
4e574b6e99 Post release version bump
[skip ci]
2023-02-08 08:25:30 +00:00
schutzbot
77bd1cba08 Post release version bump
[skip ci]
2023-01-25 08:26:45 +00:00
schutzbot
382db4245a Post release version bump
[skip ci]
2023-01-11 08:23:59 +00:00
Ondřej Budai
4bafe1ead9 remove Fedora 35 support
Fedora 35 is going EOL on Tue 2022-12-13. At the time of writing this commit
message, that's the next day. As we do releases on Wednesdays, the next
release will never find its way to F35 and thus, there's no point in keeping
support for it.

Let's delete everything that relates to Fedora 35. If there's something that
cannot be deleted (e.g. CI containers based on F35), let's upgrade it to F37.

TestCrossArchDepsolve now uses CentOS Stream 8 because RHEL 8.4 cannot read
F37 repository metadata. This is a similar issue to
https://bugzilla.redhat.com/show_bug.cgi?id=2004853 . Basically, newer
repositories can be only read by libmodulemd >= 2.11.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2023-01-06 11:34:50 +01:00
Miroslav Suchý
1dd513c44a Migrate to SPDX license
See https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_1
2023-01-05 11:34:47 +01:00
schutzbot
20143b66c7 Post release version bump
[skip ci]
2022-12-28 08:21:37 +00:00
schutzbot
99a202fa99 Post release version bump
[skip ci]
2022-12-14 08:26:06 +00:00
schutzbot
f7334287af Post release version bump
[skip ci]
2022-11-30 08:28:40 +00:00
Tomáš Hozza
f24c6ad952 SPEC: run the %preun commands in worker package only on removal
PR#553 [1] introduced a change to the worker subpackage and replaced
the systemd %preun RPM macro with a literal calls to `systemctl` due
to missing functionality in systemd. However, the change omitted the
fact, that the RPM macro executes commands only on package removal,
not upgrade.

As a result a local or remote worker which is running on the system
while the osbuild-composer-worker package is updated, gets stopped.

Fix the scriptlet and run the commands only on package removal.

[1] https://github.com/osbuild/osbuild-composer/pull/553

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2022-11-23 10:42:01 +01:00
schutzbot
5669e05264 Post release version bump
[skip ci]
2022-11-16 08:29:16 +00:00
schutzbot
d02f666a4b Post release version bump
[skip ci]
2022-11-02 08:29:15 +00:00
Sanne Raymaekers
500341a25f internal/osbuild: contenturl and rhsm secrets for ostree sources 2022-10-28 16:14:30 +02:00
Brian C. Lane
d1e69fe528 spec: Fix ownership of the dnf-json rpmmd files
dnf-json previously ran as a service, and the
/var/cache/osbuild-composer/rpmmd directory and files were owned by
root. As a script called from osbuild-composer those directories and
files need to be owned by _osbuild-composer:_osbuild-composer, otherwise
it will not be able to depsolve after an upgrade from the previous
implementation.

This can be worked around by removing the
/var/cache/osbuild-composer/rpmmd directory and restarting the service
or rebooting.

Fixes #3079
2022-10-21 08:59:48 +02:00
schutzbot
923361aa5f Post release version bump
[skip ci]
2022-10-19 08:41:10 +00:00
Achilleas Koutsou
a6d3ad3959 spec: bump osbuild dep to >= 69
osbuild 69 fixed a bug in the ostree.config stage that we now require
for setting the ior-raw-image [1].

The version hasn't been released yet, so pin osbuild version that
provides the fix for all distros.

[1] 8a7b6d382d
2022-10-11 10:00:22 +02:00
schutzbot
9a7027ef77 Post release version bump
[skip ci]
2022-10-05 08:32:10 +00:00
Ondřej Budai
83cb17b4ba spec: bump osbuild dep to >= 65
osbuild 65 got support for gpgkeypaths in the ostree.remotes stage that we
need for iot-raw-image implemented recently.

See
2bff83364b

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2022-09-21 18:03:13 +02:00
schutzbot
629c31d92f Post release version bump
[skip ci]
2022-09-21 08:37:47 +00:00
Xiaofeng Wang
05503c58c2 test: Remove OCP4 test
Since api.ocp.ci.centos.org is going away:
https://lists.centos.org/pipermail/ci-users/2022-June/004547.html.

After discussion, OCP4 test will be removed here, but RHEL for Edge
downstream test will keep OCP4 case
2022-09-12 19:14:13 +02:00
schutzbot
a8d3e07577 Post release version bump
[skip ci]
2022-09-07 08:30:20 +00:00
fkolwa
98a7457e08 osbuild-composer.spec: osbuild version bump 64
Schutzfile: Bump osbuild commit hash to include new GCP guest-agent stage
2022-08-30 22:21:29 +02:00
schutzbot
17300c8931 Post release version bump
[skip ci]
2022-08-29 09:44:19 +00:00
schutzbot
1f9ea7714d Post release version bump
[skip ci]
2022-08-26 17:12:29 +00:00
Simon de Vlieger
c5f335bceb Add the rhsm.facts stage.
We initially provide a Facts file that stores the `ApiType`. This is the
API that was used to request the compose.
2022-08-25 18:56:35 +02:00
schutzbot
8982ab2018 Post release version bump
[skip ci]
2022-08-24 08:26:57 +00:00
schutzbot
df22e8b686 Post release version bump
[skip ci]
2022-08-10 08:26:51 +00:00
Tomas Hozza
765d218b6f test: extract common JTW code from the multi-tenancy.sh test
Move some code related to using JWT tokens from the `multi-tenancy.sh`
test case to `test/cases/api/common/common.sh`, `tools/provision.sh`
and `tools/run-mock-auth-servers.sh`. Move the composer and worker
configuration from the test to new testing configuration files.

The `tools/provision.sh` now accepts an optional argument specifying the
authentication method to use with the provisioned composer and workers.
Valid values are `tls` and `jwt`. If no argument is specified, the `tls`
option is used and the script defaults to its previous behavior.
2022-08-04 11:55:43 +02:00
schutzbot
ac522a58ee Post release version bump
[skip ci]
2022-07-27 08:31:06 +00:00
Christian Kellner
89c2bb0d3e spec: require osbuild 62
We need the `org.osbuild.containers.storage.conf` stage and its
fixes that only landed in osbuild 62.
2022-07-26 17:07:31 +02:00
Ondřej Budai
0adbce3606 test/koji: remove the old code for testing koji API
Koji API is no more, let's drop the test and rename koji-compose-v2.py to
koji-compose.py.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2022-07-19 16:00:52 +02:00
Ondřej Budai
3e25f5ef76 remove all traces of fedora 34
Fedora 34 is EOL, let's remove all traces of it, including:

- distro definition
- repositories (and test one)
- test manifests
- special package set rules
- hacks from the spec file

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2022-07-18 20:38:33 +02:00
schutzbot
37fc807bfa Post release version bump
[skip ci]
2022-07-13 08:30:26 +00:00
Sanne Raymaekers
339d69d2da test/api: Add gcloud and generic s3 changes to split api tests
- Fixed shellcheck errors
- Moved checkEnv from common to individual tests
- Fixed package install section in spec file:
Globs which include a directory fail on el-like distros.
- Use gcloud cli to ssh
- (re)Introduce generic s3 tests
2022-07-05 12:15:31 +02:00
Ondřej Budai
cb7c0283a5 test/api: split into smaller files
Each cloud now has its own file that's sourced on-demand by the main api.sh
script. The main goal of this commit is to reduce the amount of clutter in
api.sh. I, personally, find 1300 lines of bash overwhelming and I think that
this is a reasonable beginning to start cleaning things up.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2022-07-05 12:15:31 +02:00
Sanne Raymaekers
03b57f002c jobqueue: Move jobqueue out of internal 2022-07-04 15:37:28 +02:00
Sanne Raymaekers
d9bd19404d osbuild-service-maintenance: Move maintenance queries out of jobqueue 2022-07-04 15:37:28 +02:00
Juan Abia
f6fa5ccca1 remove cloud cleaner
scheduled cloud cleaner now uses a new method to remove azure resources.
So cloud cleaner code is not used
2022-07-01 17:47:44 +02:00
schutzbot
d1b6a6455c Post release version bump
[skip ci]
2022-06-29 08:30:35 +00:00
Christian Kellner
986f076276 container: add support for uploading to registries
Add a new generic container registry client via a new `container`
package. Use this to create a command line utility as well as a
new upload target for container registries.

The code uses the github.com/containers/* project and packages to
interact with container registires that is also used by skopeo,
podman et al. One if the dependencies is `proglottis/gpgme` that
is using cgo to bind libgpgme, so we have to add the corresponding
devel package to the BuildRequires as well as installing it on CI.

Checks will follow later via an integration test.
2022-06-29 10:02:46 +02:00
Ygal Blum
534625fa38 Fedora - Use vendor instead of rpm dependencies
RPM Spec
--------
Remove all Go dependecies
Add Start and End marker comments for bundling information
Add '-k' to goprep to preserve the vendor directory

tools
-----
Add script to update the RPM spec file to generate the indication lines
based on vendor/modules.txt

Packit
------
Run the new script as a post-upstream-clone hook

Makefile
--------
Run the new script on the generated spec file before generating the RPM

mockbuild.sh
------------
Run the new script before creating the RPM
2022-06-23 18:02:09 +02:00
schutzbot
53a231174b Post release version bump
[skip ci]
2022-06-15 08:29:51 +00:00
Juan Abia
4827f0e83e add cloud-image-val to aws test
cloud-image-val is a tool that performs basic validation tests on cloud
images. Incorporate this tool in aws.sh test
2022-06-08 16:14:35 +02:00
schutzbot
335c597452 Post release version bump
[skip ci]
2022-06-01 13:41:41 +00:00
Achilleas Koutsou
03e86cc31a spec: remove dnf-json service and socket
dnf-json is a standalone script again.  The service and socket are
removed.
2022-06-01 11:36:52 +01:00
Ygal Blum
8407c97d96 Upload to HTTPS S3 - Support self signed certificate
API
---
Allow the user to pass the CA public certification or skip the verification

AWSCloud
--------
Restore the old version of newAwsFromCreds for access to AWS
Create a new method newAwsFromCredsWithEndpoint for Generic S3 which sets the endpoint and optionally overrides the CA Bundle or skips the SSL certificate verification

jobimpl-osbuild
---------------
Update with the new parameters

osbuild-upload-generic-s3
-------------------------
Add ca-bunlde and skip-ssl-verification flags

tests
-----
Split the tests into http, https with certificate and https skip certificate check
Create a new base test for S3 over HTTPS for secure and insecure
Move the generic S3 test to tools to reuse for secure and insecure connections
All S3 tests now use the aws cli tool
Update the libvirt test to be able to download over HTTPS
Update the RPM spec

Kill container with sudo
2022-05-26 13:46:00 +03:00