-
Notifications
You must be signed in to change notification settings - Fork 45
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
storage_directives: Cannot process filesystems #537
Comments
A smaller reproducer would be helpful here. This may be a juju bug, or something else. |
Potential duplication with #534 |
@hmlanigan @anvial Unfortunately i am not able to reproduce with small set of plan. I tried the above setup with following terraform vars combiantion: And the issue is reproducible sometimes. Also I observed the plugin does not create all applications in parallel in 0.13.0. The plugin creates 7 applications wait for some logic (the apps did not come to active from juju perspective) and then create rest of the applications. Can you elaborate if there is some kind of dependency check introduced to deploy apps in the plugin in 0.12.0 or 0.13.0? Also I observed the terraform state for each application contains storage details of all the applications created in this plan.
|
One more observation, in the above example out of 120 resources 10 resources are getting created in first run as expected (because of default parallelism 10). 9 resources of application creation are not completed until storage is created for all the 5 resoures/applications. Expectation is not all 9 applications should wait until storage for all applications are created. From terraform apply console logs, below table shows
Corresponding Hostpath provisioner log attached |
I have raised #539 to discuss above comment |
I am able to reproduce the Here are the logs attached. As described in #539, i ran with a patch with some printouts. Looking at the logs, it seems the error occurs when an application (that has no storage requirement) is created before storage provisioning of any application is started.
|
I retested the terraform plan mentioned in above comment with the terraform-provider-juju main branch and got similar error as above in Logs attached: |
Retested again on main branch with nightly build of 20 times in a loop and the reported issue is not observed. If i include above comment, I am able to reproduce once in almost like 40 runs. Let me know how should we proceed given on main branch, the bug is very rare to reproduce. However one thing i would like to get resolved is on the below DEBUG statements on
|
Hey, @hemanthnakkina, I am trying to reproduce this bug but cannot observe it. You mentioned that you used a small reprocuder from #539, is it still actual? |
Asking because I sevel times deployed (this plan) with the results:
So cannot catch the bug. |
@anvial As I mentioned in my previous comments [1] and [2], I am able to reproduce the problem only 1 out of total 40 times with the PR included in the tests and so I am happy to close the issue. I would appreciate if you can look at logs mentioned in [1] and if possible form an hypothetical scenario that might cause the issue and add any more logs if required in code so that it will be helpful if problem is reproduced again. Either way please feel free to close the issue. [1] #537 (comment) |
@hemanthnakkina got you, I would try to do some scripting in case to catch the but. If you find a more reliable way to catch this annoying thing, plz let me know. |
@anvial I will suggest not to waste on your time in scripting to catch the bug as I already invested time to run overnight continuously. Just take a look at logs if it provide any hints on what could have happened in error case. |
Ok, let's close this bug. We will reopen it in case we find a way how to reproduce it more reliably. |
Description
sunbeam-terraform plan when ran with juju plugin 0.13.0 fails with
cannot process filesystems
.The failure is not consistent but happened in 2 out of 3 builds.
Urgency
Blocker for our release
Terraform Juju Provider version
0.13.0
Terraform version
1.9.1
Juju version
3.5.2
Terraform Configuration(s)
Reproduce / Test
Debug/Panic Output
Notes & References
https://github.com/canonical/sunbeam-terraform/actions/runs/10140842506/job/28040230530?pr=83
I will try to come up with smaller plan to reproduce. I have added details to provide early report.
The text was updated successfully, but these errors were encountered: