Bug 1006986 - NoHostAvailableException: All host(s) tried for query failed
Summary: NoHostAvailableException: All host(s) tried for query failed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Documentation
Version: JON 3.2
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: GA
: ---
Assignee: Deon Ballard
QA Contact: Mike Foley
Deon Ballard
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-11 16:17 UTC by Heiko W. Rupp
Modified: 2014-05-10 03:42 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-10 03:42:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1010265 0 urgent CLOSED Installation fails if hostname is not on DNS 2021-02-22 00:41:40 UTC

Internal Links: 1010265

Description Heiko W. Rupp 2013-09-11 16:17:05 UTC
Users trying to install a fresh 4.8 / 4.9 fail with

> NoHostAvailableException: All host(s) tried for query failed 

We need make that work (automatically) and document what needs to be done or
how users can get going if the automatic setup fails

Comment 1 Heiko W. Rupp 2013-09-11 16:19:58 UTC
See e.g. https://community.jboss.org/thread/230190?start=0&tstart=0

Comment 2 Mike Thompson 2013-09-13 19:55:54 UTC
Further instigation (and some assistance with jsanda) was able to determine that this is an environment issue not a code issue. 

My /etc/hosts file (on OS/X) did not have an entry mapping ip to localhost:
192.168.1.X  localhost

After adding this entry, the installation proceeded without fail.

I have recreated the failing condition and then fix it using the /etc/hosts entry for ip --> localhost.

Comment 3 Heiko W. Rupp 2013-09-13 20:00:21 UTC
Mike and John, can you better explain what happened, what is the right setup (and perhaps add something to the installer to help users get this set up correctly)?

Perhaps improve the NoHostAvailableException to give some helpful text or a link to the docs at least

And then work with Deon to document this?

Comment 4 Mike Foley 2013-09-13 22:27:27 UTC
changing this to a doc bug.  

no code change.  and QE has tested install many times.

Comment 5 Mike Thompson 2013-09-16 20:55:13 UTC
(In reply to Mike Thompson from comment #2)
> Further instigation (and some assistance with jsanda) was able to determine
> that this is an environment issue not a code issue. 
> 
> My /etc/hosts file (on OS/X) did not have an entry mapping ip to localhost:
> 192.168.1.X  localhost
> 
> After adding this entry, the installation proceeded without fail.
> 
> I have recreated the failing condition and then fix it using the /etc/hosts
> entry for ip --> localhost.

More specifically, it looks like this happens if there is no DNS entry for the ip address. So you must provide the DNS either in DNS or in /etc/hosts.

Comment 6 Heiko W. Rupp 2013-09-24 18:48:13 UTC
This is related to Bug 1010265 (probably even a dup)

Comment 7 Simeon Pinder 2013-09-30 13:36:49 UTC
Moving into ER3 as didn't make it into ER2.

Comment 8 Heiko W. Rupp 2013-10-04 07:54:43 UTC
Remove the blocker on beta and set it to GA, as it is a docs task and the implementation has been taken care of in Bug 1010265

Comment 9 Deon Ballard 2014-05-10 03:42:58 UTC
Mass closure of bugs modified in 2013. All of these are in the currently-published docs.


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