NSX Compute Manager Down and Unregistered state (Error codes 7059, 90001, 90018) after vCenter and NSX Certificates Replacement.
search cancel

NSX Compute Manager Down and Unregistered state (Error codes 7059, 90001, 90018) after vCenter and NSX Certificates Replacement.

book

Article ID: 458141

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

Following a successful certificate replacement on both NSX and vCenter Server, the NSX Compute Manager encountered synchronization issue and entered into a DOWN and UNREGISTERED state.

    1. Initial Remediation Attempt: Attempted to re-register the Compute Manager.

      • Outcome: Re-registration failed with error "7059: "Compute Manager is already registered with other NSX Manager."

    2. Second Attempt: Executed the "Resolve" option on the initial error "7059: "Compute Manager is already registered with other NSX Manager." to clear the registration error.

      • Outcome: The 7059 error cleared, but immediately triggered a new error 90001 for certificate trust-related failure.

      • Error Received: Error 90001: "Trust cannot be enabled for compute manager."

    3. Third Attempt: Applied the resolution steps outlined in Knowledge Base (KB) article 375169.

      • Outcome: The previous trust error transitioned to a new failure code.

      • Error Received: "OidcEndpoint is found but it is not suitable to be used while enabling trust on compute manager.  Delete the existing OidcEndpoint and try enabling trust again on compute manager. ( Error code: 90018)."

      • Current Status Compute manager registration remains incomplete, currently halted at Error 90018 following the execution of KB 375169.
  • Validation of odic endpoint resulted a mismatch.
    • Verify the thumbprint from compute manager i.e vCenter server.
      • Login to vCenter CLI as root user and run the following command.
        root@<vCenter Name> [ ~ ]# openssl s_client -connect <vcenter-ip/fqdn>:443 </dev/null 2>/dev/null | openssl x509 -fingerprint -sha256 -noout -in /dev/stdin
    • Perform "Oidc" thumbprint validation for the compute manager through NSX API call using postman client.
      GET https://<nsx-manager-ip>/api/v1/trust-management/oidc-uris/

Environment

vCenter Server: 8.0.3.0900 (Build: 25413364)
NSX-T: 4.1.2.4.0 (Build: 23786742)

Cause

The issue stems from incorrect compute manager thumbprint entry in the NSX Manager DB under "/api/v1/trust-management/oidc-uris".

Resolution

Workaround :- Delete stale thumbprint entry and update correct thumbprint entry using API as shown below.

  1. Obtain the new SHA-256 thumbprint of the vCenter Server machine SSL certificate:
    root@<vCenter name> [ ~ ]# openssl s_client -connect <vcenter-ip/fqdn>:443 </dev/null 2>/dev/null | openssl x509 -fingerprint -sha256 -noout -in /dev/stdin

  2. Use Postman or any REST API client and run the below GET API call:
    GET https://<NSX-Manager-IP/FQDN>/api/v1/trust-management/oidc-uris/
    • The response should be 200 OK.
    • Retrieve the following values from the output:
      oidc_uri": "https://<vCenter FQDN>/openidconnect/vsphere.local/.well-known/openid-configuration",
      "thumbprint": "######################################",
      "oidc_type": "vcenter",
      "id": "##################################",
  3. If the mismatch of thumbprint reported, proceed with step number 4.

  4. Delete the old entry using the following API call from the NSX manager
    DELETE https://<NSX-Manager-IP/FQDN>/api/v1/trust-management/oidc-uris/<enter-id-collected-from-Step-2>

  5. Update oidc using the following API call:
    POST https://<NSX-Manager-IP/FQDN>/api/v1/trust-management/oidc-uris/
    • In the body enter the following:
      {
       "oidc_type": "As_per_output_of_GET_in_Step_2",
           "oidc_uri": "As_per_output_of_GET_in_Step_2",
           "thumbprint": "New_vcenter_thumbprint_as_per_output_in_Step_1"
          }
      The response should be  201 Created.
    • Note: Thumbprint must be prepared in the suitable format without ":". Refer step number 2 output for thumbprint format.

  6. Go to NSX UI --> System--> Fabric--> Compute managers--> click on alarms. Choose the error related alarm and click on resolve.

Additional Information

If additional assistance is needed with troubleshooting, reach out to Broadcom support by creating a support case using the instructions at Creating and managing Broadcom support cases.