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 2017/05/12 18:25:04 UTC

[jira] [Resolved] (VCL-1043) utils.pm::kill_child_processes generates warnings if ps line begins with a space

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

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

> utils.pm::kill_child_processes generates warnings if ps line begins with a space
> --------------------------------------------------------------------------------
>
>                 Key: VCL-1043
>                 URL: https://issues.apache.org/jira/browse/VCL-1043
>             Project: VCL
>          Issue Type: Bug
>          Components: vcld (backend)
>    Affects Versions: 2.4.2
>            Reporter: Andy Kurth
>            Assignee: Andy Kurth
>             Fix For: 2.5
>
>
> I can't seem to reproduce this but saw an instance on another system where a line produced by the ps command began with a space. As a result, the following warning was displayed in vcld.log:
> {noformat}
> |9379|74|74|new|utils.pm:kill_child_processes|11713| ---- WARNING ----
> |9379|74|74|new|utils.pm:kill_child_processes|11713| 2017-05-11 13:17:51|9379|74|74|new|utils.pm:kill_child_processes|11713|parent PID: 9379: output line does not contain a PID:
> |9379|74|74|new|utils.pm:kill_child_processes|11713| line: ' 9744  9379 sh -c ps -h --ppid 9379 -o pid,ppid,args | sort -r 2>&1'
> |9379|74|74|new|utils.pm:kill_child_processes|11713| ( 0) utils.pm, kill_child_processes (line: 11713)
> |9379|74|74|new|utils.pm:kill_child_processes|11713| (-1) utils.pm, run_ssh_command (line: 4383)
> |9379|74|74|new|utils.pm:kill_child_processes|11713| (-2) OS.pm, execute (line: 3163)
> |9379|74|74|new|utils.pm:kill_child_processes|11713| (-3) Linux.pm, nfs_mount_share (line: 6131)
> |9379|74|74|new|utils.pm:kill_child_processes|11713| (-4) Linux.pm, nfs_mount_share (line: 6198)
> |9379|74|74|new|utils.pm:kill_child_processes|11713| (-5) OS.pm, mount_nfs_shares (line: 5104)
> {noformat}
> A simple modification to the regex in kill_child_processes will fix this.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)