Skip Configuration Drifts with Exclusion Flags. Error: "Retrieving configuration updates failed. Unable to compute applicability for drift <drift_name>. Because configuration realized check failed on resources"
search cancel

Skip Configuration Drifts with Exclusion Flags. Error: "Retrieving configuration updates failed. Unable to compute applicability for drift <drift_name>. Because configuration realized check failed on resources"

book

Article ID: 344823

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

  • This article allows proceeding with drift application in case of live check failures for some of the drifts.


Symptoms:
  • Retrieving configuration updates failed. Unable to compute applicability for drift <drift_name>. Because configuration realized check failed on resources [********-****-****-****-************.].
  • Check the logs and fix the failures of drift configuration realized checks. Then restart the service to trigger the configuration realized checks again and re-try the APl.
  • If this does not resolve the issue, please contact GSS.


Environment

Vmware Cloud Foundation 5.1
VMware Cloud foundation 5.x

Cause

  • The issue could be caused when the underlying product APIs used to determine the presence of a configuration are not accessible.

Resolution

  • This could be different for each drift and need not be a fix required in SDDC Manager but mostly in the underlying product. Contact GSS to set proper flag.

 

To obtain the drift ID, use the API PageOfConfigDriftSpec and review the Drift name observed in the error message on the UI. 

  1. Navigate to the following location:
  2. Developer Center > API Explorer
  3. Under the API Categories section find and Expand ConfigReconciler and then expand the GET for /v1/config-drifts and select PageOfConfigDriftSpec
  4. Execute the PageOfConfigDriftSpec and you will see list of results.
  5. Expand the entry that is mentioned in the error to obtain the drift ID.

Example Screenshot taken from laboratory setting:

1) Make a backup of application-prod.properties file

                   cp /etc/vmware/vcf/domainmanager/application-prod.properties /etc/vmware/vcf/domainmanager/application-prod.properties.bak

2) Edit the file application-prod.properties and add the below details.

                  vi /etc/vmware/vcf/domainmanager/application-prod.properties

3) And add the vcf.config.drift.exclusion.ids=<drift_id> (grab the drift id from the output of the API )

                vcf.config.drift.exclusion.ids=<drift_id>

4) Save and exit the file

                 press esc and :wq!

4) Restart the services.

                 /opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh