Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 237663

Summary: mock chroot environment has broken /etc/resolv.conf
Product: [Retired] Fedora Hosted Projects Reporter: Carl Roth <roth>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dcantrell, jmorris
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 0.7.1-1.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-21 20:04:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Carl Roth 2007-04-24 15:53:03 UTC
Description of problem:

Mock creates a chroot environment with the nameserver in /etc/resolv.conf
hard-coded to 192.168.1.1.  Why is this?

For sites that don't use that as a default LAN configuration, it causes builds
for software bits that require networking to fail.  A good example is emacs and
its dependent packages -- starting emacs in any form triggers a lookup on the
local hostname.

Version-Release number of selected component (if applicable):

mock-0.6.11-1.fc6

How reproducible:

Always

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 John Morris 2007-05-13 03:51:01 UTC
*** Bug 238937 has been marked as a duplicate of this bug. ***

Comment 2 Clark Williams 2007-06-07 20:23:38 UTC
I don't know why that gets created. 

We're looking at adding an option such as:

    config_opts['use_ost_resolv'] = True

To trigger a copy of resolv.conf from /etc to <chroot>/etc



Comment 3 Fedora Update System 2007-06-14 21:12:20 UTC
mock-0.7.1-1.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Jesse Keating 2007-06-16 12:08:38 UTC

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

Comment 5 Fedora Update System 2007-06-21 20:03:54 UTC
mock-0.7.1-1.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.