vCenter Drift Check Operation Fails with "certificate_unknown(46)" in VCF Operations
search cancel

vCenter Drift Check Operation Fails with "certificate_unknown(46)" in VCF Operations

book

Article ID: 463039

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  • vCenter drift check operations fail in VCF Operations.



  • Attempt to edit the configuration template fails with below errors:
    Caught rest client exception while calling api https://172.17.0.2:443/config-modules/api/vcenter/schema/v1/get: I/O error on POST request for "https://172.17.0.2:443/config-modules/api/vcenter/schema/v1/get": certificate_unknown(46). Please cancel and try again.





    Validation Error: Required node config is missing



  • Reviewing /storage/vcops/log/analytics-#########################.log in VCF Ops reveals a java.lang.NullPointerException: driftId is marked non-null but is null error. 
    ERROR analytics ###### [ops@#### threadId="######" threadName="ServerConnection on port 10000 Thread 236" operationId="################################"] [com.vmware.vcops.controller.config.manager.ConfigManager.saveConfigDrift] - Error saving the drift results
    java.lang.NullPointerException: driftId is marked non-null but is null

     

  • The /storage/vcops/log/adapters/ConfigAdapter.log in VCF Ops or Cloud Proxy report an exception reaching the Config Module container, displaying the error: I/O error on POST request ... certificate_unknown(46).
    ERROR ConfigAdapter ###### [ops@#### threadId="######" threadName="TasksManager-TaskHandler-####" instanceId="##"] [(##) com.vmware.adapter3.vcf.unifiedconfig.task.ResourceSchemaHandler.handleTask] - Exception occurred while trying to get the schema template. Task param: ConfigDesiredStateTaskParam{taskId='953f####-####-####-####-########aeb7', resourceId='9750####-####-####-####-########5c25', inputData='', clusterMOID=''}
    com.vmware.adapter3.vcf.unifiedconfig.exception.VcfUnifiedConfigAdapterException: Caught rest client exception while calling api https://172.17.0.2:443/config-modules/api/vcenter/schema/v1/get: I/O error on POST request for "https:/      /172.17.0.2:443/config-modules/api/vcenter/schema/v1/get": certificate_unknown(46)
    
    
    Caused by: org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://172.17.0.2:443/config-modules/api/vcenter/schema/v1/get": certificate_unknown(46)
    
    Caused by: org.bouncycastle.tls.TlsFatalAlert: certificate_unknown(46)

Environment

VCF Operations 9.1

Cause

On the Cloud Proxy, the Config adapter communicates with the local config-modules-docker container via HTTPS. Because it lacks permission to read the Docker socket to determine the container's IP dynamically, it defaults to a hard-coded IP address (172.17.0.2).

If other management packs (like vCommunity integrations) run on the same Docker bridge network, they can inadvertently be assigned the 172.17.0.2 IP address after a Cloud Proxy restart. Subsequent ConfigAdapter requests are misrouted to the vCommunity container. The vCommunity container's TLS certificate does not match the pinned certificate (config-modules.cert.pem), causing the TLS validation to fail with a certificate_unknown(46) error and forcing the vCenter drift executions into an error state.

Resolution

Broadcom Engineering is aware of this issue and is working on a fix.

 

To workaround the issue, ensure the config-modules-docker container retains the expected IP address, or isolate the conflicting Management Packs.

Steps to follow:

  1. SSH into the affected Cloud Proxy.
  2. Check if a container other than config-modules-docker is using the 172.17.0.2 IP address by running the following command:
    docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -q)

    If a different container (such as a vCommunity adapter) is holding the IP, log into the VCF Operations UI and stop data collection for those specific management pack adapter instances. (Note: As a permanent fix, consider deploying a separate Cloud Proxy dedicated solely to the vCommunity and Hardware vCommunity integrations).
  3. Once the conflicting containers are stopped or moved, restart the config-modules-docker container on the original Cloud Proxy:
    docker restart config-modules-docker
  4. Perform the vCenter drift check again from the VCF Operations UI.