RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2007758 - systemd-nspawn : issue with name resolution within f35+ mock buildroot from an EL8 host
Summary: systemd-nspawn : issue with name resolution within f35+ mock buildroot from a...
Keywords:
Status: CLOSED DUPLICATE of bug 1992708
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: systemd
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-24 19:07 UTC by Xavier Bachelot
Modified: 2021-11-26 09:52 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-26 09:52:33 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-98179 0 None None None 2021-09-24 19:19:03 UTC

Description Xavier Bachelot 2021-09-24 19:07:00 UTC
Description of problem:
I have been trying to build Fedora 35 packages with mock running on an EL8 host.
By default, mock is using systemd-nspawn.
There is an issue with name resolution from within the container.
Same issue with a Fedora 36 buildroot.
However, no issue with a Fedora 34 buildroot.
And indeed, no issue with name resolution on the EL8 host.

After hunting the issue with the fine folks from #fedora-buildsys, I've been instructed to file a bug against systemd, in the hope the issue will be routed to the proper component.


Version-Release number of selected component (if applicable):
systemd-239-45.el8_4.3.x86_64
Not sure which components NVR are relevant, let me know what's needed exactly, I'll fill in the blanks.

How reproducible:
Always

Steps to Reproduce:
1. sudo dnf install mock
2. usermod -G mock <some user>
3. mock -r fedora-35-x86_64 init

Actual results:
fedora                                                                                                                                                                                      0.0  B/s |   0  B     00:00    
Errors during downloading metadata for repository 'fedora':
  - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-35&arch=x86_64 [getaddrinfo() thread failed to start]
Error: Failed to download metadata for repo 'fedora': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-35&arch=x86_64 [getaddrinfo() thread failed to start]
ERROR: Command failed: 
 # /usr/bin/systemd-nspawn -q -M 7a694479a58649e48f2d3be341ebdbb4 -D /var/lib/mock/fedora-35-x86_64-bootstrap/root -a --capability=cap_ipc_lock --bind=/tmp/mock-resolv.7kr80qv4:/etc/resolv.conf --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/var/lib/mock/fedora-35-x86_64/root/installation-homedir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$  --setenv=LANG=C.UTF-8 --setenv=LC_MESSAGES=C.UTF-8 --resolv-conf=off /usr/bin/dnf --installroot /var/lib/mock/fedora-35-x86_64/root/ --releasever 35 --setopt=deltarpm=False --allowerasing --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock install @buildsys-build
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
fedora                                                                                                                                                                                      0.0  B/s |   0  B     00:00    
Errors during downloading metadata for repository 'fedora':
  - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-35&arch=x86_64 [getaddrinfo() thread failed to start]
Error: Failed to download metadata for repo 'fedora': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-35&arch=x86_64 [getaddrinfo() thread failed to start]


Expected results:
no error.

Additional info:
The workaround was to run mock with the '--isolation=simple' option, to avoid using the default '--isolation=nspawn'.

Comment 2 Anoop C S 2021-11-26 09:52:33 UTC

*** This bug has been marked as a duplicate of bug 1992708 ***


Note You need to log in before you can comment on or make changes to this bug.