-
Notifications
You must be signed in to change notification settings - Fork 71
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: panos_panorama_address_object, panos_panorama_service_object cannot be deleted because of references from: #238
Comments
This seems like a duplicate of #234 ..? Because at the end of the day you have one resource, |
Hello, From the output that terraform does indeed first delete the rules and then destroys the addresses/services/tags. As expected but there is still something that blocks deletion for addresses/services/tags. Even if the rules have been properly deleted. Sample of the output log ( shortened for brievety ) :
And now it's impossible to delete allof those resources, even manually, without rebooting the management plan of panorama. On Panorama 9.1.4, it seems that after restarting the management server the resources are deleted. |
I have tried to use the flag I have also tested by having different runs for each type of object : first delete the rules, then the addresses. The error still appears. For some reason, Panorama has a lock on those object. It looks like it believes the rules still exist somewhere and they have not been totally erased ? |
I agree, this is not resolved by using the create_before_destroy flag. I have redeployed with this flag and have the same issue. The address group cannot be deleted without restarting the management services on panorama. I am running the latest version of Terraform. Can this issue be reopened? It is not the same as #234 |
Describe the bug
When running
terraform apply
that would delete some objects, the program can not progress because it is blocked by empty references.Moreover it becomes impossible to delete the object even manually without doing a manual restart of the management server.
Expected behavior
Objects should be removed.
Current behavior
Pipeline crashes because of empty reference errors.
Possible solution
This bug has already been documented on how to resolve in the palo alto knowledge base.
However this issue only happened to me when working with terraform/panos, so it may be due to the provider.
It is not practical to have to restart panorama whenever it occurs.
Also after further debugging, when restarting the management server, the rules are effectively deleted sometimes.
Steps to reproduce
TF Code :
Yaml templates :
terraform plan
and thenterraform apply
terraform plan
and thenterraform apply
Screenshots
The screenshots are not of this exact example. But the workflow is the exact same and yields this result.
Context
I am trying to use terraform to automate deployment security group rules. The tags, services and addresses are needed for those rules to be deployed.
This makes it hard to work automatically as I always need to restart the management panorama..
Your Environment
EDIT :
I tried on panorama 9.1.4 and the issue is also present.
The text was updated successfully, but these errors were encountered: