-
Notifications
You must be signed in to change notification settings - Fork 1.5k
pkg/asset/installconfig/aws: Extract regions from RHCOS metadata #1528
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
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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:
Approvers can indicate their approval by writing |
2e69f6b to
96c8b39
Compare
|
wouldn't the other way ie switching validation to use AMI regions from internal meta.json more sense... so that validation of install config catch the invalid region? |
96c8b39 to
fac8514
Compare
The previous install-config validation was overly-strict. For example, you can have a working install-config in a region that does not include an official RHCOS AMI as long as you specify your own AMI. For example, see my suggestion to QE here, and while we ended up closing that bug, I suspect other folks in cn-north-1 or us-gov-west-1 or similar places where we can't put official AMIs to need to do similar things. The issue with regions that have RH-published RHCOS AMIs is just with picking a default AMI. If you want to detect that at install-time, I can drop Rebased onto master with 96c8b39 -> fac85144a. |
trying to use master openshift-install So i'm not sure even copying will help the https://bugzilla.redhat.com/show_bug.cgi?id=1669396#c18 This PR changes the current behavior as it would pass install-config validation but then later on fail when trying to fetch image from meta.json. |
RHCOS grew support for this in 905db73 (data/data/rhcos.json: update the bootimage to 420.8.20190708.2 for CRI-O 1.14, 2019-07-03, openshift#1941). And until we get something like [1], we need this not-very-DRY bump to keep up. [1]: openshift#1528
|
/close closing without prejudice due to age. Please consider opening an issue or enhancement to discuss and bring consensus on the fix, or if you think this is still important in current state feel free to reopen. |
|
@abhinavdahiya: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Uncomment all of the regions in pkg/types/aws/validation (unwinding that part of bd88157, hack/build: Pin to RHCOS 400.7.20190306.0, 2019-03-12, openshift#1407). Instead, perform the "can we find an AMI for that region?" check directly in pkg/asset/installconfig/aws when we're building a list of regions for the wizard prompt. With this change, bumping the rhcos.json asset (via hack/update-rhcos-bootimage.py) will automatically keep the wizard prompt's choices in sync with the published AMIs.
So we can ensure we get the error we expect, instead of some other error.
So users can easily see what the alternatives are. Also soften the expected regexp so we don't have to bump it when we get a new RHCOS JSON file with a new region.
fac8514 to
b8a02dc
Compare
RHCOS grew support for this in 905db73 (data/data/rhcos.json: update the bootimage to 420.8.20190708.2 for CRI-O 1.14, 2019-07-03, openshift#1941). And until we get something like [1], we need this not-very-DRY bump to keep up. [1]: openshift#1528
|
This makes me nervous. The RHCOS build pipeline should not be the source of truth for the list of supported regions as it is just one of many pieces that have to be in place in order for the installation to succeed. |
|
What are the other pieces? |
RHCOS grew support for this in 905db73 (data/data/rhcos.json: update the bootimage to 420.8.20190708.2 for CRI-O 1.14, 2019-07-03, openshift#1941). And until we get something like [1], we need this not-very-DRY bump to keep up. [1]: openshift#1528
|
@wking: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
@wking: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1 similar comment
|
@wking: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Closing due to this being open for a long time, Please feel free to reopen /close |
|
@abhinavdahiya: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Builds on #1423 (spun off from here); I'll rebase after that lands.
Uncomment all of the regions in
pkg/types/aws/validationwhich had been commented out in (#1407). Instead, perform the "can we find an AMI for that region?" check directly inpkg/asset/installconfig/awswhen we're building a list of regions for the wizard prompt. With this change, bumping therhcos.jsonasset (viahack/update-rhcos-bootimage.py) will automatically keep the wizard prompt's choices in sync with the published AMIs.