Localhost lo interface accessibility from probe

Solution In Progress - Updated -

Issue

  • I am trying to run health probe on RHEL7 server:https://github.com/kubernetes/contrib/tree/master/exec-healthz
  • In one terminal I’m running :
# bin/amd64/exechealthz --cmd "ls /tmp/test"
  • Service is running and listening on all interfaces:
# ss -nap| grep 8080
tcp    LISTEN     0      128      :::8080                 :::*                   users:(("exechealthz",pid=27605,fd=3))

# ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.037 ms
  • On other terminal trying to check status:
[# curl http://localhost:8080/healthz
<HTML><HEAD><TITLE>Network Error</TITLE></HEAD>
<BODY>
<FONT face="Helvetica"><big><strong></strong></big><BR></FONT>
<blockquote>
<TABLE border=0 cellPadding=1 width="80%">
<TR><TD>
<FONT face="Helvetica"><big>Network Error (dns_unresolved_hostname)</big><BR><BR></FONT>
</TD></TR><TR><TD><FONT face="Helvetica">Your requested host "localhost" could not be resolved by DNS.</FONT></TD></TR><TR><TD>
<FONT face="Helvetica"></FONT></TD></TR><TR><TD><FONT face="Helvetica" SIZE=2><BR>For assistance, contact your network support team.</FONT></TD></TR>
</TABLE>
</blockquote>
</FONT>
</BODY></HTML>
  • But asking for status on public IP of server is providing expected response
# curl http://192.168.100.10:8080/healthz
ok
  • First I thought that it might be a DNS issue, but:
# curl http://127.0.0.1:8080/healthz
<HTML>
<HEAD><TITLE>Redirection</TITLE></HEAD>
<BODY><H1>Redirect</H1></BODY>
  • Lo connection is not active in nmcli is it OK ?
  • How to configure it so I will get response on localhost.

Environment

  • Red Hat Enterprise Linux 7.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.