-
Notifications
You must be signed in to change notification settings - Fork 676
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
Certificate manage order systematically failed first time after 1min provisionning and succeed the second time #2944
Comments
@ifs-anthonylecarrer We not only order certificate.. we wait for certificate order state to be valid.. wait is ntng but we do continuous GET calls on the certificate and check for status to be valid.. if it is in fail state.. terraform will also fail.. Looking at the error, It has ordered certificate but, status of ordered certificate is failed.. that is why terraform also failed.. Can you please check your instance and let us know if you find failed certificate..? And also please route this issue to certificate manager team to know why status of certificate is in fail state.. |
Hello @kavya498 I can not understand why the terraform resource always fail after 1min or succeed after 1min while my timeout is 15min. I can not understand also why calling is always successfull. I have an issue opened on ibmcloud side https://cloud.ibm.com/unifiedsupport/cases?number=CS2401764 But the the api is working good ! |
After ordering certificate.. Looks like certificate ended up in fail state..
When you get this error.. Can you please check your certificate from UI? Kindly, Let us know if your certificate reaches failed ==> valid state after some time.. If that is the case, we can add retries in the code.. Thanks.. |
For sure u know that my certificate is in failed status. My question is why this certificate alway fall in failure status at 1st provisionning after 1 minute and why it works and the answer is always after exactly 1 minute. As my certificate is in failed status i have to destroy the resource and to rerun my ci/cd workflow to provision a new one that works. I need to understand why the resource always fail or succeed at exactly 1m. I don't know if it is about the different APIs you are calling during the provisionning. I need to understand why it fails or succeed after exactly one minute. As i'm using terraform resource u can understand that my issue is about the terraform resource even if it is linked to an API call in the code of the terraform resource Have a good week-end |
@ifs-anthonylecarrer , But, we are not aware why certificate goes to failed state during first time.. This has to be investigated by service team(Certificate Manager Service).. |
Community Note
Terraform CLI and Terraform IBM Provider Version
0.12.26 and 0.13.5
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
Certificate ordered successfully
Actual Behavior
Certificate ordered failed each 1st time after 1 minute provisionning and succeed on 2nd time after 1 minute provisionning. API certificate order which is asynchronous always succeed
Steps to Reproduce
Pre-requesite : terraform code. Note we use 2 providers because our cis is shared and hosted on one account and our cms is on another account
terraform apply -auto-approve -var-file <varfile>
Important Factoids
References
The text was updated successfully, but these errors were encountered: