-
Notifications
You must be signed in to change notification settings - Fork 119
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
Concurrent execution of bigip_ssl_key_cert fails #968
Labels
Comments
Hi @MasakariDOR , is this reproducible ? can you please share reproduction steps, we didn't see any issue in our testing: Config:
TF Apply:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Summary
Using the resource
bigip_ssl_key_cert
concurrently produces transaction errors. This can occur on multiple concurrent creates, updates or deletes.Steps To Reproduce
Steps to reproduce the behavior:
We can create 4x certificate / key pairs on the bigip using the same source pem files. If using different pem files for each, we also encounter errors that keys/certs don't match!
Produces the following output
To get to know more about the issue, provide terraform debug logs
terraform.log
To capture debug logs, export TF_LOG variable with debug ( export TF_LOG= DEBUG ) before
runnning terraform apply/plan
Attached above
As3/DO json along with the resource config( for AS3/DO resource issues )
N/A
Expected Behavior
Parallel execution must be supported for TF resources. We cannot execute with parallelism=1 to cater for this resource as it will slow down the execution too much.
Actual Behavior
I have found that multiple (more likely for more resources) triggers an issue
error while starting transaction: error encountered while starting transaction: Transaction CREATE operation is not allowed to be added to transaction.
I have also seen transactions attempt to use mismatching keys/certs and in one case, created the object on the bigip with entirely the wrong cert!
This has also caused unrecoverable issues where TF creates / deletes the resources but fails to update the state. In these cases, resources needed to be re-imported to state or deleted from the device to recover.
The text was updated successfully, but these errors were encountered: