Bug 1673187

Summary: Using nfs and have the same root, anaconda will fail to mount both bases and fail to install
Product: Red Hat Enterprise Linux 8 Reporter: Devon <dshumake>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED WONTFIX QA Contact: Release Test Team <release-test-team>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.1CC: cww, jkonecny, pkenyon
Target Milestone: rc   
Target Release: 8.0   
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: 2020-02-12 19:51:13 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:

Description Devon 2019-02-06 21:39:25 UTC
Description of problem:

Using nfs and have the same root, anaconda will fail to mount both bases and fail to install

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

RHEL 8 nightly build

How reproducible:

Consistently

Steps to Reproduce:
1. Use an inst.ks and inst.repo path with the same root path.

BOOT_IMAGE=vmlinuz initrd=initrd.img inst.repo=nfs:nfsvers=4:10.12.212.245:/var/www/html/rhel8 inst.ks=nfs:10.12.212.245:/var/www/html/rhel8/rhel8.cfg inst.sshd


2. Install will fail with the following errors:

[    6.759543] localhost dracut-initqueue[1021]: RTNETLINK answers: Network is unreachable
[    7.603132] localhost iscsid[1017]: can't open InitiatorName configuration file /etc/iscsi/initiatorname.iscsi
[    7.603363] localhost iscsid[1017]: Warning: InitiatorName file /etc/iscsi/initiatorname.iscsi does not exist or does not contain a properly formatted InitiatorName. If using software iscsi (iscsi_tcp or ib_iser) or partial offload (bnx2i or cxgbi iscsi), you may not be able to log into or
[    7.603384] localhost iscsid[1017]: can't open InitiatorAlias configuration file /etc/iscsi/initiatorname.iscsi
[    8.799541] slrhel08.tsi-ad.com dracut-initqueue[1021]: anaconda mounting NFS repo at nfs:nfsvers=4:172.23.7.42:/redhat/EL8beta_64bit/
[    8.815145] slrhel08.tsi-ad.com kernel: FS-Cache: Loaded
[    8.842768] slrhel08.tsi-ad.com kernel: FS-Cache: Netfs 'nfs' registered for caching
[    8.848850] slrhel08.tsi-ad.com kernel: Key type dns_resolver registered
[    8.880364] slrhel08.tsi-ad.com kernel: NFS: Registering the id_resolver key type
[    8.880681] slrhel08.tsi-ad.com kernel: Key type id_resolver registered
[    8.880971] slrhel08.tsi-ad.com kernel: Key type id_legacy registered
[    8.980433] slrhel08.tsi-ad.com rpc.idmapd[726]: nss_getpwnam: name 'root' does not map into domain 'localdomain'
[    8.980714] slrhel08.tsi-ad.com rpc.idmapd[726]: nss_name_to_gid: name 'root' does not map into domain 'localdomain'
[    9.023946] slrhel08.tsi-ad.com dracut-initqueue[1021]: anaconda: found /run/install/repo//images/install.img
[    9.468855] slrhel08.tsi-ad.com kernel: loop: module loaded
[   10.123600] slrhel08.tsi-ad.com dracut-initqueue[1021]: anaconda: kickstart locations are: nfs:nfsvers=4:172.23.7.42:/redhat/EL8beta_64bit/isolinux/slrhel08.ks
[   10.123904] slrhel08.tsi-ad.com dracut-initqueue[1021]: anaconda: fetching kickstart from nfs:nfsvers=4:172.23.7.42:/redhat/EL8beta_64bit/isolinux/slrhel08.ks
[   10.130816] slrhel08.tsi-ad.com dracut-initqueue[1021]: cp: cannot stat '/run/install/repo/isolinux/slrhel08.ks/slrhel08.ks': No such file or directory
[   10.131889] slrhel08.tsi-ad.com dracut-initqueue[1021]: Warning: anaconda: failed to fetch kickstart from nfs:nfsvers=4:172.23.7.42:/redhat/EL8beta_64bit/isolinux/slrhel08.ks

Actual results:

Fails to mount the inst.ks path as the inst.repo path is already mounted on the /run/install/repo/ path 

Expected results:

Anaconda would recognize the root path is already mounted and install correctly.