Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1500723

Summary: dhclient-script still implicitly depends on initscripts
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: dhcpAssignee: Pavel Zhukov <pzhukov>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: dcantrell, jpopelka, pemensik, pzhukov, thozza
Target Milestone: ---   
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: 2017-10-11 12:06:03 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:
Bug Depends On:    
Bug Blocks: 910269    

Description Richard W.M. Jones 2017-10-11 11:38:26 UTC
Description of problem:

dhcp used to depend on initscripts, but that was removed in
bug 1098172.

We build a minimal Fedora-based appliance.  We run ‘dhclient eth0’
to bring up the network interface.  This has recently broken:

+ dhclient --version
+ dhclient eth0
/usr/sbin/dhclient-script: line 813: cd: /etc/sysconfig/network-scripts: No such file or directory
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
[    1.136759] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x256412811b4, max_idle_ns: 440795306987 ns
/usr/sbin/dhclient-script: line 813: cd: /etc/sysconfig/network-scripts: No such file or directory
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory


initscripts used to be pulled in as a dependency of something else,
but now initscripts is no longer pulled in, and that appears to break
dhclient.

Looking at dhclient-script, it still has plenty of dependencies on
/etc/sysconfig/network-scripts from initscripts.

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

dhcp-client-4.3.5-9.fc26.x86_64

How reproducible:

100%

Steps to Reproduce:
1. Build a minimal Fedora appliance, including dhcp-client but not initscripts.
2. Run dhclient eth0.

Comment 1 Richard W.M. Jones 2017-10-11 12:06:03 UTC
So I originally thought that these messages were the problem
causing dhcp to fail.  However it turns out that the real problem
was libvirt not properly setting up the network (even dhcpcd could
not bring up the network).  I fixed this by upgrading libvirt ...