Data-collection failure in vRBC due to failure of Microsoft Azure APIs
search cancel

Data-collection failure in vRBC due to failure of Microsoft Azure APIs

book

Article ID: 312246

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
  • Azure EA data-collection, Azure EA account addition or Azure EA account update fails.
  • In /var/log/vrb/data-collector/itfm-azure-dc.log of the vRBC appliance, you see error message similar to:
 Caused by: com.xxxxxx.itfm.cloud.datacollector.axxxx.util.AxxxxException: Microsoft Axxxx API server returned an unexpected response: HTTP/1.1 426 Upgrade Required, while making HTTP request: GET https://ea.axxxx.com/rest/xxxxxx/usage-reports?fmt=json
at com.xxxxxx.itfm.cloud.datacollector.axxxx.commons.AxxxxHttpUtils.httpInvoke(AxxxxHttpUtils.java:184) ~[itfm-axxxx-dc-core-7.0.1.0.jar:?]
at com.xxxxxx.itfm.cloud.datacollector.axxxx.commons.AxxxxHttpUtils.httpInvokeWithRetry(AxxxxttpUtils.java:116) ~[itfm-axxxx-dc-core-7.0.1.0.jar:?]
at com.xxxxxx.itfm.cloud.datacollector.axxxx.commons.AxxxxHttpUtils.httpInvoke(AxxxxHttpUtils.java:97) ~[itfm-axxxx-dc-core-7.0.1.0.jar:?]
at com.xxxxxx.itfm.cloud.datacollector.axxxx.commons.AxxxxHttpUtils.getMonthsForEaBillAvailability(AxxxxHttpUtils.java:487) ~[itfm-axxxx-dc-core-7.0.1.0.jar:?]
at com.xxxxxx.itfm.cloud.datacollector.axxxx.api.AxxxxEAClient.login(AxxxxEAClient.java:69) ~[itfm-axxxx-dc-core-7.0.1.0.jar:?]
at com.xxxxxx.itfm.cloud.datacollector.axxxx.service.AxxxxConfigurationService.testConnectionAddDetails(AxxxxConfigurationService.java:39) ~[itfm-axxxx-dc-core-7.0.1.0.jar:?]


Environment

VMware vRealize Business for Cloud 7.5.x

Cause

Some of the Microsoft Azure APIs used by vRBC have been retired as of December 31, 2018.

Resolution

Follow the below specified sequence of steps to resolve the issue:
 
1. Take a snapshot of vRBC appliance
2. If the vRBC version is less than 7.5 , upgrade the vRBC to 7.5
Note: Before upgrade do check the compatibility of other products(like vRA) intgerated with vRBC if any and take necessary actions accordingly.
3. Edit the following file present in the vRBC appliance and add the new properties specified below.
    File:
   /usr/ITFM-Cloud/va-tools/va-conf/azure/azure.properties
 
   Properties:
   EA_BALANCE_SUMMARY_API_TRANSFORMER_SPEC_FILE_PATH=azure_ea_balance_summary_api_transformer.spec
   EA_BILLING_PERIOD_API_TRANSFORMER_SPEC_FILE_PATH=azure_ea_billing_period_api_transformer.spec

 
4. Edit the following file present in the vRBC appliance and add the new properties specified below.
    File:
   /usr/local/tomcat/itbm-data-collector/conf/azure/azure.properties
 
   Properties:
   EA_BALANCE_SUMMARY_API_TRANSFORMER_SPEC_FILE_PATH=azure_ea_balance_summary_api_transformer.spec
   EA_BILLING_PERIOD_API_TRANSFORMER_SPEC_FILE_PATH=azure_ea_billing_period_api_transformer.spec

 
5. Execute the below commands in the vRB VA to create the required specification files
 
   cd /usr/ITFM-Cloud/va-tools/va-conf/azure/
   cp azure_ea_billing_api_transformer.spec azure_ea_balance_summary_api_transformer.spec
   cp azure_ea_billing_api_transformer.spec azure_ea_billing_period_api_transformer.spec
   cd /usr/local/tomcat/itbm-data-collector/conf/azure/
   cp azure_ea_billing_api_transformer.spec azure_ea_balance_summary_api_transformer.spec
   cp azure_ea_billing_api_transformer.spec azure_ea_billing_period_api_transformer.spec
 

 
6. Download the patch vRB_server_patch_7.5.0.26847_11943388.zip by clicking the below link:

    ftp://outbound:[email protected]/patches/19042601601_2267152/vRB_server_patch_7.5.0.26847_11943388.zip

7. Apply the patch using the below steps:
 
   a) On a 7.5 vRB server VA (Either freshly deployed for migration or existing  one) make sure all the services are running by doing  monit summary. This is mandatory in case of migration once you deploy the VA.
   b) Enable SSH to the VA from the VAMI
   c) Copy the vRB_server_patch_7.5.0.26847_11943388.zip to VA.
   d) Unzip the patch zip file using  following command
      unzip vRB_server_patch_7.5.0.26847_11943388.zip
   e) Now run this command
      cd vRB_server_patch_7.5.0.26847_11943388
   f) Run this command to apply-hot-patch script using the following command. This will apply the patch.
      sh apply-hot-patch.sh
   g) After applying the patch, wait for all the services to come up. Monitor the same using 'monit summary'
   h) Wait for UI to come up and check if everything is working fine.