Project

General

Profile

Bug #22173

Unclear error message when forward IP does not reverse resolve

Added by Stephen Benjamin over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Installer
Target version:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1516965

Description of problem:

Version-Release number of selected component (if applicable):
Build: Satellite 6.3.0 snap25

How reproducible:
Always

Steps to Reproduce:
[root@bkr-hv01-guest04 ~]# satellite-installer --scenario capsule -v --foreman-proxy-content-parent-fqdn "satellite.com" --foreman-proxy-register-in-foreman "true" --foreman-proxy-foreman-base-url "https://satellite.com" --foreman-proxy-trusted-hosts "satellite.com" --foreman-proxy-trusted-hosts "capsule.com" --foreman-proxy-oauth-consumer-key "pPBcMRLUMEffq4QQNH9uq83H5iwf32QY" --foreman-proxy-oauth-consumer-secret "aH29zBcmPAWgThPjRx45UoSnTrWhsMyL" --foreman-proxy-content-pulp-oauth-secret "87jJdEDZ9eXm4Y32hXN6SBm9dyJffJZi" --foreman-proxy-content-certs-tar "/root/capsule.com-certs.tar" --puppet-server-foreman-url "https://satellite.com"
/usr/share/ruby/resolv.rb:128:in `getname': no name for 2620:52:0:1329:216:XXXX:XXXX:1365 (Resolv::ResolvError)
from /usr/share/ruby/resolv.rb:64:in `getname'
from /usr/share/katello-installer-base/checks/dns.rb:27:in `block in <main>'
from /usr/share/katello-installer-base/checks/dns.rb:21:in `each'
from /usr/share/katello-installer-base/checks/dns.rb:21:in `<main>'
Your system does not meet configuration criteria
[ INFO 2017-11-23 11:36:50 verbose] Executing hooks in group pre_migrations
[ INFO 2017-11-23 11:36:50 verbose] All hooks in group pre_migrations finished
[ INFO 2017-11-23 11:36:50 verbose] Executing hooks in group boot
[ INFO 2017-11-23 11:36:50 verbose] All hooks in group boot finished
[ INFO 2017-11-23 11:36:50 verbose] Executing hooks in group init
[ INFO 2017-11-23 11:36:50 verbose] All hooks in group init finished
[ INFO 2017-11-23 11:36:50 verbose] Loading default values from puppet modules...
[ INFO 2017-11-23 11:36:50 verbose] ... finished
[ INFO 2017-11-23 11:36:50 verbose] Executing hooks in group pre_values
[ INFO 2017-11-23 11:36:50 verbose] All hooks in group pre_values finished
[ INFO 2017-11-23 11:36:50 verbose] Running installer with args [["--scenario", "capsule", "-v", "--foreman-proxy-content-parent-fqdn", "satellite.com", "--foreman-proxy-register-in-foreman", "true", "--foreman-proxy-foreman-base-url", "https://satellite.com", "--foreman-proxy-trusted-hosts", "satellite.com", "--foreman-proxy-trusted-hosts", "capsule.com", "--foreman-proxy-oauth-consumer-key", "pPBcMRLUMEffq4QQNH9uq83H5iwf32QY", "--foreman-proxy-oauth-consumer-secret", "aH29zBcmPAWgThPjRx45UoSnTrWhsMyL", "--foreman-proxy-content-pulp-oauth-secret", "87jJdEDZ9eXm4Y32hXN6SBm9dyJffJZi", "--foreman-proxy-content-certs-tar", "/root/capsule.com-certs.tar", "--puppet-server-foreman-url", "https://satellite.com"]]
[ INFO 2017-11-23 11:36:50 verbose] Installer finished in 0.771911764 seconds

[root@bkr-hv01-guest04 ~]# hostname -f
capsule.com

[root@bkr-hv01-guest04 ~]# hostname
capsule.com

[root@bkr-hv01-guest04 ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:16:3e:3e:13:65 brd ff:ff:ff:ff:ff:ff
inet 10.X.X.X/24 brd 10.19.41.255 scope global dynamic eth0
valid_lft 61987sec preferred_lft 61987sec
inet6 2620:52:0:XXXX:216:3eff:fe3e:1365/64 scope global noprefixroute dynamic
valid_lft 2591860sec preferred_lft 604660sec
inet6 fe80::216:XXXX:fe3e:1365/64 scope link
valid_lft forever preferred_lft forever

Actual results:
Capsule is not installed

Expected results:
Capsule should be installed as it has a IPv4

Additional info:


Related issues

Copied to Installer - Bug #22291: IPv6 doesn't reverse resolve correctly on older rubiesClosed2018-01-08

Associated revisions

Revision 814d70b0 (diff)
Added by Stephen Benjamin over 3 years ago

fixes #22173 - clear msg when fwd ip doesn't resolve (#573)

When an IP address is included in the forward resolution, but has no
reverse record at all, we throw an exception instead of showing an
error message.

Before:
/usr/share/ruby/resolv.rb:130:in `getname': no name for 192.168.1.6
(Resolv::ResolvError) from /usr/share/ruby/resolv.rb:66:in `getname'
from ./dns.rb:27:in `block in <main>' from ./dns.rb:21:in `each'
from ./dns.rb:21:in `<main>'

After:
Forward DNS 192.168.1.6 did not reverse resolve to any hostname.

Revision d493c6d4 (diff)
Added by Stephen Benjamin over 3 years ago

refs #22173 - handle ipv6 on broken rubies (#579)

Revision db77a12b (diff)
Added by Sean O'Keeffe over 3 years ago

Fixes #22173 - Rework Reverse DNS error

Apparently most people find DNS hard, lets make it super simple for them.

History

#1 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-installer/pull/573 added

#2 Updated by Anonymous over 3 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#3 Updated by Justin Sherrill over 3 years ago

  • Legacy Backlogs Release (now unused) set to 284
  • Subject changed from Unclear error message when forward IP does not reverse resolve to Unclear error message when forward IP does not reverse resolve

#4 Updated by The Foreman Bot over 3 years ago

  • Pull request https://github.com/Katello/katello-installer/pull/579 added

#5 Updated by Stephen Benjamin over 3 years ago

  • Copied to Bug #22291: IPv6 doesn't reverse resolve correctly on older rubies added

#6 Updated by The Foreman Bot over 3 years ago

  • Pull request https://github.com/Katello/katello-installer/pull/593 added

Also available in: Atom PDF