Open wood-push-melon opened 1 year ago
@wood-push-melon try adding an offer data source and referencing the data source in the integration resources.
The integration resource doc is ambiguous. However resources have the exception of creating things, in this case consuming the supplied offer. We can make some changes however it's more correct to provide the offer data source in your plan. Especially as you have 3 resources referencing it.
Yeah, I did that in here.
@wood-push-melon please provide a simple, one file, reproducer for this problem.
@wood-push-melon are you able to reproduce in v0.10.0?
Description
Multiple juju integrations in juju model A consuming an existing juju offer in juju model B will generate the following error:
Urgency
Blocker for our release
Terraform Juju Provider version
0.8.0,0.9.1
Terraform version
v1.5.2
Terraform Configuration(s)
Reproduce / Test
traefik-k8s
charm and a juju offer manually in model X.terraform plan
output is:Debug/Panic Output
The output of
terraform apply
is:Notes & References
The involved Terraform code can be found in this PR. The integrations with the manually created offer can be found here.
This was originally reported on Mattermost: https://chat.charmhub.io/charmhub/pl/qpuggy3s43fm3ywwn4dypwwzoe
This issue is flaky. It might not show up sometimes.