Skip to content
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

Bug: Update panos_security_rule_group before deleting panos_address_object #239

Closed
jdamata opened this issue Sep 11, 2020 · 2 comments
Closed
Labels

Comments

@jdamata
Copy link

jdamata commented Sep 11, 2020

Describe the bug

I have multiple panos_address_object referenced inside of destination_addresses in panos_security_rule_group. When I delete one of the panos_address_objects, the provider attempts to delete the resource before updating the panos_security_rule_group.

This results in an error similar to: Error: rulebase -> security -> rules -> Outbound ADDRESS -> destination

Expected behavior

panos_security_rule_group is updated first with destination_addresses list before deleting panos_address_object

Current behavior

Provider attempts to clean up panos_address_object which is still referenced in the panos_security_rule_group

@jdamata jdamata added the bug label Sep 11, 2020
@jdamata
Copy link
Author

jdamata commented Sep 14, 2020

Related to these:
#238
#234
hashicorp/terraform#26173

I tried adding a create_before_destroy on the panos_address_objects but got an inconsistent plan error. Looks like the inconsistent plan is caused by this: hashicorp/terraform#25631

@shinmog
Copy link
Collaborator

shinmog commented Sep 16, 2020

This is equal parts #234 and hashicorp/terraform#25631, please see #234 for further info.

Closing this issue out as this is not a provider issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants