Manual Backups: Succeed regardless of the retention settings.
"Retain All Backups": Scheduled backups succeed if this option is selected.
"Retain Last X Backups": Scheduled backups fail consistently when configured to retain a specific number of backups.
Reviewing /var/log/vmware/applmgmt/backup.log in vCenter reveals failures related to:
ERROR: BackupManager encountered an exception: Failed to dispatch metadata information.
ERROR: rc: 2, stderr: /usr/bin/tar: -: Wrote only 4096 of 10240 bytes
BrokenPipeError: [Errno 32] Broken pipe
util.Common.BackupRestoreError: Failed to dispatch WAL directory structure.YYYY-MM-DDTHH:MM:SS [20###203-19##06-25###86] [ComponentScriptsBackup:PID-4####6] [Proc::UpdateExceptionStatus:Proc.py:408] ERROR: Checksum not generated at /dev/shm/backupRestoreSumFile-####-####-snfwa0y_
YYYY-MM-DDTHH:MM:SS [20###203-19##06-25###86] [ComponentScriptsBackup:PID-4####6] [ComponentScripts::ComponentScriptsBackup:ComponentScripts.py:127] ERROR: Component imagebuilder backup dispatch failed.
YYYY-MM-DDTHH:MM:SS [20###203-19##06-25###86] [ComponentScriptsBackup:PID-4####6] [ComponentScripts::ComponentScriptsBackup:ComponentScripts.py:148] ERROR: Failed to dispatch component imagebuilder backup
Underlying process status. rc: 255
stdout:
stderr:
Traceback (most recent call last): File "/usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/components/ComponentScripts.py", line 128, in ComponentScriptsBackup raise BackupRestoreError(('Failed to dispatch component %s 'util.Common.BackupRestoreError: Failed to dispatch component imagebuilder backupERROR: Checksum not generated at /dev/shm/backupRestoreSumFile-
ERROR: Unable to perform backup: [Errno 32] Broken pipeException ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
ERROR: BrokenPipeError: [Errno 32] Broken pipe
ERROR: Component backup command "/etc/vmware/backup/component-scripts/vum/backup_restore.py --startBackup" failed 120.
ERROR: Error during component vum backup
This issue is fixed in VCF 9.1 version and higher.
See VMware Cloud Foundation 9.1. for steps to download this release.
If an upgrade to version 9.1 is not immediately possible, implement the following steps.
Note: These steps are applicable only to VCF 9.0.x. Before proceeding with the changes below, take a non-memory snapshot of the vCenter VM
ScheduleManager.py
SchedulerCron.pycp /usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/ScheduleManager.py /root/ScheduleManager.py.original
cp /usr/lib/applmgmt/backup_restore/scripts/SchedulerCron.py /root/SchedulerCron.py.originalcp /root/ScheduleManager.py /usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/
cp /root/SchedulerCron.py /usr/lib/applmgmt/backup_restore/scripts/chmod 544 /usr/lib/applmgmt/backup_restore/scripts/SchedulerCron.py
chmod 444 /usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/ScheduleManager.pyservice-control --restart applmgmtAfter performing the above steps, the scheduled backups and retention should work as expected.