Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/types/aws/validation: Require machine-pool zones in platform region #1469

Merged
merged 1 commit into from
Mar 28, 2019

Conversation

wking
Copy link
Member

@wking wking commented Mar 26, 2019

In the excitement of a zone outage, this one bit me, leading to errors like:

ERROR  * module.masters.aws_network_interface.master[1]: key "us-east-1c" does not exist in map var.az_to_subnet_id in:
ERROR
ERROR ${var.az_to_subnet_id[var.availability_zones[count.index]]}
ERROR  * module.masters.aws_network_interface.master[2]: key "us-east-1d" does not exist in map var.az_to_subnet_id in:
ERROR
ERROR ${var.az_to_subnet_id[var.availability_zones[count.index]]}
ERROR  * module.masters.aws_network_interface.master[0]: key "us-east-1a" does not exist in map var.az_to_subnet_id in:
ERROR
ERROR ${var.az_to_subnet_id[var.availability_zones[count.index]]}
ERROR  * module.bootstrap.var.subnet_id: key "us-east-1a" does not exist in map module.vpc.az_to_public_subnet_id in:
ERROR
ERROR ${module.vpc.az_to_public_subnet_id[var.aws_master_availability_zones[0]]}

With this commit, we require zones in the configured region before getting into Terraform, and we describe the mismatch with words that are hopefully more obvious to jumpy users ;).

@wking
Copy link
Member Author

wking commented Mar 26, 2019

CC @staebler

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 26, 2019
@abhinavdahiya
Copy link
Contributor

/approve

@abhinavdahiya abhinavdahiya requested review from staebler and removed request for russellb and aaronlevy March 26, 2019 17:35
Copy link
Contributor

@staebler staebler left a comment

Choose a reason for hiding this comment

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

Looks good. Just one nit.

pkg/types/aws/validation/machinepool.go Outdated Show resolved Hide resolved
In the excitement of a zone outage, this one bit me [1], leading to
errors like [2]:

  ERROR  * module.masters.aws_network_interface.master[1]: key "us-east-1c" does not exist in map var.az_to_subnet_id in:
  ERROR
  ERROR ${var.az_to_subnet_id[var.availability_zones[count.index]]}
  ERROR  * module.masters.aws_network_interface.master[2]: key "us-east-1d" does not exist in map var.az_to_subnet_id in:
  ERROR
  ERROR ${var.az_to_subnet_id[var.availability_zones[count.index]]}
  ERROR  * module.masters.aws_network_interface.master[0]: key "us-east-1a" does not exist in map var.az_to_subnet_id in:
  ERROR
  ERROR ${var.az_to_subnet_id[var.availability_zones[count.index]]}
  ERROR  * module.bootstrap.var.subnet_id: key "us-east-1a" does not exist in map module.vpc.az_to_public_subnet_id in:
  ERROR
  ERROR ${module.vpc.az_to_public_subnet_id[var.aws_master_availability_zones[0]]}

With this commit, we require zones in the configured region before
getting into Terraform, and we describe the mismatch with words that
are hopefully more obvious to jumpy users ;).

[1]: openshift/release#3204 (comment)
[2]: openshift/release#3204 (comment)
Copy link
Contributor

@staebler staebler left a comment

Choose a reason for hiding this comment

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

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, staebler, wking

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [abhinavdahiya,staebler,wking]

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

@wking
Copy link
Member Author

wking commented Mar 26, 2019

e2e-aws:

level=error msg="\t* aws_route_table_association.private_routing.1: timeout while waiting for state to become 'success' (timeout: 5m0s)"

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 9d6030a into openshift:master Mar 28, 2019
@wking wking deleted the verify-zone-in-region branch March 28, 2019 06:49
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants