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 1363831 - No nameserver in /etc/resolv.conf after iSCSI installation with static IP address
Summary: No nameserver in /etc/resolv.conf after iSCSI installation with static IP add...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: anaconda
Version: 7.3
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
Milan Navratil
URL:
Whiteboard:
Depends On:
Blocks: 1256306
TreeView+ depends on / blocked
 
Reported: 2016-08-03 16:47 UTC by Jan Stodola
Modified: 2020-12-15 07:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
No name server is included in `/etc/resolv.conf` after an iSCSI installation with a static IP address When connecting to the root file system on an iSCSI target from an interface with a static IP address, the name server is not configured on the installed system. To work around this problem, add the "nameserver=<IP>" kernel option to the boot loader configuration of the installed system.
Clone Of:
Environment:
Last Closed: 2020-12-15 07:44:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Stodola 2016-08-03 16:47:08 UTC
Description of problem:
After kickstart installation with root file system on iSCSI target and using static IP configuration during the installation, /etc/resolv.conf on installed system doesn't contain any nameserver= option:

[root@localhost ~]# cat /etc/resolv.conf
# Generated by NetworkManager
[root@localhost ~]#

Nameserver was set during the installation using the nameserver= boot option.

The problem is that /etc/sysconfig/network-scripts/ifcfg-eth0 is replaced during boot by ifcfg-eth0 generated by dracut initrd. It's caused by rhel-import-state.service and it's considered as an expected behavior (see bug 1163829).
Since nameserver= is not present on the kernel command line when booting installed system, dracut's ifcfg-eth0 doesn't contain DNSX=<IP> option, which results in no nameserver set on running system.

There is a workaround to manually add "nameserver=<IP>" on the kernel command line when booting the system.
A possible solution is to let anaconda add the nameserver= boot option(s) if static IP configuration is used by dracut to mount a network storage device.

Version-Release number of selected component (if applicable):
RHEL-7.2
RHEL-7.3-Alpha (anaconda-21.48.22.81-1.el7)

How reproducible:
always

Steps to Reproduce:
1. prepare an iSCSI target
2. run kickstart installation with rootfs on iSCSI, use static IP configuration on the kernel command line

kickstart snippet:

iscsiname iqn-2012-12.com.redhat:76765
iscsi --ipaddr=192.168.122.27 --target=iqn.2009-02.com.example:for.all
bootloader --location=mbr
zerombr
clearpart --all --initlabel
part /boot --asprimary --size=500
part swap --fstype=swap --recommended
part / --grow --size=2048 --ondisk=/dev/disk/by-id/scsi-1IET_00010001

3. check /etc/resolv.conf on installed system

Actual results:
no nameserver in /etc/resolv.conf

Expected results:
nameserver(s) present in /etc/resolv.conf

Comment 5 RHEL Program Management 2020-12-15 07:44:02 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


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