Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Implemented
-
None
-
None
Description
VMware.pm's capture subroutine currently aborts if vmprofile.vmdisk is set to dedicated and the repository path is not configured. This was done to prevent reclaim_vmhost_disk_space from deleting image directories that may be shared with other hosts. This is a common base image creation problem since it hasn't been well-documented. The vcld.log error is:
VMware.pm:capture|660| ---- CRITICAL ---- VMware.pm:capture|660| 2017-05-24 08:22:23VMware.pm:capture|660|disk type is set to 'dedicated' but the repository path is NOT configured for VM profile 'VMware ESXi - local storage', this configuration is not allowed because it may result in vmdk directories being deleted without a backup copy saved in the image repository VMware.pm:capture|660| ( 0) VMware.pm, capture (line: 660) VMware.pm:capture|660| (-1) image.pm, process (line: 179) VMware.pm:capture|660| (-2) vcld, make_new_child (line: 587) VMware.pm:capture|660| (-3) vcld, main (line: 348)
It would be better to add logic to reclaim_vmhost_disk_space to prevent possible deletion and allow captures to proceed.