You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by "Andy Kurth (JIRA)" <ji...@apache.org> on 2015/07/07 19:51:04 UTC

[jira] [Resolved] (VCL-868) OS.pm::wait_for_no_ping uses computer's hostname, change to use IP address

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

Andy Kurth resolved VCL-868.
----------------------------
    Resolution: Fixed

Resolving issue.  Not creating a bugfix branch for 2.4.3:
http://markmail.org/message/o6mevwkoxrfgidtb

> OS.pm::wait_for_no_ping uses computer's hostname, change to use IP address
> --------------------------------------------------------------------------
>
>                 Key: VCL-868
>                 URL: https://issues.apache.org/jira/browse/VCL-868
>             Project: VCL
>          Issue Type: Bug
>          Components: vcld (backend)
>    Affects Versions: 2.4.2
>            Reporter: Andy Kurth
>            Assignee: Andy Kurth
>             Fix For: 2.4.3
>
>
> OS.pm::wait_for_no_ping calls {{utils.pm::\_pingnode}} and passes it the result of {{$self->data->get\_computer\_node\_name}}.  This fails if the computer's hostname does not resolve to its private IP address -- if it isn't in _/etc/hosts_.
> This causes problems such as during image capture of Windows images:
> {noformat}
> 2015-04-24 11:15:44|5733|2688796|2790931|image|Windows.pm:reboot|3654|executed reboot command on vi1-216
> 2015-04-24 11:15:44|5733|2688796|2790931|image|Module.pm:code_loop_timeout|1420|waiting for vi1-216 to NOT respond to ping, code returned true
> 2015-04-24 11:15:49|5733|2688796|2790931|image|Module.pm:code_loop_timeout|1429|attempt 1: waiting for vi1-216 to respond to ping (0/300 elapsed/remaining seconds), sleeping for 15 seconds
> ...
> 015-04-24 11:20:49|5733|2688796|2790931|image|Module.pm:code_loop_timeout|1429|attempt 21: waiting for vi1-216 to respond to ping (300/0 elapsed/remaining seconds), sleeping for 0 seconds
> 2015-04-24 11:20:49|5733|2688796|2790931|image|Module.pm:code_loop_timeout|1443|waiting for vi1-216 to respond to ping, code did not return true after waiting 300 seconds
> |5733|2688796|2790931|image|OS.pm:wait_for_reboot|714| ---- WARNING ----
> |5733|2688796|2790931|image|OS.pm:wait_for_reboot|714| 2015-04-24 11:20:49|5733|2688796|2790931|image|OS.pm:wait_for_reboot|714|vi1-216 never responded to ping
> |5733|2688796|2790931|image|OS.pm:wait_for_reboot|714| ( 0) OS.pm, wait_for_reboot (line: 714)
> |5733|2688796|2790931|image|OS.pm:wait_for_reboot|714| (-1) Windows.pm, reboot (line: 3691)
> |5733|2688796|2790931|image|OS.pm:wait_for_reboot|714| (-2) Windows.pm, disable_pagefile (line: 2341)
> |5733|2688796|2790931|image|OS.pm:wait_for_reboot|714| (-3) Windows.pm, pre_capture (line: 551)
> |5733|2688796|2790931|image|OS.pm:wait_for_reboot|714| (-4) Version_6.pm, pre_capture (line: 171)
> |5733|2688796|2790931|image|OS.pm:wait_for_reboot|714| (-5) 7.pm, pre_capture (line: 100)
> 2015-04-24 11:20:49|5733|2688796|2790931|image|OS.pm:wait_for_reboot|673|vi1-216 reboot failed to complete on previous attempt, attempting hard power reset
> {noformat}
> The code should be changed to use the return value of {{utils.pm::determine\_remote\_connection\_target}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)