The status of cost calculation might indicate a failure.

Problem

After a cost calculation failure, when you look at the itfm-server.log file, you might see the Failed to query FactsRepo with query: fetch 'storageGB' by [time,time] error message.

Cause

This problem occurs when the cost calculation status is obtained from the FactsRepo inventory service while the service is busy.

Solution

  1. Log in to the vRealize Business for Cloud virtual machine.
  2. Run the /usr/ITFM-Cloud/va-tools/bin/configclient.py GET -k query.source.batching command.

    The value of the query.source.batching configuration is false.

  3. To change the value of the query.source.batching configuration to true, run the /usr/ITFM-Cloud/va-tools/bin/configclient.py SET -k query.source.batching -v true command.
  4. To verify that the value of the query.source.batching configuration is true, run the /usr/ITFM-Cloud/va-tools/bin/configclient.py GET -k query.source.batching command.
  5. To restart the vRealize Business for Cloud virtual machine, run the monit restart itbm-server command.

    After the vRealize Business for Cloud virtual machine restarts, the cost calculation status is green.