Bug 1048520
Summary: | dns lookup not working during package installation | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Kay Williams <kay> | ||||||||||||||||
Component: | anaconda | Assignee: | Radek Vykydal <rvykydal> | ||||||||||||||||
Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | ||||||||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||||||||
Priority: | unspecified | ||||||||||||||||||
Version: | 7.0 | CC: | atodorov, dcbw, ljozsa, mbanas, rvykydal | ||||||||||||||||
Target Milestone: | rc | ||||||||||||||||||
Target Release: | --- | ||||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||
Whiteboard: | |||||||||||||||||||
Fixed In Version: | anaconda-19.31.87-1 | Doc Type: | Bug Fix | ||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||
Last Closed: | 2015-03-05 13:57:15 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
Kay Williams
2014-01-04 20:26:50 UTC
Please include the logs from /tmp/*log as individul text/plain attachments. I'm going to move this to NetworkManager, it should be handling the writing of /etc/resolv.conf when they network comes up. Created attachment 846330 [details]
anaconda.ifcfg.log
Created attachment 846331 [details]
anaconda.log
Created attachment 846332 [details]
anaconda.packaging.log
Created attachment 846333 [details]
anaconda.program.log
Created attachment 846334 [details]
anaconda.storage.log
Created attachment 846335 [details]
anaconda.xlog
Created attachment 846336 [details]
syslog
In the attached anaconda.packaging.log, the scriptlet failed error occurs at line 1553 after the package test.7-4.el7.noarch attempts the following command: curl http://google.com I think the problem here is that (unlike in rhel6) /etc/resolv.conf is not copied to chroot. Hello, any chance we can get a fix for this for rhel7? It is still broken in the release candidate. For rhel6, we have rpms with simple post scripts to download external content. Without a fix, the rhel7 rpm logic is more complex. 1. Install a script that downloads external content. 2. Install a systemd service that runs once to execute the script. 3. Use a post script that determines if we are running under anaconda. 4. If so, enable the systemd service so that it runs at first boot. 5. Else, simply run the script. I've prepared updates image for rhel7 rc2 (should work with rhel7 rc too) containing patch which copies /etc/resolv.conf to target system root before installing packages: It can by applied for testing by adding boot option: updates=http://rvykydal.fedorapeople.org/updates.chrootresolv.img Does it fix the issue for you? Yes, it works. Thank you! Verified with anaconda-19.31.111-1. Here's my test.spec for reference. Summary: Test package Name: test Version: 1 Release: 1%{?dist} License: GPLv2+ Group: Applications/System URL: http://fedoraproject.org/wiki/Anaconda Requires: curl %description Test package. %prep echo > /dev/null %build echo > /dev/null %install mkdir -p %{buildroot}/opt %files %dir /opt/ %post curl http://google.com %changelog * Mon Dec 01 2014 Alexander Todorov <atodorov.com> - 1-1 - test Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0312.html |