Commit graph

170 commits

Author SHA1 Message Date
kingsleyzissou
0c762d4ca0 Post release version bump
[skip ci]
2022-03-09 10:10:24 +00:00
Ondřej Budai
299264f178 test/koji: install podman-plugins everywhere
Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2022-03-08 12:07:00 +01:00
Diaa Sami
e15998ced7 koji: add HTTP retries for uploads & init/finalize
and log number of retries for trackability
Fixes #2335
2022-03-06 11:04:37 +01:00
Christian Kellner
8c8f6f2cd5 spec: bump osbuild requirement to version 52
Needed due to the new `gpgkeys.fromtree` option in `org.osbuild.rpm`.
Pin osbuild version 52 in Schutzfile as well.
2022-03-05 21:04:24 +01:00
ondrejbudai
309aca51f1 Post release version bump
[skip ci]
2022-02-28 23:35:13 +00:00
Antonio Murdaca
1a11176a22 spec: require osbuild >= 49 for luks/clevis stages
Signed-off-by: Antonio Murdaca <runcom@linux.com>
2022-02-28 23:05:45 +00:00
Christian Kellner
3805975986 spec: bump osbuild requirement to 47
This contains important build fixes for PPC64LE. See the corresponding
osbuild release notes for details.
2022-02-27 22:03:36 +01:00
Christian Kellner
24d8790f9d spec: require osbuild-{lvm2,luks2}
The extra packages are needed to able to build images with LVM and
LUKS.
2022-02-27 22:03:36 +01:00
ondrejbudai
9c1f552210 Post release version bump
[skip ci]
2022-02-18 18:36:49 +00:00
lavocatt
984e58ede4 Post release version bump
[skip ci]
2022-02-11 09:12:23 +00:00
Alexander Todorov
8b3a1367be tests: Add nvr checking into a shared library
can be used for conditionally enabling parts of the test scripts:

source /usr/libexec/tests/osbuild-composer/shared_lib.sh

if nvrGreaterOrEqual "osbuild-composer" "41"; then
    .... do some more testing ...
fi
2022-02-04 23:43:43 +01:00
Alexander Todorov
570e5f595f Relax the requirements between osbuild-composer-tests and osbuild-composer
this is only useful for our RHEL nightly pipeline testing b/c we intend
to be building the -tests RPM from the main branch.
2022-02-04 23:43:43 +01:00
Tom Gundersen
11e2ae4528 cloudapi/v2: add koji-specific tests
These are based on the existing tests for the koji API, making sure the coverage is the same.
2022-02-01 20:28:40 +00:00
Roy Golan
da17cfe872 Add rpm build requierments
Signed-off-by: Roy Golan <rgolan@redhat.com>
2022-01-28 15:16:47 +01:00
lavocatt
3899acbf84 Post release version bump
[skip ci]
2022-01-26 09:33:32 +00:00
lavocatt
b303e95827 Post release version bump
[skip ci]
2022-01-12 13:46:04 +00:00
Ondřej Budai
add17bba45 spec: drop Fedora 33 hacks
Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2022-01-12 11:35:06 +01:00
Jakub Rusz
564148b743 test/cases: Add test to verify osbuild-composer works after upgrade
This test provisions a RHEL-8.6 VM locally, installs osbuild-composer on
it, upgrades the system to RHEL-9.0 and verifies osbuild-composer still
works by building a simple qcow image.
2022-01-06 21:30:46 +01:00
Ondřej Budai
d967790ea5 api/cloud: drop v1 API
It's deprecated and not used anywhere, let's just drop it.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2022-01-04 16:38:50 +01:00
ondrejbudai
46047d0a78 Post release version bump
[skip ci]
2021-12-22 14:17:36 +00:00
Thomas Lavocat
fec9a6d3e5 Cosmetics: adjust the vertical alignment 2021-12-15 09:41:32 +01:00
Thomas Lavocat
53cb1b952e Tests: generation works with dnf-json.socket down
Test that the test cases generation will properly start the
dnf-json.socket when needed.
2021-12-15 09:41:32 +01:00
Thomas Lavocat
ca126e9747 dnf-json: Change dnf-json to be a daemon
The service is started via systemd activation sockets.
The service serves http POST requests, the same json as before is
expected as the body of the request, and the same json as before is sent
as the response of the request.
2021-12-15 09:41:32 +01:00
ondrejbudai
acafddbcd7 Post release version bump
[skip ci]
2021-12-09 17:29:14 +00:00
Achilleas Koutsou
8c5e32ad9e spec: build all binaries with PIE 2021-12-08 22:03:57 +00:00
Ondřej Budai
d61e1c009b spec: add epoch to nevra only if it's set
This change was tested by running:
```
$ rpm --eval '
    %global noepoch 42
    %{?epoch:%epoch:}
  '
$ rpm --eval '
    %global epoch 42
    %{?epoch:%epoch:}
  '
42:
```

Fixes #2054

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2021-11-24 16:12:54 +00:00
chloenayon
b0ef1ac256 Post release version bump
[skip ci]
2021-11-24 16:03:02 +00:00
Tomas Hozza
c5a4946135 Test all manifests with depsolved package sets
Generated image test case manifests for all supported distros, arches and
image-types are being tested as part of distro unit tests. However due
to time constrains, the unit test does not depsolve the image's default
package sets and thus does not check if they changed in the internal
osbuild-composer's representation, compared to the generated image test
case.

Extend the `TestDistro_Manifest()` function used by the unit test to
allow depsolving image's package sets.

Introduce a new test case binary `osbuild-composer-manifest-tests`
allowing to check the manifests generated by composer for all supported
combinations of images against generated manifests, including depsolving
image's default package sets.

Introduce a new CI test case `manifest_tests.sh` executing the
`osbuild-composer-manifest-tests` binary and testing all existing image
test cases. Run it in CI on RHEL-9 runner.

Modify SPEC file to ship the newly added test case.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-11-19 19:50:25 +01:00
Martin Sehnoutka
ea97adfdf8 spec: bump osbuild version to 41
This will be needed for new stages which are available only in osbuild
41.
2021-11-16 10:13:06 +01:00
diaasami
bb190f1280 Post release version bump
[skip ci]
2021-11-10 16:37:05 +00:00
sanne
117886a75f spec: Only run worker preun if systemd is running
Before, when systemd was not present (for instance in a container), the
preun script would error out.

This checks if systemd is present and running in the same way the
systemd rpm macros do.

Fixes #1915
2021-11-10 01:26:00 +00:00
Simon Steinbeiss
65a3753d2c Post release version bump
This will soon be done by schutzbot, but is done manually this one time.
2021-11-01 20:27:36 +01:00
Simon Steinbeiss
3c9b92b80b Bump version numbers ahead of release
This is necessary for the new simplified release process and is done
ahead of time once for the upcoming release now.
After osbuild-composer 37 this will be done by the GitHub composite action.
2021-10-27 13:03:53 +02:00
Achilleas Koutsou
c1944095d0 spec: dnf-json conflicts with old composer
dnf-json provides files that osbuild-composer used to provide, so they
should be marked as conflicting.

Signed-off-by: Achilleas Koutsou <achilleas@koutsou.net>
2021-10-21 15:07:26 +01:00
Achilleas Koutsou
4e5ce288ab 36
Release osbuild-composer 36

Signed-off-by: Achilleas Koutsou <achilleas@koutsou.net>
2021-10-13 15:52:08 +01:00
Tomas Hozza
46b8a2e977 SPEC: Exclude armv7hl architecture
Exclude the `armv7hl` architecture, since osbuild-composer does not
support building images for it.

Fix #1839

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-10-11 15:33:53 +02:00
sanne
b81d58b895 spec: Split dnf-json into a subpackage 2021-10-11 13:16:51 +02:00
Simon Steinbeiss
fed4b97e4e 35
Release osbuild-composer 35

Signed-off-by: Simon Steinbeiss <simon.steinbeiss@redhat.com>
2021-10-02 09:11:07 +02:00
Ondřej Budai
1b59b2973e spec: bump osbuild depedendency to 37
The bootloader option in ostree.config stage is new in osbuild 37.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2021-09-27 20:10:04 +02:00
sanne
2f328b0e97 workers: Backwards compatible api.openshift.com spec compliance
The main changes are:
- Kind, Href, Id fields for every object returned
- Attach operationIds to each request, return it for errors
- Errors are predefined and queryable
2021-09-27 13:10:05 +01:00
Ondřej Budai
4c5d1ae45a test: move env variables into set-env-variables helper
Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2021-09-24 17:03:53 +02:00
Martin Sehnoutka
d7d4e02c8c internal/common: introduce git revision and rpm version
The variables are set to the git revision from which the build is
triggered and rpm version from the spec file, if it is build using RPM.

This can be later used to query exact source version while
running osbuild-composer.

It is necessary to use both, because none of them is available in all
possible scenarios.

Use either git-rev (preferably) or RPM version (NEVRA) instead of the
"devel" build type. It was just a placeholder.
2021-09-24 14:13:23 +02:00
Diaa Sami
aa08e29243 34
Release osbuild-composer 34

Signed-off-by: Diaa Sami <disami@redhat.com>
2021-09-15 21:12:35 +02:00
sanne
5a9d8c792b cloudapi: V2
V2 is compliant with api.openshift.com design guidelines.

Errors are predefined, have codes, and are queryable.

All requests have an operationId set: a unique identifier which is
sortable by time. This is added to the response in case of an error.

All returned objects have the href, id, and kind field set.
2021-09-14 15:32:21 +02:00
Tom Gundersen
8b84d92264 repositories: exclude downstream from upstream
We don't want to give the impression we support building Fedora on RHEL or
CentOS Stream, or CentOS Stream on RHEL, so drop these repositories from
the package.

Also adjust dnf-json to use test repositories, rather than the upstream ones.
These are shipped in the test package, so makes sure we are unaffected by
what is shipped in the RPM shipped in the distros.
2021-09-14 10:43:09 +01:00
Martin Sehnoutka
de41a49f2f spec: stop providing golang-github-osbuild-composer
The golang-github-osbuild-composer package was created by mistake a long
time ago. Stop providing it in Fedora 34 and newer and add a note about
removing the condition when Fedora 33 hits EOL.
2021-09-13 19:20:05 +02:00
Martin Sehnoutka
bb3b69f9c3 spec: bump osbuild dependency to 36
This is needed to include the fix for the RHSM module which is tested by
the newly improved regression test.
2021-09-13 13:14:49 +02:00
yih
645815a11c add test case for httpboot simplified installer 2021-09-07 19:15:22 +02:00
sanne
4a057bf3d5 auth: OpenID/OAUth2 middleware
2 configurations for the listeners are now possible:
- enableJWT=false with client ssl auth
- enableJWT=true with https

Actual verification of the tokens is handled by
https://github.com/openshift-online/ocm-sdk-go.

An authentication handler is run as the top level handler, before any
routing is done. Routes which do not require authentication should be
listed as exceptions.

Authentication can be restricted using an ACL file which allows
filtering based on JWT claims. For more information see the inline
comments in ocm-sdk/authentication.

As an added quirk the `-v` flag for the osbuild-composer executable was
changed to `-verbose` to avoid flag collision with glog which declares
the `-v` flag in the package `init()` function. The ocm-sdk depends on
glog and pulls it in.
2021-09-04 02:48:52 +02:00
Ondřej Budai
8f21f0b873 33
Release osbuild-composer 33

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2021-08-30 19:03:46 +02:00