Bug 1952000

Summary: Resolv::DNS: ruby:2.7/ruby: timeouts if multiple IPv6 name servers are given and address contains leading zero [rhel-8] [rhel-8.4.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: rubyAssignee: Vít Ondruch <vondruch>
Status: CLOSED ERRATA QA Contact: Jan Houska <jhouska>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.3CC: djez, jhouska, pvalena, vondruch
Target Milestone: betaKeywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ruby-2.7.3-136.module+el8.4.0+10728+4c884998 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1944227 Environment:
Last Closed: 2021-06-29 16:01:49 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:
Bug Depends On: 1944227    
Bug Blocks:    

Comment 7 Jan Houska 2021-05-25 09:22:35 UTC
VERIFIED


NEW PASS
ruby-2.7.3-136.module+el8.4.0+10728+4c884998


::   Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 17:02:11 ] :: [   INFO   ] :: using '/var/tmp/beakerlib-126136375/backup' as backup destination
Redirecting to /bin/systemctl status named.service
Redirecting to /bin/systemctl start named.service
:: [ 17:02:12 ] :: [   LOG    ] :: rlServiceStart: Service named started successfully
:: [ 17:02:12 ] :: [  BEGIN   ] :: Run reproducer :: actually running 'timeout 3 ruby -rresolv -e 'puts Resolv::DNS.new.getresource("localhost.", Resolv::DNS::Resource::IN::A).address' 2>&1 | tee output.txt'
127.0.0.1
:: [ 17:02:12 ] :: [   PASS   ] :: Run reproducer (Expected 0, got 0)
:: [ 17:02:12 ] :: [   PASS   ] :: File 'output.txt' should contain '127.0.0.1' 
Redirecting to /bin/systemctl status named.service
Redirecting to /bin/systemctl stop named.service
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 1s
::   Assertions: 2 good, 0 bad
::   RESULT: PASS

** Test PASS Score:0
Uploading resultoutputfile.log .done


OLD FAIL:
ruby-2.7.1-133.module+el8.3.0+7192+4e3a532a



:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 05:21:42 ] :: [   INFO   ] :: using '/var/tmp/beakerlib-RmgEWpM/backup' as backup destination
Redirecting to /bin/systemctl status named.service
Redirecting to /bin/systemctl start named.service
:: [ 05:21:42 ] :: [   LOG    ] :: rlServiceStart: Service named started successfully
:: [ 05:21:42 ] :: [  BEGIN   ] :: Run reproducer :: actually running 'timeout 3 ruby -rresolv -e 'puts Resolv::DNS.new.getresource("localhost.", Resolv::DNS::Resource::IN::A).address' 2>&1 | tee output.txt'
:: [ 05:21:45 ] :: [   FAIL   ] :: Run reproducer (Expected 0, got 124)
:: [ 05:21:45 ] :: [   FAIL   ] :: File 'output.txt' should contain '127.0.0.1' 
Redirecting to /bin/systemctl status named.service
Redirecting to /bin/systemctl stop named.service
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 4s
::   Assertions: 0 good, 2 bad
::   RESULT: FAIL (Test)

Comment 11 errata-xmlrpc 2021-06-29 16:01:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: ruby:2.7 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:2584