-
Notifications
You must be signed in to change notification settings - Fork 671
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
Power Provisioning is failing with Token is expired #3611
Comments
Multiple people are running into this. It seems if a task runs > 60 minutes the bearer token expires and is not refreshed. |
Yes but it is failing in 20 minutes which surprise me. Power provisioning takes around ~40 minutes and it is failing in 20 minutes. I checked IAM setting for customer as well and it is set to default value |
This is effecting IPI on Power VS as well. We are using an older branch so it doesn't seen like the issue has been introduced through code. |
Thanks for opening @sunilagrawal86. We thought initially this was related to the ibmcloud account login issues we'd been seeing. This is affecting several teams and should be treated as an urgent issue. Let us know if you need any help figuring this one out. The output from my recent encounter with this:
|
While this is a legit issue, it should be refreshing the token, I think something else changed on PowerVS side that is causing this one to surface. |
There was a recent fix at PowerVS which was broken and was allowing expired token. I will work on refreshing the token via the sdk used by Terraform. Only workaround is to run |
@yussufsh - Thank you but it is not helping as ibm_pi_instance takes around ~30 minutes and it is failing before so resource is not yet completed. Hence when you do terraform apply -- it is recreating again and same timeout issue. So it is in the loop. Need urgent help to fix the issue. This started happening from last 3 days |
This is information I got from the service broker team. I did not get to check what is the actual timeout and if we can change it in account settings so I cannot give you the numbers. The fix is created in #3614 which will refresh the token before each API call .We will need to wait for the next release of the provider. You could build the binary on my branch and setup your terminal to use the fix if you want to try it out sooner. |
Thanks @yussufsh. The max token expiry time is unfortunately an hour but it sounds like your PR should get us around this problem. |
@hkantare We are looking for this fix...Could you please release the version ? |
@hkantare - Can you please let me know version which can be used with updated code |
Terraform CLI and Terraform IBM Provider Version
Terraform v0.12.21
Affected Resource(s)
Terraform Configuration Files
Copy-paste your Terraform configurations here - for large Terraform configs,
please share a link to the ZIP file.
The text was updated successfully, but these errors were encountered: