[on-demand-service-broker] [ID] <TIMESTAMP> error: failed to create uaa client: An error occurred while calling https://uaa.<SYSTEMDOMAIN>/oauth/clients. error for user: There was a problem completing your request. Please contact your operations team providing the following information: service: <SERVICE>, service-instance-guid: <SERVICEGUID>, broker-request-id: <ID> operation: create.
curl -v https://uaa.<SYSTEMDOMAIN</info > external.out curl -v https://uaa.service.cf.internal:8443/info > internal.out
Inspect the output and confirm if response 200 is received or not.
The reason for this behavior is that with version of the broker 0.40, there is specific API call with strict tls handshake completed to uaa.service.cf.internal which, in case there is a load balancer, is resolved with LB IP and if the LB certificate is not present to the broker the request will fail.
To confirm this is the case, get the certificate used when connecting to UAA:
openssl s_client -showcerts -servername uaa.<SYSTEMDOMAIN> -connect uaa.<SYSTEMDOMAIN>:443 </dev/null
Then try with curl:
curl -v http://uaa.<SYSTEMDOMAIN>/info --cacert <CACERT from above command>
<UAA Server IP> uaa.<SYSTEMDOMAIN <UAA Server IP> uaa.service.cf.internal