Bug 132361

Summary: /sbin/dhclient-script does not like 'netprofiles'
Product: [Fedora] Fedora Reporter: Manuel Moreno <manolo>
Component: dhcpAssignee: Jason Vas Dias <jvdias>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-15 09:49:10 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 123268    

Description Manuel Moreno 2004-09-11 13:10:47 EDT
Description of problem:

/sbin/dhclient-script does not work with 'netprofiles' when several of
them use dhcp on the same physical interface

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

How reproducible:

Steps to Reproduce:
1. create two profiles that use dhcp on the same interface i.e eth0
eth0-profa and eth0-profb
2. try to change profiles with system-config-network-cmd -p profa -a
Actual results:
error setting interface parameters

Expected results:
dhcp setting right interface parameters

Additional info:

this seems to fix it:

diff -uNa dhclient-script.old dhclient-script
--- dhclient-script.old 2004-09-11 17:58:48.065313456 +0100
+++ dhclient-script     2004-09-11 17:59:06.548503584 +0100
@@ -83,7 +83,7 @@
 [ -f ../network ] && . ../network
 [ -f ../networking/network ] && . ../networking/network

+CONFIG=`fgrep -il "DEVICE=${interface}" ifcfg-* | cut -f2 -d '-'`

 need_config ${CONFIG}
Comment 1 Jason Vas Dias 2004-09-15 09:49:10 EDT
 This has been fixed in latest Fedora Core release (FC3t2).

Comment 2 John Flanagan 2004-12-21 14:41:46 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.