[ 
https://issues.apache.org/jira/browse/VCL-671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Kurth resolved VCL-671.
----------------------------

    Resolution: Fixed
    
> VMware may delete VM assigned to another reservation when reclaiming disk 
> space on the host
> -------------------------------------------------------------------------------------------
>
>                 Key: VCL-671
>                 URL: https://issues.apache.org/jira/browse/VCL-671
>             Project: VCL
>          Issue Type: Bug
>          Components: vcld (backend)
>    Affects Versions: 2.3.1
>         Environment: Only affects hosts where the vmpath is tight on disk 
> space.
>            Reporter: Andy Kurth
>            Assignee: Andy Kurth
>             Fix For: 2.3.2
>
>
> There is a logic bug in VMware.pm::reclaim_vmhost_disk_space.  It retrieves 
> the other VMs currently loaded on the host and checks if the VM is assigned 
> to another reservation.  If so, the VM should not be deleted.  If not 
> assigned to any other reservations, the other VM may be a candidate for 
> deletion if space needs to be reclaimed on the host in order to load the VM 
> for the current reservation.
> A hash reference is returned to reclaim_vmhost_disk_space by 
> utils.pm::get_request_by_computerid.  The return value is checked:
> my $computer_requests = get_request_by_computerid($check_computer_id);
> if (!keys(%$computer_requests)) {
>    # Not deletable
> }
> else {
>    # Deletable
> }
> This logic is backwards.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to