Usage meter collection error - "Failed to collect vSAN usage data for cluster domain-###"
search cancel

Usage meter collection error - "Failed to collect vSAN usage data for cluster domain-###"

book

Article ID: 404815

calendar_today

Updated On:

Products

VMware Usage Meter

Issue/Introduction

  • On the Notifications tab in Usage Meter, the message 'Failed to collect vSAN usage data for cluster domain-###' is displayed for vSAN enabled vCenter servers.
  • The log file - /opt/vmware/cloudusagemetering/platform/log/collection-vcenter-main.log reveals the following error :
    ERROR --- [pool-#-thread-#] c.v.u.v.vsan.VsanCollectionStage         : Failed to collect vSAN usage data for cluster domain-##.
    javax.xml.ws.WebServiceException: java.net.SocketTimeoutException: Read timed out
            at com.sun.xml.ws.transport.http.client.HttpClientTransport.readResponseCodeAndMessage(HttpClientTransport.java:###)
            at com.sun.xml.ws.transport.http.client.HttpTransportPipe.createResponsePacket(HttpTransportPipe.java:###)

Environment

VCF Usage Meter 9.0
vCloud Usage Meter 4.x

Cause

Collection of vSAN usage data by Usage Meter fails to complete within the currently configured connection timeout values.

Resolution

To resolve the issue, increase the connection timeout values by following the steps below:
 
1. Take a non-memory snapshot of the Usage Meter appliance from vCenter server.
2. Log in as root to Usage Meter appliance and enable SSH  service:
service sshd start
3. Connect to the appliance through SSH as usagemeter user account: 
ssh usagemeter@<um-ip-address>
4. Take a backup copy of collection.yml.
cp /opt/vmware/cloudusagemetering/platform/conf/schedule-executions/collection.yml
/opt/vmware/cloudusagemetering/platform/conf/schedule-executions/collection-backup.yml
5. Edit the collection.yml file using the vi editor. Press i to switch to interactive mode.
vi /opt/vmware/cloudusagemetering/platform/conf/schedule-executions/collection.yml
6. Set the timeout values to 900000 (15 min):
vsanConnectionTimeoutMillis="900000"
vsanReceiveTimeoutMillis="900000"
7. Save the file by pressing ESC and then entering:
:wq!
8. Restart the appliance as root
su -
reboot

Additional Information