Skip to content

Improve error handling in private zone discovery#100

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
Miciah:improve-error-handling-in-private-zone-discovery
Jan 11, 2019
Merged

Improve error handling in private zone discovery#100
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
Miciah:improve-error-handling-in-private-zone-discovery

Conversation

@Miciah
Copy link
Contributor

@Miciah Miciah commented Jan 11, 2019

Follow-up to #99.

  • pkg/dns/aws/dns.go (discoverZones): Use kerrors.NewAggregate to combine error values from GetResourcesPages and its callback.

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 11, 2019
Follow-up to commit 2526a4c.

* pkg/dns/aws/dns.go (discoverZones): Use kerrors.NewAggregate to combine
error values from GetResourcesPages and its callback.
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 11, 2019
@Miciah Miciah force-pushed the improve-error-handling-in-private-zone-discovery branch from dde542e to eea402f Compare January 11, 2019 17:35
err = innerError
}
if err != nil {
if err := kerrors.NewAggregate([]error{innerError, outerError}); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonder why this doesn't take varargs 🤨

@ironcladlou
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 11, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ironcladlou, Miciah

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Miciah
Copy link
Contributor Author

Miciah commented Jan 11, 2019

level=error msg="\t* module.vpc.aws_lb.api_external: 1 error occurred:"
level=error msg="\t* aws_lb.api_external: Error creating Application Load Balancer: InvalidSubnet: VPC vpc-0d60037277a84904f has no internet gateway"
level=error msg="\tstatus code: 400, request id: 03227403-15c9-11e9-a368-69dd23774112"

/retest

@Miciah
Copy link
Contributor Author

Miciah commented Jan 11, 2019

For the record, I checked the operator's logs from the e2e-aws-operator job, and the "failed to discover hosted zones: couldn't find private hosted zone" errors are gone. (I wanted to check the logs on #99, but it merged before I had the chance to look at the logs from a successful test run.)

@openshift-merge-robot openshift-merge-robot merged commit d7b1f14 into openshift:master Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants