-
Notifications
You must be signed in to change notification settings - Fork 43
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
panic: runtime error: invalid memory address or nil pointer dereference #520
Comments
@hemanthnakkina we really need a small plan which reproduces this issue, not a full scale run of sunbeam. |
@hmlanigan I am not able to reproduce the problem when terraform plan is applied with -parallelism=1 520-tfplan.txt If parallelism is reduced to 2, I am not able to reproduce. On a side note, I see the computed attribute storage for each application is filled with all the storage details of the model (irrespective of application has storage or not). Is it expected? |
Hey, the problem was in improper handling of
I'll prepare the PR right now. |
Related to juju#520, panic on nil pointer from ReadApplicationWithRetryOnNotFound. Add IsFatalError func to retry. Allow for known types or "connection refused" which is intermittent. Doesn't guarentee that everything works as expected, but doesn't panic either.
Related to juju#520, panic on nil pointer from ReadApplicationWithRetryOnNotFound. Add IsFatalError func to retry. Allow for known types or "connection refused" which is intermittent. Doesn't guarentee that everything works as expected, but doesn't panic either.
Description
Panic when running terraform plan that has storage_directives
Urgency
Blocker for our release
Terraform Juju Provider version
0.13.0-rc1
Terraform version
1.9.1
Juju version
3.5.2
Terraform Configuration(s)
Reproduce / Test
Debug/Panic Output
Notes & References
The terraform plan has storage_directives where application mysql has storage_directives set explicitly with values in terraform.tfvvars.json.
Some other applications like keystone, glance, ovn has storage_directives as {} to pick the defaults from charm metadata.yaml.
The plan is applied with default parallelism.
The text was updated successfully, but these errors were encountered: