Collecting data with Telemetry fails due to pending changes on Operations Manager
search cancel

Collecting data with Telemetry fails due to pending changes on Operations Manager

book

Article ID: 293764

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

When running the telemetry job to send and collect data, it fails with the following error message:  
Collecting data from Operations Manager at OPSMAN_URL 
Error: Failed collecting from Operations Manager: There are pending changes on this Operations Manager, please apply them or revert them.


Environment

Product Version: 2.10

Resolution

When the telemetry job runs, it gathers information from the https://<opsman url>/api/v0/staged/* and https://<opsman url>/api/v0/deployed/* endpoints.  If there are any pending changes, the job will fail with the error above. 

The first thing a user should do is to check if there are any changes to be applied on any of the tiles of the foundation by using the following endpoint: 
  This endpoint will return a JSON file that contains any pending actions for each tile that Opsman knows about. For each tile, the action field will have one of the following values:
 
  • unchanged - This means that there aren't pending changes for this tile. 
  • install - This means that the product was freshly installed. 
  • delete - This means that the product was deleted.
  • update - This means that there are changes to the tile manifest. Settings were changed or the product was upgraded. 
  • update_stemcell - This means that there are changes to the tile's stemcell. 

The telemetry job will fail if any of the tiles have the action field set to anything other than unchanged e.g:

"guid":"pivotal-container-service-8522c82f97465ed48b75",
         "action":"update",
 
"guid":"harbor-container-registry-369bc53a4680674e8a5e",
         "action":"update_stemcell",
 


As a workaround, if the action is set to update_stemcell the user can go into the stemcell Library and set all the affected stemcells back to currently deployed versions. The same can be done for any updates that can be reverted back. However, our recommendation is to always perform an apply changes if there are any pending changes to any of the tiles before running the telemetry collection.