With lvm2 the generated fedora fc38 boot image boots in degraded mode with the following error: ``` [root@localhost ~]# journalctl -u lvm2-monitor.service|more Nov 13 12:52:04 localhost.localdomain lvm[431]: Failed to create /etc/lvm/devi ces 2 Nov 13 12:52:04 localhost.localdomain lvm[431]: Failed to set up devices. Nov 13 12:52:04 localhost.localdomain systemd[1]: lvm2-monitor.service: Main pro cess exited, code=exited, status=5/NOTINSTALLED Nov 13 12:52:04 localhost.localdomain systemd[1]: lvm2-monitor.service: Failed w ith result 'exit-code'. Nov 13 12:52:04 localhost.localdomain systemd[1]: Failed to start lvm2-monitor.s ervice - Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress p olling. ``` This breaks the `test_boot.py` which expects the system after booting in `running` state (from `systemd is-system-running`). It looks like this is some sort of race with our generated image, potentially related to selinux, see https://github.com/lvmteam/lvm2/blob/v2_03_18/lib/device/dev-cache.c#L1842 and note the lines around dm_prepare_selinux_context(). Note also that `lvm2-monitor.service` runs with `DefaultDependencies=no` (c.f. https://github.com/lvmteam/lvm2/blob/v2_03_18/scripts/lvm2_monitoring_systemd_red_hat.service.in#L7) Given that the official fc38 cloud image does not use lvm2 and that it's not needed for the boot test this commit simply removes it from the fedora-boot manifest. This fixes the test. |
||
|---|---|---|
| .. | ||
| assemblers | ||
| manifests | ||
| os-release | ||
| scripts | ||
| sources | ||
| stages | ||
| README.md | ||
| v2 | ||
OSBuild Test Data
This directory contains data used by the osbuild test-suite. Since many formats do not allow comments, this file shortly describes their purpose.
Directories
-
./os-release/: This directory is consumed by the unit-tests of theos-releaseparser. The directory contains example os-release files (seeos-release(5)). Their directory name is the expected output of the parser. -
./manifests/: This directory contains osbuild manifests used throughout the test-suite.Manifests prefixed with
f30,f31, etc. are manifests that produce fedora images. If they havebaseas part of their name, they include a base set of packages which we very loosely define as@coreplus the packages our test-suite needs. If they havebuildas part of their name, they have a very restricted package set which includes just what is needed in a build-root for osbuild. Thefedoraprefix is used for manifests that are kept up to date to the newest fedora release, and thus do not expose a specificf30,f32, etc. behavior.The
rhelprefix is used for Red Hat Enterprise Linux images. Since they are not available publicly, the test-suite usually skips them.The
filesystemmanifest is used to test assemblers. These tests doesn't need a big filesystem tree representing a whole operating system. Instead, this manifest's tree is constructed just from the filesystem package and is marked using the selinux stage.Manifests ending on
.mpp.yamlare fed through the ManifestPreProcessors and then stored in the same directory with an.jsonextension (replacing.mpp.yaml). generated files are committed to the repository. Nevertheless, if you need to regenerate them, usemake test-data. -
./sources/: This directory contains test-data for runtime tests of the source-engines. It contains a directory that is served via HTTP in the tests, and a directory of test-cases what to expect when using the attachedsources.json. -
scripts: This directory contains scripts used from other tests, i.e. although they are executables they are at the same time test-data to the actual (unit) tests.