Embedded vRO Integration is broken after replacing certificate.
https://knowledge.broadcom.com/external/article?articleNumber=380251
Products
VMware Aria Suite
Issue/Introduction
Embedded VRO integration is not in healthy state after VRA certificate replacement
910001: Can not connect to Automation Orchestrator Server. org.springframework.web.reactive.function.client.WebClientRequestException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetEnvironment
VMware vRealize Automation 8.x
VMware Aria Automation 8.x
Cause
Trust is broken between Aria Automation and vRealize Orchestrator when the Orchestrator certificate is replaced.
Resolution
To workaround this issue you need to update the Integration endpoint data using API
- Obtain a Bearer token following the article Generate Access_Token/Bearer_Token in VRA 8.x for API Authentication
You will use this as b_token value in the below steps. - Get the certificate of VCO endpoint
openssl s_client -connect <VRO_FQDN>:443 2> /dev/null | openssl x509 | awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' - Get the info and ID of the all Integrations
curl -k "https://<VRAVIP>/iaas/api/integrations/?apiVersion=2021-07-15" -H "Authorization: Bearer b_token" | jq -r '.content[] | .id + "," + .name'
Example: results:
9dcd99ce-7103-4e75-9256-684bb6bf682b,embedded-ABX-onprem
3b60be1a-ef4b-473b-9b83-1f09456a75fe,raas
f826c2f3-565c-4918-93cb-67a2b9dbb180,gss support
c25cf2bc-e7f9-4a99-a378-8a3a13446c21,embedded-VRO - Get the info VRO endpoint details:
curl -k "https://<VRAVIP>/iaas/api/integrations/c25cf2bc-e7f9-4a99-a378-8a3a13446c21?apiVersion=2021-07-15" -H "Authorization: Bearer b_token" | jq . - Patch the endpoint using API
curl -v -k -X PATCH "https://<VRAVIP>/iaas/api/integrations/c25cf2bc-e7f9-4a99-a378-8a3a13446c21?apiVersion=2021-07-15" -H "Accept: application/json" -H 'Content-Type: application/json' -H "Authorization: Bearer b_token" --data-raw '{"certificateInfo": {"certificate":"Certificate content captured step 2"}}'
Body with just certificate:
{
"certificateInfo": {
"certificate": "Certificate content captured step 2"
}
} - When you apply certificate you validate check the Integration properties
- After cert is applied, data collection is fine but you still see error: "910000: Error : Can not connect to the Automation Orchestrator Server...". To fix this error you must patch vCO Integration "vroUnresponsiveReason" property.
- Patch the endpoint using API
curl -v -k -X PATCH "https://<VRAVIP>/iaas/api/integrations/c25cf2bc-e7f9-4a99-a378-8a3a13446c21?apiVersion=2021-07-15" -H "Accept: application/json" -H 'Content-Type: application/json' -H "Authorization: Bearer b_token" --data-raw '{"customProperties": {"vroUnresponsiveReason":"}}'
Body with just certificate:
{
"customProperties": {
"vroUnresponsiveReason":""}
}
Comments
Post a Comment