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   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-15 13:49:10 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:
Bug Depends On:    
Bug Blocks: 123268    

Description Manuel Moreno 2004-09-11 17:10:47 UTC
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:
always

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
3.
  
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=$interface
+CONFIG=`fgrep -il "DEVICE=${interface}" ifcfg-* | cut -f2 -d '-'`

 need_config ${CONFIG}

Comment 1 Jason Vas Dias 2004-09-15 13:49:10 UTC
 This has been fixed in latest Fedora Core release (FC3t2).



Comment 2 John Flanagan 2004-12-21 19:41:46 UTC
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.

http://rhn.redhat.com/errata/RHBA-2004-566.html