[
https://issues.apache.org/jira/browse/VCL-916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andy Kurth resolved VCL-916.
----------------------------
Resolution: Fixed
> Linux.pm get_total_space and get_available_space may generate undefined array
> reference warnings
> ------------------------------------------------------------------------------------------------
>
> Key: VCL-916
> URL: https://issues.apache.org/jira/browse/VCL-916
> Project: VCL
> Issue Type: Bug
> Components: vcld (backend)
> Affects Versions: 2.4.2
> Reporter: Andy Kurth
> Assignee: Andy Kurth
> Fix For: 2.5
>
>
> {{Linux.pm::get_total_space}} and {{Linux.pm::get_available_space}} may
> generate warnings such as:
> {noformat}
> ---- CRITICAL ----
> 2015-11-03 06:34:55|vcld:die_handler|659|Can't use an undefined value as an
> ARRAY reference at /usr/local/vcl/bin/../lib/VCL/Module/OS/Linux.pm line 1893.
> ( 0) vcld, die_handler (line: 659)
> (-1) Linux.pm, get_total_space (line: 1893)
> (-2) VMware.pm, get_vmdk_volume_total_space (line: 2187)
> (-3) VMware.pm, is_vmx_vmdk_volume_shared (line: 2116)
> (-4) VMware.pm, check_vmhost_disk_space (line: 2211)
> (-5) VMware.pm, load (line: 519)
> (-6) new.pm, reload_image (line: 634)
> (-7) new.pm, process (line: 277)
> (-8) vcld, make_new_child (line: 587)
> (-9) vcld, main (line: 348)
> {noformat}
> The code is check if $output is defined and including it in the notify
> message if it isn't:
> {code}
> if (!defined($output)) {
> notify($ERRORS{'WARNING'}, 0, "failed to run command to determine
> available space on $computer_short_name:\ncommand: $command\noutput:\n" .
> join("\n", @$output));
> return;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)