Commit 7a37f0b
committed
agent(rhel8): skip tests in nspawn on RHEL 8.6 and older
As we're missing [0] in these versions which is not trivial to backport
into such old systemd versions, and it breaks the nspawn runs with:
Spawning container TEST-01-BASIC--1 on /var/tmp/systemd-test.0kzKzL/nspawn-root.
Press ^] three times within 1s to kill container.
systemd 239 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP
+BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=legacy)
Detected virtualization systemd-nspawn.
Detected architecture x86-64.
Welcome to CentOS Stream 9!
Set hostname to <systemd-testsuite>.
Initializing machine ID from container UUID.
Failed to add address 127.0.0.1 to loopback interface: Operation not permitted
Failed to add address ::1 to loopback interface: Operation not permitted
Failed to bring loopback interface up: Operation not permitted
Found cgroup on /sys/fs/cgroup/systemd, legacy hierarchy
Using cgroup controller name=systemd. File system hierarchy is at /sys/fs/cgroup/systemd.
Failed to install release agent, ignoring: No such file or directory
Failed to create /init.scope control group: Operation not permitted
Failed to allocate manager object: Operation not permitted
[!!!!!!] Failed to allocate manager object, freezing.
Freezing execution.
Trying to halt container. Send SIGTERM again to trigger immediate termination.
Container TEST-01-BASIC--1 terminated by signal KILL.
[0] redhat-plumbers/systemd-rhel8#2861 parent e4f1f24 commit 7a37f0b
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
158 | 171 | | |
159 | 172 | | |
160 | 173 | | |
| |||
0 commit comments