Cloud Director cell disk space is full due to request.log files
search cancel

Cloud Director cell disk space is full due to request.log files

book

Article ID: 325687

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • Logs with the format "yyyy_mm_dd.request.log" which are located in the directory /opt/vmware/vcloud-director/logs/ are filling up the systems disk space.
  • The request logs are not being removed after setting a retention policy with the below command:
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n vcloud.http.log.retainDays -v 10


Environment

VMware Cloud Director 10.x

Cause

This issue occurs as the log retention parameter vcloud.http.log.retainDays is not being correctly read from the Cloud Director database.

Resolution

This issue is resolved in Cloud Director 10.5.1.1 which is available for download here.

Workaround:
To workaround the issue until the resolved version is available, the following steps can be applied:
1. Backup the the file /opt/vmware/vcloud-director/etc/global.properties on the Cloud Director cell.
2. Insert the below line in the file /opt/vmware/vcloud-director/etc/global.properties and specify the amount of days you wish to retain the logs. The below example sets the retention to 10 days.
vcloud.http.log.retainDays=10
3. Restart the vmware-vcd service on the Cloud Director cell to apply the change. For more information see Managing a Cell.
4. Repeat steps 1 - 3 above on all Cloud Director cells in the environment. 

Note: The cleanup runs everyday at midnight as per the time on the system where the cell is running