-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Alibabacloud recommitted and fixed #5333
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
Alibabacloud recommitted and fixed #5333
Conversation
|
Hi @bd233. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
eed122e to
ccdc690
Compare
|
When I attempted to run this I received the following error: I believe this is due to the mismatch in types. The pkg/tfvars/alibabacloud/alibabacloud.go has this: The terraform definition of The list of alibabacloudprovider.Tag mismatched on the terraform variable type map(string). This causes the merge that happens at the top of the terraform files to fail (bootstrap/main.tf, cluster/main.tf). |
|
/ok-to-test |
pkg/asset/manifests/template.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The gofmt test is failing after removing this line. See: https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_installer/5333/pull-ci-openshift-installer-master-gofmt/1453476031779311616
Can you run gofmt on this file or fix the formatting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I can.
|
Thanks for posting this. I am still working on reviewing these most recent changes. |
ccdc690 to
f256579
Compare
Okay, I also found this problem, and I have submitted a commit to fix it. |
|
/retest-required |
|
@patrickdillon @bd233 The latest pull request has fixed the tagging issue previously noted. I was able to install using this PR. |
|
/retest |
|
All of the tests are failing/failing to build because you need a rebase. Feel free to add |
|
It is not clear to me that the feedback regarding the destroy code has been completely address, in particular: If there is going to be further work needed for the destroy code, I wonder if it might be a good idea to separate the destroy code into a separate PR so that we don't block the rest of the code in this PR. |
pkg/asset/cluster/tfvars.go
Outdated
| object := "bootstrap.ign" | ||
| signURL, err := client.GetOSSObjectSignURL(bucket, object) | ||
| if err != nil { | ||
| return err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to wrap all of these error messages before returning them.
pkg/asset/cluster/tfvars.go
Outdated
|
|
||
| masters, err := mastersAsset.Machines() | ||
| if err != nil { | ||
| return err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to wrap all of these error messages before returning them.
pkg/asset/cluster/tfvars.go
Outdated
| } | ||
| workers, err := workersAsset.MachineSets() | ||
| if err != nil { | ||
| return err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to wrap all of these error messages before returning them.
pkg/asset/cluster/tfvars.go
Outdated
|
|
||
| natGatewayZones, err := client.ListEnhanhcedNatGatewayAvailableZones() | ||
| if err != nil { | ||
| return err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to wrap all of these error messages before returning them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I'll fix them. But I have a doubt, under what circumstances should error messages be wrapped? I notice that many of the above parts are returned directly. Understanding this, I can better fix such errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing those. It is always a good idea to wrap errors, but in this case, it is necessary because there is a large function Generate that can return errors at many different points. If you don't wrap the error you will not know which part of the code generated the error if you are are trying to debug/troubleshoot.
I'm sorry to confuse you. I think I should explain our plan here:
Problems fixed in the current PR (will be submitted today):
If there are any problems that block the merging or need us to solve, please let me know. thanks. |
f256579 to
da421e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to switch the next template back from {{- else if -> {{- if
This is causing all of the platform tests to fail (e.g. e2e-aws)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to switch the next template back from {{- else if -> {{- if
This is fine. We want to merge as much of the present PR as we can as quickly as we can. This PR is still not ready to merge, so we can add to it. But If we get the rest of the PR ready to merge but destroy is not ready, we don't want to block this PR on destroy. Instead we could remove destroy and put it in a new PR and merge this one. We can figure that out next week. |
|
@bd233 Here is an example from the output from the new tags: |
pkg/asset/cluster/tfvars.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avaliabel -> available
245f042 to
c8c38d3
Compare
|
@patrickdillon @kwoodson I have removed the pkg/destroy commit and updated the vendor. Please continue to review the code. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
8 similar comments
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
Adds the Alibaba platform and validation to types package. Also adds supporting files for explain.
7bed713 to
3437897
Compare
|
One simple update remaining to this file: Should be: |
Adds preliminary assets for the Alibaba platform: cluster, install config, machines, manifests, quota, rhcos. Alibaba: fix: unset credential environment variables Remove the section that sets the credential environment variables. Alibaba: fix: remove cluster secret Supposed to be operating in manual mode only, remove the section to create cluster credentials for CCO Alibaba: fix: use metadata.client whenever possible 1. Remove unused BaseDomain in metadata 2. In other components, use the client stored in metadata as much as possible Alibaba: fix: reconstruction GenerateIgnitionShim function 1. Move GenerateIgnitionShim function to the pkg/asset/ignition/bootstrap package 2. Rename to GenerateIgnitionShimWithCertBundle 3. Modify the corresponding test file
Adds Terraform plugin, tfvars and stages for Alibaba. Alibaba: fix: remove unused attributes for TFVarsSources Remove some unused attributes for TFVarsSources
Adds Terraform configurations for the Alibaba platform. Alibaba: fix: add control_plane_ips output item Add control_plane_ips output item for cluster module Alibaba: fix: replace Tag with ExtraTags for tfvars config Replace Tag with ExtraTags for tfvars config, and modify json field to ali_extra_tags stay consistent with other platforms
This commit was produced by running , , and all modules verified. Signed-off-by: sunhui <[email protected]>
Add Tags info for VSwitch and SecurityGroups to machines. Alibaba provider will use these Tags to find the VSwitch and security group after running the terraform runs, And use them to create the ECS instances. Signed-off-by: sunhui <[email protected]>
3437897 to
aa082c9
Compare
Have updated |
|
@bd233: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
/lgtm |
|
@bd233 @dongchen126 Congrats! Please update #5348 so that we can finish that work. |
This PR is based on #5018, and applies the modification of #5291, and fixes the issues raised in #5291.