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

Upgrade to Terraform 1.4.6 #1304

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cbbayburt
Copy link
Contributor

@cbbayburt cbbayburt commented May 9, 2023

@@ -1,5 +1,5 @@
terraform {
required_version = "1.0.10"
required_version = "1.4.6"
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm all for this, but can we at least allow minor versions updates (~> 1.4.6) if not anything in the future by using >= 1.4.6.

Copy link
Member

Choose a reason for hiding this comment

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

In the past we had it, to allow minor version updates. But terraform was so unstable even between minor versions that it could lead to introduction changes in sumaform code that were backward incompatible. For that reason, we start to fix the terraform version.
Can have updated the terraform version and it looked much more stable now.
From my side, I'm fine on allow minor version and see how it goes again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AFAICS, there haven't been any breaking changes since the first stable release, so I'm also fine trying this again. Plus, as long as we keep building terraform in OBS, we're still in charge of what actual version the testsuite uses.

Copy link
Contributor

Choose a reason for hiding this comment

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

Well there was one, where we had to change cpu = { ... } to cpu { ... } in our sumaform files.

Copy link
Member

Choose a reason for hiding this comment

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

but that was because of a libvirt plugin update, not a terraform update

Copy link
Contributor

Choose a reason for hiding this comment

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

ah, thanks for clarifying.

Copy link
Member

@rjmateus rjmateus left a comment

Choose a reason for hiding this comment

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

LGTM

I think we could also include the change of libvirt provider in this PR, and do all in one go.
more information in:
#1023

@cbbayburt cbbayburt force-pushed the terraform-upgrade branch 2 times, most recently from daaf7b6 to dbdec77 Compare May 15, 2023 21:45
@cbbayburt cbbayburt force-pushed the terraform-upgrade branch 2 times, most recently from 0f0a3ed to 797ec88 Compare May 25, 2023 15:59
@nodeg
Copy link
Member

nodeg commented Jul 6, 2023

You should probably update the PR when it is ready. We are already at version 1.5.2 😉 https://github.com/hashicorp/terraform/blob/v1.5/CHANGELOG.md

@cbbayburt
Copy link
Contributor Author

Oh haha hard to catch up with them 😂

Last time I worked on this we had problems with Salt in the test suite so I had to leave it for the time. Now there are more pressing issues about sumaform so this is on hold for now.

@nodeg
Copy link
Member

nodeg commented Jul 7, 2023

Yes, this is a never ending story. On my personal machine I use the version Tumbleweed ships which is currently also 1.5.2, and I have no issues so far. But our SUMA setup is quite different. If you need help with testing this PR in the future, just ping me.

@Bischoff
Copy link
Contributor

If I am not wrong, the latest version with an open source license is 1.5.7. Maybe it should be our target for this PR.

Then we could take our time to switch to openTofu 1.6.0 or upper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants