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

Bug 238101

Summary: /etc/mock/defaults.cfg is missing setting for chroot resolv.conf
Product: [Retired] Fedora Hosted Projects Reporter: Tuomo Soini <tis>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dcantrell, roth
Target Milestone: ---   
Target Release: ---   
Hardware: All   
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:19 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:
Attachments:
Description Flags
add setting for resolv.conf contents into defaults.cfg none

Description Tuomo Soini 2007-04-27 06:57:37 UTC
Description of problem:

Some software like openssl tests use dns queries quite heavily when being built.
By default mock writes /etc/resolv.conf pointing dns queries to 192.168.1.1.
That's problem when 192.168.1.1 is not dns server in network.

The problem is that defaults.cfg which is default configuration file doesn't
even have setting for resolv.conf contents in chroot.

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

mock 0.6.13.

How reproducible:
Always.

Steps to Reproduce:
1. install and configure mock
2. try to rebuild openssl - it takes looong time.

Comment 1 Tuomo Soini 2007-04-27 06:57:37 UTC
Created attachment 153581 [details]
add setting for resolv.conf contents into defaults.cfg

Comment 2 Clark Williams 2007-06-07 20:11:27 UTC
How about we add an option to copy in the host /dev/resolv.conf? Something like:

   config_opts['use_host_resolv'] = True

Which would trigger a copy of resolv.conf from /etc/ to the chroot?


Comment 3 Tuomo Soini 2007-06-08 08:48:03 UTC
Very good idea. Other files needing same config treatment are:

/etc/hosts, sometimes resolver is not available on build host

/etc/localtime, time in mock root is several hours different from system time.


Comment 4 Fedora Update System 2007-06-14 21:12:17 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 5 Jesse Keating 2007-06-16 12:08:00 UTC
I can confirm that there is in fact a setting and if enabled (it is by default)
the host resolve.conf is indeed placed into the chroot and is functional.

Comment 6 Jesse Keating 2007-06-16 12:08:41 UTC
*** Bug 237663 has been marked as a duplicate of this bug. ***

Comment 7 Fedora Update System 2007-06-21 20:03:50 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.