Compute Manager shows "Invalid credentials" and Connection goes DOWN after a config change
search cancel

Compute Manager shows "Invalid credentials" and Connection goes DOWN after a config change

book

Article ID: 435118

calendar_today

Updated On:

Products

VMware NSX VMware vSphere ESXi

Issue/Introduction

After a Compute Manager (CM) edit operation—typically triggered by VCF SDDC Manager updating vCenter credentials or configuration—the Compute Manager in the NSX UI (System > Fabric > Compute Managers) displays the following symptoms:

  • Connection Status: DOWN 
  • Error Message: Invalid credentials provided or extension not valid for compute manager <vc-hostname> with id <cm-id>
  • The issue persists indefinitely (37+ hours) without auto-recovery.
  • The issue can also be auto-recovered in some cases in which the compute manager can frequently gets Disconnected and Connected back again.  
  • No configuration change was made to vCenter credentials after the edit.
  • In some cases, Certificate changes were performed on the associated vCenter (Compute Manager) prior to the disconnection.
  • Re-editing the Compute Manager on NSX UI did not help.
  • Other Compute Managers in the same NSX cluster may remain unaffected.

Log Indicators

In /var/log/cm-inventory/cm-inventory.log on the owner NSX node, the following patterns appear:

  • "Error occurred during login by certificate as extension for cm <cm-id>"
  • "VC Version is below 9, hence skipping service account consistency checker" (Note: This is a false negative; the login failure causes the version check to be skipped).

Log snippets

[TIMESTAMP]  INFO inventoryTasksScheduler6 CmPluginStateManager 6211 SYSTEM [nsx@4413 comp="nsx-manager" level="INFO" subcomp="cm-inventory"] CM <cm-id> mapped to this node
[TIMESTAMP]  INFO inventoryTasksScheduler6 VcPlugin 6211 SYSTEM [nsx@4413 comp="nsx-manager" level="INFO" subcomp="cm-inventory"] status: FAILED, cmConnectionStatus: UP, consistencyCheckerConnectionStatus: DOWN, errors are: [{"moduleName":"cm-inventory","errorCode":40106,"errorMessage":"Invalid credentials provided or extension not valid for compute manager <vc-fqdn> with id <cm-id>"}]
[TIMESTAMP]  INFO inventoryTasksScheduler6 CmInventoryService 6211 FABRIC [nsx@4413 comp="nsx-manager" level="INFO" subcomp="cm-inventory"] Retrieved cm config info from cm plugin instance, cmPluginStatusData= CmPluginStatusData{id=<cm-id>, server=<vc-fqdn>, cmPluginStatus=CmPluginStatusInfo{status=FAILED, cmConnectionStatus=DOWN, errors=[{"moduleName":"cm-inventory","errorCode":40106,"errorMessage":"Invalid credentials provided or extension not valid for compute manager <vc-fqdn> with id <cm-id>"}]}}
[TIMESTAMP]  INFO inventoryTasksScheduler6 CmPluginStateManager 6211 SYSTEM [nsx@4413 comp="nsx-manager" level="INFO" subcomp="cm-inventory"] Cm Plugin info found for cm <cm-id>. Plugin Info:ComputeManagerPluginInfo{id='<cm-id>', server='<vc-fqdn>', name='null', description='null', originType='vCenter', version='9.0.1', cmPluginStatus='ComputeManagerPluginStatus{cmId='<cm-id>', originType='vCenter', cmConnectionStatus='DOWN', cmConnectionStatusDetails='null', pluginStatus='FAILED', errors='[{"moduleName":"cm-inventory","errorCode":40106,"errorMessage":"Invalid credentials provided or extension not valid for compute manager <vc-fqdn> with id <cm-id>"}]', warnings='[]'}', additionalInfo='[]'} . Plugin Status : FAILED
 
[TIMESTAMP]  WARN ConsistencyChecker-<cm-id> ServiceAccountConsistencyChecker 6211 SYSTEM [nsx@4413 comp="nsx-manager" level="WARNING" subcomp="cm-inventory"] Error occurred during login by certificate as extension for cm <cm-id>
com.vmware.vim.binding.vim.fault.InvalidLogin: Cannot complete login due to an incorrect user name or password.
        at jdk.internal.reflect.GeneratedConstructorAccessor254.newInstance(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:?]
        at java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source) ~[?:?]
        at java.lang.reflect.ReflectAccess.newInstance(Unknown Source) ~[?:?]
        at jdk.internal.reflect.ReflectionFactory.newInstance(Unknown Source) ~[?:?]
        at java.lang.Class.newInstance(Unknown Source) ~[?:?]
        at com.vmware.vim.vmomi.core.types.impl.ComplexTypeImpl.newInstance(ComplexTypeImpl.java:174) ~[vlsi-core.jar:?]
        at com.vmware.vim.vmomi.core.types.impl.DefaultDataObjectFactory.newDataObject(DefaultDataObjectFactory.java:25) ~[vlsi-core.jar:?]
        at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.ComplexStackContext.<init>(ComplexStackContext.java:30) ~[vlsi-core.jar:?]
        at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$UnmarshallSoapFaultContext.parse(UnmarshallerImpl.java:167) ~[vlsi-core.jar:?]

[TIMESTAMP]  WARN ConsistencyChecker-275b####-e6aa-####-9760-ec89####2ecb ServiceAccountConsistencyChecker 6211 SYSTEM [nsx@4413 comp="nsx-manager" level="WARNING" subcomp="cm-inventory"] VC Version is below 9, hence skipping service account consistency checker

Environment

VMware NSX 9.0.x

Cause

This issue is caused by a race condition and a secondary version-detection bug during the NSX extension re-registration process:

Certificate Mismatch: When a CM edit occurs on a non-owner NSX node, it generates a new extension certificate in vCenter and updates the shared database (CorfuDB). However, the owner node (responsible for the live connection) continues using a stale in-memory keystore with the old certificate.

Signal Overwrite: A race condition causes the "restart" signal sent to the owner node to be overwritten by the owner's own status update before the restart is triggered. Consequently, the owner node never refreshes its connection with the new certificate.

Recovery Failure: When the login fails, the ServiceAccountConsistencyChecker incorrectly assumes the vCenter version is below 9.0, causing it to skip the automatic service account recovery path.

Resolution

This issue is resolved in VMware NSX 9.1 and above. See https://knowledge.broadcom.com/external/article/142814/download-broadcom-products-and-software.html to download this release.

Workaround:

Restart the cm-inventory service on the OWNER NSX node only.

This is a deterministic fix. No retry is needed.

  1. Identify the owner node 
  2. Restart cm-inventory on the owner node

    ssh root@<OWNER_NSX_NODE_IP>
    /etc/init.d/cm-inventory restart

It temporarily pauses inventory collection from vCenter (~2-3 minute) while the service restarts.

     3. Wait approximately 2 to 3 minutes for recovery

The cm-inventory service starts up, detects no live connection for the CM, and automatically establishes a fresh connection using the correct certificate from the database.

Verify recovery

    In NSX UI: System → Fabric → Compute Managers
    The affected CM should show Connection Status: UP with no errors.

    To confirm from logs on the owner node:
        grep "Plugin Info.*<CM_ID>" /var/log/cm-inventory/cm-inventory.log | tail -5

    Expected output:
        Plugin Info: ... pluginStatus='STARTED', cmConnectionStatus='UP', errors='[]'