Bug 1992708
Summary: | RHEL 9 Beta container fails to resolve with "getaddrinfo() thread failed to start" when run using systemd-nspawn on RHEL 8.4 | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Javier Peña <jpena> | ||||
Component: | systemd | Assignee: | Jacek Migacz <jmigacz> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Frantisek Sumsal <fsumsal> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 8.4 | CC: | anoopcs, chorn, dtardon, jmigacz, jpichon, markus.falb, praiskup, systemd-maint-list, xavier | ||||
Target Milestone: | beta | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2022-04-21 12:29:44 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Javier Peña
2021-08-11 15:39:39 UTC
(In reply to Javier Peña from comment #0) > Additional info: > This looks very similar to > https://bugzilla.redhat.com/show_bug.cgi?id=1990469, but in this case it is > happening on a RHEL 8.4 system with systemd-nspawn. However, the reason is almost certainly the same--seccomp rules. If it is really so can be easily checked--using systemd-239-48.el8 or newer--by running nspawn with SYSTEMD_SECCOMP=0 exported. (In reply to David Tardon from comment #1) > (In reply to Javier Peña from comment #0) > > Additional info: > > This looks very similar to > > https://bugzilla.redhat.com/show_bug.cgi?id=1990469, but in this case it is > > happening on a RHEL 8.4 system with systemd-nspawn. > > However, the reason is almost certainly the same--seccomp rules. If it is > really so can be easily checked--using systemd-239-48.el8 or newer--by > running nspawn with SYSTEMD_SECCOMP=0 exported. I have tested it with systemd-239-50.el8, and it works as you mentioned when SYSTEMD_SECCOMP=0 is set. Created attachment 1843681 [details] strace log Hello, reproduced with: # rpm -q kernel systemd selinux-policy-targeted container-selinux kernel-4.18.0-350.el8.x86_64 systemd-239-51.el8.x86_64 selinux-policy-targeted-3.14.3-83.el8.noarch container-selinux-2.170.0-1.module+el8.6.0+12855+99934f16.noarch # dnf --installroot /var/tmp/f35-root --disablerepo='*' --enablerepo f35 --repofrompath=f35,https://kojipkgs.fedoraproject.org/repos/f35-build/latest/x86_64/ --nogpgcheck install strace # /usr/bin/systemd-nspawn -q -D /var/tmp/f35-root -a --capability=cap_ipc_lock --bind=/etc/resolv.conf:/etc/resolv.conf --setenv=SHELL=/bin/bash --setenv=LC_MESSAGES=C.UTF-8 --resolv-conf=off bash // in container bash-5.1# rpm -q glibc curl glibc-2.34-8.fc35.x86_64 curl-7.79.1-1.fc35.x86_64 bash-5.1# strace curl https://fedoraproject.org (log attached) This breaks mock build with --isolation=nspawn on EL5: https://github.com/rpm-software-management/mock/issues/811 *** Bug 2007758 has been marked as a duplicate of this bug. *** > This breaks mock build with --isolation=nspawn on EL5:
Meh, what a typo ... I meant that it breaks mock on EL8.
Is this going to be ever considered for a fix in EL8? Or is this a clear WONTFIX/NOTABUG? Just thinking about what we should do in Mock (see the issue link mentioned before). Is bz2026147 related? Fedora containers not running properly out of the box on non-Fedora hypervisors is not good.. (In reply to Pavel Raiskup from comment #7) > Is this going to be ever considered for a fix in EL8? Or is this a clear > WONTFIX/NOTABUG? Just thinking about what we should do in Mock (see > the issue link mentioned before). You can export SYSTEMD_SECCOMP=0 as suggested above. Yes, done in mock-2.16-1. *** This bug has been marked as a duplicate of bug 2040247 *** |