[
https://issues.apache.org/jira/browse/VCL-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15928294#comment-15928294
]
ASF subversion and git services commented on VCL-1004:
------------------------------------------------------
Commit 1787210 from [email protected] in branch 'vcl/trunk'
[ https://svn.apache.org/r1787210 ]
VCL-1004
Updated VMware.pm::copy_vmdk to use a value of 1 if the copy was extremely fast
and the duration was calculated to be 0 seconds.
> Illegal division by zero VMware.pm::copy_vmdk
> ---------------------------------------------
>
> Key: VCL-1004
> URL: https://issues.apache.org/jira/browse/VCL-1004
> Project: VCL
> Issue Type: Bug
> Components: vcld (backend)
> Affects Versions: 2.4.2
> Reporter: Andy Kurth
> Fix For: 2.5
>
>
> There is no divide by 0 checking in VMware.pm::copy_vmdk when it calculates
> copy speed.
> {noformat}
> |2095|3062142|3169880|new|vcld:die_handler|670| ---- CRITICAL ----
> |2095|3062142|3169880|new|vcld:die_handler|670| 2016-12-06
> 13:27:23|2095|3062142|3169880|new|vcld:die_handler|670|Illegal division by
> zero at /usr/local/vcl/bin/../lib/VCL/Module/Provisioning/VMware/VMware.pm
> line 6196.
> |2095|3062142|3169880|new|vcld:die_handler|670| ( 0) vcld, die_handler (line:
> 670)
> |2095|3062142|3169880|new|vcld:die_handler|670| (-1) VMware.pm, copy_vmdk
> (line: 6196)
> |2095|3062142|3169880|new|vcld:die_handler|670| (-2) VMware.pm, prepare_vmdk
> (line: 2068)
> |2095|3062142|3169880|new|vcld:die_handler|670| (-3) VMware.pm, load (line:
> 621)
> |2095|3062142|3169880|new|vcld:die_handler|670| (-4) new.pm, reload_image
> (line: 582)
> |2095|3062142|3169880|new|vcld:die_handler|670| (-5) new.pm, process (line:
> 277)
> |2095|3062142|3169880|new|vcld:die_handler|670| (-6) vcld, make_new_child
> (line: 598)
> |2095|3062142|3169880|new|vcld:die_handler|670| (-7) vcld, main (line: 349)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)