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

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

book

Article ID: 325687

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • 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

  • Log bundle creation fails.
  • Root partition shows 100%.
  • Unable to access vCloud Director primary cell user interface.

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

Workaround:

Follow the below steps to manually update global.properties file to retain the request.log for a specific period of days on the cloud director cells.
 
1. Backup 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.
              
        systemctl restart vmware-vcd.service
 
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.