Application creation not successful until storages for all apps in the batch are completed #539
Labels
area/application
hint/main
going on main branch
kind/bug
indicates a bug in the project
state/in-progress
currently being worked on
Description
Deployed a terraform plan with a mix of application resources that requires storage and does not require storage.
When terraform plan is applied, the "Creation complete" for application resource that does not require storage only printed after storages are created for all the applications.
The expectation is to complete the application resources that does not require storage with no dependency on storages of other applications and start creation of new resources that exist in plan.
This is observed on juju 3.5.3 + microk8s v1.28.10 cloud
Urgency
Casually reporting
Terraform Juju Provider version
0.13.0
Terraform version
1.9.3
Juju version
3.5.3
Terraform Configuration(s)
Reproduce / Test
Debug/Panic Output
Notes & References
I have run the terraform plan with modified terraform-juju-provider on main. The modifications are just printouts which should be reflected in debug log. Attached print.patch.txt that contains the changes.
Attached console and debug logs for
terraform apply
command and hostpath-provisioner logs which provisions storage for juju+microkk8s.tfapplyconsoleout.log
tfapplydebug.log
hostpath-provisioner.log
prints.patch.txt
From tfapplyconsoleout.log, bind application (no storage requirement) creation is started at
2024-08-05 03:02:20.786997
and completed at2024-08-05 03:04:30.837884
, that took2 min 10 seconds
for provider to consider it complete. On my observation the app is created in juju with active/idle status in1 min
.From tfapplydebug.log, it shows bind is waiting for storage
vault-raft-3
but that particular storage is required forvault
application but notbind
application2024-08-05T03:02:30.370Z [DEBUG] provider.terraform-provider-juju_v0.13.0: waiting for application "bind": @caller=github.com/juju/terraform-provider-juju/internal/juju/client.go:235 @module=juju.client err="retrying: storage label \"vault-raft-3\" missing detail" timestamp=2024-08-05T03:02:30.370Z
The text was updated successfully, but these errors were encountered: