RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1012568 - ifup-eth aborts when dhcp fails, despite aliases remaining to be brought up
Summary: ifup-eth aborts when dhcp fails, despite aliases remaining to be brought up
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: initscripts
Version: 6.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Lukáš Nykrýn
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-26 16:23 UTC by Clarence Risher
Modified: 2016-11-25 13:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-26 18:29:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Clarence Risher 2013-09-26 16:23:47 UTC
Description of problem:
If eth0 is configured to use dhcp and dhclient (called by ifup-eth) fails to acquire a lease then ifup-eth will "exit 1". This skips running ifup-post and ifup-aliases, so any aliases to eth0 are not brought up regardless of their configuration.

Version-Release number of selected component (if applicable):
9.03.38-1.el6

How reproducible:
Always

Steps to Reproduce:
1. configure ifcfg-eth0 to use DHCP
2. configure ifcfg-eth0:1 to use a static IP
3. `ifup eth0`

Actual results:
dhclient fails to get an ip for eth0, script exits, eth0:1 is not brought up

Expected results:
eth0:1 is up and configured. (state of eth0 is not important; being up and unconfigured is a possibility)

Additional info:

Comment 2 Lukáš Nykrýn 2013-09-26 18:29:34 UTC
This is a little bit intended. When "primary" device with dhcp fails, there is something wrong with the network and we should skip the interface and move to the next one. Only non-fatal failure of dhcp is the case where there is working ipv6 dhcp on that network. 
And also changing this functionality would require huge changes in the code. So for both of these reasons this is WONTFIX for me.

Comment 3 Clarence Risher 2013-09-26 18:40:26 UTC
I disagree with both of your reasons, separately.

Not having a DHCP server is not something "wrong with the network". Just off the top of my head, a plausible use case here is a laptop. eth0 configured for DHCP for when the laptop is plugged in at home, eth0:1 configured with a static IP for when the laptop is plugged in at work (where there isn't a DHCP server).

Also, this particular misbehavior can be fixed simply by commenting out the "exit" in question, which results in eth0 being up and [partially] unconfigured, and eth0:1 being up and configured. If a different behavior is desired then that might "require huge changes in the code", but *A* solution exists with a trivial change.

Comment 4 Václav Pavlín 2013-09-27 11:39:45 UTC
Hi Clarence,

I agree with opinion in Comment #3 that if DHCP does not work on the network and we expect it be there, interface and it's aliases should be skipped. This comes from the idea that network initscript is intended to be used for static configuration. 

WRT. trivial code changes, it might be needed not only to solve how to deal with partially configured interface, but with static routing as well.

Comment 5 Clarence Risher 2013-10-22 15:10:45 UTC
Even if we agree that the interface should be skipped when DHCP is missing, I don't see where the leap to the aliases being skipped comes from.

If a primary interface could have a static IP while an alias had DHCP, then this would make more sense, because then DHCP could fail without breaking anything. But DCHP/static pairs are forced to come in that order, so skipping the static alias because the dynamic address failed makes no sense to me.


Note You need to log in before you can comment on or make changes to this bug.