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/07/20 17:55:00 UTC
[jira] [Resolved] (VCL-1061) Unnecessary warnings in vcld.log for
Ubuntu 16 images when checking services
[ https://issues.apache.org/jira/browse/VCL-1061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Kurth resolved VCL-1061.
-----------------------------
Resolution: Fixed
> Unnecessary warnings in vcld.log for Ubuntu 16 images when checking services
> ----------------------------------------------------------------------------
>
> Key: VCL-1061
> URL: https://issues.apache.org/jira/browse/VCL-1061
> Project: VCL
> Issue Type: Improvement
> Components: vcld (backend)
> Affects Versions: 2.4.2
> Reporter: Andy Kurth
> Assignee: Andy Kurth
> Fix For: 2.5
>
>
> Ubuntu 16+ uses systemd instead of Upstart but the _initctl_ command may still exist. The Upstart.pm checks if the _initctl_ command exists in order to determine if it should be used.
> The module attempts to execute *initctl list* when retrieving service names. With Ubuntu 16, the following is displayed:
> {noformat}
> initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
> {noformat}
> As a result, the following appears in vcld.log:
> {noformat}
> Upstart.pm:_get_service_info|189| ---- WARNING ----
> Upstart.pm:_get_service_info|189| 2017-07-19 14:07:04Upstart.pm:_get_service_info|189|failed to retrieve list of all services on arkvmm165 using the initctl command, exit status: 1, command:
> Upstart.pm:_get_service_info|189| initctl list
> Upstart.pm:_get_service_info|189| output:
> Upstart.pm:_get_service_info|189| initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
> Upstart.pm:_get_service_info|189| ( 0) Upstart.pm, _get_service_info (line: 189)
> Upstart.pm:_get_service_info|189| (-1) Upstart.pm, get_service_names (line: 133)
> Upstart.pm:_get_service_info|189| (-2) Linux.pm, service_exists (line: 3702)
> Upstart.pm:_get_service_info|189| (-3) test.pm, process (line: 81)
> Upstart.pm:_get_service_info|189| (-4) vcld, make_new_child (line: 601)
> Upstart.pm:_get_service_info|189| (-5) vcld, main (line: 353)
> {noformat}
> The ultimate functionality is fine since the systemd.pm module then checks if it can retrieve the service names. This succeeds. However, unnecessary warnings appear in vcld.log.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)