Bug 541198

Summary: Local NFS mount fails with DNS error when network down
Product: [Fedora] Fedora Reporter: James Morris <jmorris>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: steved
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nfs-utils-1.2.3-2.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-06 14:01:46 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:

Description James Morris 2009-11-25 08:10:47 UTC
Description of problem:

When I try and mount a local filesystem while disconnected from the network, the mount fails with a DNS error.


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

nfs-utils-1.2.1-1.fc12.i686

How reproducible:

Always

Steps to Reproduce:
1. Drop network interfaces
2. mount -t nfs 127.0.0.1:/opt/export /mnt/test
3.
  
Actual results:

mount.nfs: DNS resolution failed for 127.0.0.1: Name or service not known

Expected results:

Success.

Additional info:

I noticed this in F11, too.  It seems that the tool is not using /etc/hosts (possibly an incorrect resolver library call).

This makes it difficult to do NFS development when disconnected from the network, such as when across a large ocean.

Comment 1 Steve Dickson 2009-12-10 20:06:22 UTC
I believe this is fixed in nfs-utils-1.2.1-1... Please 
do an yum update nfs-utils and verify....

Comment 2 James Morris 2009-12-11 00:25:38 UTC
Nope, still broken.

Comment 3 Steve Dickson 2010-12-06 14:01:46 UTC
Fixed in nfs-utils-1.2.3-2.fc14