VCF Operations for Logs: Primary Node Fails to Reconnect and Cassandra Service Crashes After Applying Patch 9.0.2.0200
search cancel

VCF Operations for Logs: Primary Node Fails to Reconnect and Cassandra Service Crashes After Applying Patch 9.0.2.0200

book

Article ID: 458371

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  • Following patching to version 9.0.2.0200, the primary logs node is unable to reconnect to the cluster.
  • The Cassandra service keeps crashing on the Primary node.
  • Additionally, the log appliances report the same decryption failures for the VCF Operations and vCenter passwords. 

Observe the following errors in the /storage/core/loginsight/var/runtime.log :

ERROR AES [Decryption failed. Encryption key version:2]
javax.crypto.BadPaddingException: Error finalising cipher data: pad block corrupted
  at com.vmware.loginsight.commons.security.AES.decrypt(AES.java:103)
  at com.vmware.loginsight.config.VIDBAuthenticationConfig.clientSecret(VIDBAuthenticationConfig.java:170)
  at com.vmware.loginsight.aaa.vidb.VIDBConfigurationHolder.configureInternal(VIDBConfigurationHolder.java:117)
  at com.vmware.loginsight.daemon.DaemonCommandsHandler.onCassandraInitialized(DaemonCommandsHandler.java:1156)
FATAL LogInsightDaemon [Error starting services]
java.lang.IllegalArgumentException: Invalid arguments
  at com.vmware.loginsight.aaa.vidb.VIDBOAuthClient.getInstance(VIDBOAuthClient.java:34)

Environment

VCF Operations for Logs 9.0.2

Cause

This issue occurs because the cluster generated a new internal encryption key upon completing the upgrade to 9.0.2.0200. When the configuration was saved, it failed to re-encrypt with this new key, resulting in a Failed to update configs error. Consequently, stored secrets—including the VCF SSO client secret, VCF Operations integration password, and vCenter credentials—remain encrypted with the old key and cannot be decrypted by the new one.

Resolution

To resolve this issue and allow the node to successfully decrypt the secrets and reconnect to the cluster, perform the following steps:

  1. Log in to the VCF Operations UI.
  2. Navigate to Fleet Management > Identity & Access.
  3. Under the SSO Overview option, go to VCF Other Components (Log Component) and copy the Client ID / Client Secret.
  4. Log in directly to the UI of the worker nodes using their IP addresses. Navigate to Configuration > Authentication > VCF SSO, re-enter the client secret copied from step 3, and save the configuration.
  5. Establish an SSH connection to the affected primary node.
  6. Restart the loginsight service by running the following command:
    service loginsight restart
  7. Verify that the node has recovered and is communicating normally by running:
    service loginsight status
    nodetool-no-pass status