Bug 2077904 - AWS installconfig ValidateForProvisioning always provides blank values to validate zone records
Summary: AWS installconfig ValidateForProvisioning always provides blank values to val...
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.11
Hardware: Unspecified
OS: All
Target Milestone: ---
: 4.10.z
Assignee: Brent Barbachem
QA Contact: Yunfei Jiang
Depends On: 2074659
TreeView+ depends on / blocked
Reported: 2022-04-22 14:34 UTC by OpenShift BugZilla Robot
Modified: 2022-06-07 13:24 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2022-06-07 13:24:32 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift installer pull 5835 0 None open [release-4.10] Bug 2077904:Fix empty string usage in ValidateForProvisioning 2022-05-26 01:00:54 UTC
Red Hat Product Errata RHBA-2022:4882 0 None None None 2022-06-07 13:24:46 UTC

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



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.


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