-
Notifications
You must be signed in to change notification settings - Fork 37
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
Removing integration having offer as endpoint results in removal of integrations of all consumers of the offer. #308
Comments
hemanthnakkina
added a commit
to hemanthnakkina/terraform-provider-juju
that referenced
this issue
Sep 12, 2023
For an offer with multiple consumers, if the integration for one consumer is removed, the offer is removed on consumer/remote side. This leads to removal of integrations for rest of the consumers. Use DestroyIntegration even for relations with offers as endpoint instead of deletion of remoteoffer. Fixes: juju#308
@hemanthnakkina please retry with 0.9.0 |
@hmlanigan I have tested this with the juju-terraform-provider built from main as well and saw the issue. I am positive the issue exists with v0.9.0 as the source code is same around this functionality. |
hemanthnakkina
added a commit
to hemanthnakkina/terraform-provider-juju
that referenced
this issue
Sep 18, 2023
Currently removing an integration with an offer removes the remote offer. This does not take into consideration of any other consumers integrated with the offer. This leads to other consumers getting relation-broken which is not expected. Check for number of consumers during delete integration for an offer. Remove RemoteOffer only when the current integration is the only consumer to the offer. Otherwise use DestroyIntegration that removes only the integration between the calling comsumer and the offer without affecting the relation between other consumers and offer. Fixes: juju#308
hemanthnakkina
added a commit
to hemanthnakkina/terraform-provider-juju
that referenced
this issue
Sep 18, 2023
Currently removing an integration with an offer removes the remote offer. This does not take into consideration of any other consumers integrated with the offer. This leads to other consumers getting relation-broken which is not expected. Check for number of consumers during delete integration for an offer. Remove RemoteOffer only when the current integration is the only consumer to the offer. Otherwise use DestroyIntegration that removes only the integration between the calling comsumer and the offer without affecting the relation between other consumers and offer. Fixes: juju#308
hemanthnakkina
added a commit
to hemanthnakkina/terraform-provider-juju
that referenced
this issue
Sep 18, 2023
Currently removing an integration with an offer removes the remote offer. This does not take into consideration of any other consumers integrated with the offer. This leads to other consumers getting relation-broken which is not expected. Check for number of consumers during delete integration for an offer. Remove RemoteOffer only when the current integration is the only consumer to the offer. Otherwise use DestroyIntegration that removes only the integration between the calling comsumer and the offer without affecting the relation between other consumers and offer. Fixes: juju#308
hemanthnakkina
added a commit
to hemanthnakkina/terraform-provider-juju
that referenced
this issue
Sep 20, 2023
Currently removing an integration with an offer removes the remote offer. This does not take into consideration of any other consumers integrated with the offer. This leads to other consumers getting relation-broken which is not expected. Remove the integration using DestroyIntegration irrespective of whether the endpoint is an offer or not. Fixes: juju#308
hemanthnakkina
added a commit
to hemanthnakkina/terraform-provider-juju
that referenced
this issue
Sep 20, 2023
Currently removing an integration with an offer removes the remote offer. This does not take into consideration of any other consumers integrated with the offer. This leads to other consumers getting relation-broken which is not expected. Remove the integration using DestroyIntegration irrespective of whether the endpoint is an offer or not. Fixes: juju#308
hemanthnakkina
added a commit
to hemanthnakkina/terraform-provider-juju
that referenced
this issue
Sep 20, 2023
Currently removing an integration with an offer removes the remote offer. This does not take into consideration of any other consumers integrated with the offer. This leads to other consumers getting relation-broken which is not expected. Remove the integration using DestroyIntegration irrespective of whether the endpoint is an offer or not. Fixes: juju#308
hemanthnakkina
added a commit
to hemanthnakkina/terraform-provider-juju
that referenced
this issue
Sep 21, 2023
Currently removing an integration with an offer removes the remote offer. This does not take into consideration of any other consumers integrated with the offer. This leads to other consumers getting relation-broken which is not expected. Remove the integration using DestroyIntegration irrespective of whether the endpoint is an offer or not. Fixes: juju#308
hemanthnakkina
added a commit
to hemanthnakkina/terraform-provider-juju
that referenced
this issue
Sep 21, 2023
Currently removing an integration with an offer removes the remote offer. This does not take into consideration of any other consumers integrated with the offer. This leads to other consumers getting relation-broken which is not expected. Remove the integration using DestroyIntegration irrespective of whether the endpoint is an offer or not. The acceptance tests that involves postgres deployment takes around 5 minutes and the new test added also requires deploying postgres which increases the total time required for integration tests to run. So increase integration tests timeout to 40m from 30m. Fixes: juju#308
This bug is not a regression in 0.9.0, will be fixed in 0.10.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I have 2 models. One model provides an offer and more than one application from second model consumes the same offer.
If one of the application in second model removes the integration with the offer, the integration is removed from all the applications consumed by the offer.
Urgency
Blocker for our release
Terraform Juju Provider version
0.8.0
Terraform version
v1.5.7
Terraform Configuration(s)
Reproduce / Test
Environment: Juju 3.1/stable + microk8s 1.26-strict/stable
Debug/Panic Output
No response
Notes & References
No response
The text was updated successfully, but these errors were encountered: