Bug 2077904

Summary: AWS installconfig ValidateForProvisioning always provides blank values to validate zone records
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: InstallerAssignee: Brent Barbachem <bbarbach>
Installer sub component: openshift-installer QA Contact: Yunfei Jiang <yunjiang>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: medium    
Version: 4.11   
Target Milestone: ---   
Target Release: 4.10.z   
Hardware: Unspecified   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-07 13:24:32 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: 2074659    
Bug Blocks:    

Description OpenShift BugZilla Robot 2022-04-22 14:34:05 UTC
+++ This bug was initially created as a clone of Bug #2074659 +++

Thanks for opening a bug report!
Before hitting the button, please fill in as much of the template below as you can.
If you leave out information, it's harder to help you.
Be ready for follow-up questions, and please respond in a timely manner.
If we can't reproduce a bug we might close your issue.
If we're wrong, PLEASE feel free to reopen it and explain why.

Version: 4.11 (found)

will need to be back-ported

Platform:

AWS 

What happened?

Testing the ValidateForProvisioning functionality revealed that the validateZoneRecords function always receives an empty string for zoneName and zonePath. The two variables are declared at the top of the function, but they are locally set in the if/else below so they go out of scope before making it to the validateZoneRecords function.

--- Additional comment from bbarbach on 2022-04-12 18:11:41 UTC ---

Provides False negative when searching for DNS Records. Empty String will always appear.

Comment 4 Yunfei Jiang 2022-06-02 06:28:26 UTC
verified. PASS.

OCP version: 4.10.0-0.nightly-2022-06-01-204608

FATAL failed to fetch Terraform Variables: failed to fetch dependency of "Terraform Variables": failed to generate asset "Platform Provisioning Check": aws.hostedZone: Internal error: could not list record sets for domain "Z0246615552H2PSAGIZW": hosted zone domain "yunjiang-0602ra.qe.devcluster.openshift.com." is not a parent of the cluster domain "yunjiang-rr1.qe.devcluster.openshift.com."

xref: https://bugzilla.redhat.com/show_bug.cgi?id=2074659#c10

Comment 6 errata-xmlrpc 2022-06-07 13:24:32 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 (OpenShift Container Platform 4.10.17 bug fix 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/RHBA-2022:4882