When there are a large amount of service instances, the upgrade-services errand of Tanzu Cloud Service Broker for AWS tile can upgrade service instances at the beginning. However, it fails after two hours with the following error message.
Details: "upgrade request error: http_error: 401 Unauthorized capi_error_code: 1000 capi_error_title: CF-InvalidAuthToken capi_error_detail: Invalid Auth Token" |
CF CLI has the access token of 2-hour lifespan. It is expected to see CF API would respond with a 401 against an expired access token. We can simply rerun this upgrade-services errand to upgrade the rest service instances as a workaround.
If you wouldn't like to be bothered any more, there is a parameter, “The number of upgrades to run in parallel” in Upgrade All Service Instances Config tab in Tanzu Cloud Service Broker for AWS tile. It indicates the number of instances that can be in the upgrading
status at any given time. We can adjust this parameter with an appropriate value followed by "Apply Changes" to speed up the processing of upgrade-services errand.