HCX - Migration message "Cloud Resources are unavailable"
search cancel

HCX - Migration message "Cloud Resources are unavailable"

book

Article ID: 328977

calendar_today

Updated On:

Products

VMware HCX

Issue/Introduction

This message can be displayed when you attempt to perform a migration, so this documentation was created to fix the communication between the HCX manager and the vCenter registered on it.

Symptoms:



Environment

HCX

Cause

As per the logs this is because of Bad username or password used for site pairing.

Logs: common/logs/admin/web.log

2023-04-06 18:44:16.881 UTC [https-jsse-nio-8443-exec-7, Ent: HybridityAdmin, , TxId: TxId: d08d7ff0-ded3-40da-bf53-639666bd83dc] WARN  c.v.vca.hybridity.util.NSPRestClient- Login to cloud https://xxxxx.xxxxx.com.com failed, with status 401: 
2023-04-06 18:44:16.881 UTC [https-jsse-nio-8443-exec-7, Ent: HybridityAdmin, , TxId: TxId: d08d7ff0-ded3-40da-bf53-639666bd83dc] WARN  c.v.vca.hybridity.util.NSPRestClient- Invalid credentials logging into remote endpoint: https://xxxxx.xxxxx.com, userName: [email protected]
2023-04-06 18:44:16.881 UTC [https-jsse-nio-8443-exec-7, Ent: HybridityAdmin, , TxId: TxId: d08d7ff0-ded3-40da-bf53-639666bd83dc] WARN  c.v.vca.hybridity.util.NSPRestClient- Login failure to 20230126221226503-01159884-a28f-439f-8185-1f3492a26414
2023-04-06 18:44:16.882 UTC [https-jsse-nio-8443-exec-7, Ent: HybridityAdmin, , TxId: TxId: d08d7ff0-ded3-40da-bf53-639666bd83dc] WARN  c.v.v.h.inventory.InventoryAdapter- Can not collect resources from the cloud: https://xxxxx.xxxxx.com
java.lang.RuntimeException: Invalid credentials

 

Another example is when the account/password expires. 

Logs: common/logs/admin/web.log

2024-06-17 08:28:00.539 UTC [https-jsse-nio-8443-exec-4, , , TxId: ] ERROR c.v.v.h.a.HybridityAuthenticationEntryPoint- AuthenticationEntryPoint - got AuthenticationException
org.springframework.security.authentication.BadCredentialsException: Error validating user [email protected]: Status code: 500, Reason: Internal Server Error<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope"><faultcode xmlns:ns0="http://docs.oasis-open.org/ws-sx/ws-trust/200512">ns0:Fa
iledAuthentication</faultcode><faultstring>Password of the user logging on is expired. :: Password of the user logging on is expired. :: User account expired: {Name: hcx-user, Domain: vsphere.local}</
faultstring></S:Fault></S:Body></S:Envelope>

Resolution

  • Access HCX Manager on port 9443
  • Re-enter vCenter credentials for @vsphere.local user.
  • Restart services (source and cloud): Use "admin" credentials to SSH into the HCX Connector or Cloud Manager and change the user to "root". Restart the services as shown below.
    • # systemctl restart app-engine
    • # systemctl restart web-engine
    • # systemctl restart appliance-management


Additional Information

Impact/Risks:
It could cause migration failures due to communication issues between sites