-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Bug 1981941: Upgrade terraform to 0.14.6 #4729
Bug 1981941: Upgrade terraform to 0.14.6 #4729
Conversation
7727105
to
598340b
Compare
/test e2e-azure |
71af547
to
8bb4f1f
Compare
/test e2e-azure |
025f137
to
5c93088
Compare
/retest |
/retest |
4cd1f4d
to
06f77d7
Compare
/test e2e-azure |
/test e2e-gcp |
06f77d7
to
1c9bb61
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.
This looks really good. I have some concerns about how we are going about determining the version for the providers, but the overall course of this is spectacular.
url = fmt.Sprintf("https://%s", path) | ||
} | ||
|
||
// git clone if directory doesn't exist, else git pull |
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.
I don't quite follow why we need to get the repo and get the tags. Why is the version declared for the module not sufficient? Even if it is a psuedo version, it still starts with a semver.
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.
Following up on this, I do notice that the semver in the psuedo version is not the same as the semver that terraform expects. I assume this is because of the dastardly v2 missing in many of the provider modules.
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.
I also get a one-line change in vendor/github.com/hashicorp/terraform-plugin-test/v2/helper.go
when I run go mod vendor
.
diff --git a/vendor/github.com/hashicorp/terraform-plugin-test/v2/helper.go b/vendor/github.com/hashicorp/terraform-plugin-test/v2/helper.go
index 87a15b30e..a2cc47050 100644
--- a/vendor/github.com/hashicorp/terraform-plugin-test/v2/helper.go
+++ b/vendor/github.com/hashicorp/terraform-plugin-test/v2/helper.go
@@ -145,7 +145,7 @@ func symlinkAuxiliaryProviders(pluginDir string) error {
if filenameExt == ".zip" {
_, err = os.Stat(path)
if os.IsNotExist(err) {
- zipDecompressor.Decompress(path, filepath.Join(auxiliaryProviderDir, filename), false, 0000)
+ zipDecompressor.Decompress(path, filepath.Join(auxiliaryProviderDir, filename), false)
} else if err != nil {
return fmt.Errorf("Unexpected error: %s", err)
}
Update terraform-provider-aws to 3.1.0 Update terraform-provider-azure to 2.48.0 Update terraform-provider-google to 3.40.0
Update plugin directory to use new terraform plugin paths. Add environment variable that sets location of terraform.rc so that local terraform plugins can be used. New terraform provider requirements are documented here: https://www.terraform.io/docs/language/providers/requirements.html
Add terraform.rc and update terraform modules to specify terraform version and local provider locations.
9b94a71
to
45516ea
Compare
/test e2e-gcp |
Tests are passing to the extent expected. |
/test e2e-openstack |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: staebler 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 |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
2 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. |
/bugzilla refresh Recalculating validity in case the underlying Bugzilla bug has changed. |
@openshift-bot: This pull request references Bugzilla bug 1981941, which is invalid:
Comment 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. |
/bugzilla refresh |
@staebler: This pull request references Bugzilla bug 1981941, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Bugzilla (gpei@redhat.com), skipping review request. 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. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@jhixson74: All pull requests linked via external trackers have merged: Bugzilla bug 1981941 has been moved to the MODIFIED state. 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. |
@jhixson74: The following tests failed, say
Full PR test history. Your PR dashboard. 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. |
Signed-off-by: Hiro Miyamoto <miyamotoh@us.ibm.com>
Signed-off-by: Hiro Miyamoto <miyamotoh@us.ibm.com>
…ift-powervs#98) Signed-off-by: Hiro Miyamoto <miyamotoh@us.ibm.com>
This updates the installer to use Terraform 0.14.6.
Terraform 0.13.x updated the on-disk layout of the plugins directory, how to access offline plugins, and a lock file used for plugin versions. plugin_versions_generate.go has been added which generates plugin_versions.go. All terraform plugin files the installer uses have been updated to use the plugin version. All terraform config files have been updated to use the local providers. A terraform.rc file has been added to specify where the local providers are.
A temporary vendor path for terraform is in this PR that allows the location of the new plugin version lock file to be overridden. Once I can get everything green it will be added to our local terraform fork.
https://issues.redhat.com/browse/CORS-1520
https://www.terraform.io/docs/language/providers/requirements.html
https://www.terraform.io/docs/language/dependency-lock.html