-
Notifications
You must be signed in to change notification settings - Fork 213
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
time_zone
validation breaks provider when tz database is missing
#477
Comments
@drastawi would you be able to address this issue? |
@TechIsCool @stmcallister Are we ok embedding the data into the binary? It's a bit over 400KB. This would allow us to ensure the validation would still run on these more minimal systems and not just throw warnings. |
also noticed a spurious diff on pagerduty_schedule when specifying time_zone = "UTC"
|
Just ran into this, I am running an automated system on Alpine. |
@drastawi That should be okay. |
+1 I see this issue too. |
if ok @stmcallister, I linked the solution in the #478 above. |
Looks like 2.4.1 does not fix this
|
Yep seeing the same issue after updating to |
Also seeing the same issue when upgrading from
|
Still seeing this on 2.4.1 (latest). |
@stmcallister I think this issue should be reopened, I am also seeing this on 2.4.1 when running with the |
@drastawi Looks like we're unable to fix this one, and it seems to be causing more issues than fixing. I'm going remove this validation in the next release, unless there are any strong objections. |
@stmcallister please note #488 first |
@drastawi ah. Thank you for pointing that out! I'll merge that and see if it fixes things for folks. |
Hello all! Great news! We just pushed release v2.4.2. I just tested it on Windows and can confirm that it fixes this issue. Please give that version a try and let us know if you're still having troubles. |
Thank you, this now also fixes the issues in the docker containers! |
PR #473 breaks a lot of assumptions that are made about terraform providers. Currently my Mac and our CI/CD Docker containers don't have the ZONEINFO defined. We should support gracefully falling back to no validation if this doesn't exist and throw a warning and/or add better information about why the error occurred for end users.
https://github.com/golang/go/blob/go1.16/src/time/zoneinfo.go#L615-L628
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
Panic Output
If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the
crash.log
.Expected Behavior
Timezones that are defined work without failing.
Actual Behavior
Timezones aren't found when the timezone database is missing.
Steps to Reproduce
terraform apply
when atime_zone
is defined and there is no timezone database present.References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
Workaround / fix
apt-get install tzdata
The text was updated successfully, but these errors were encountered: