[Bug 1457957] [NEW] puppet uses upstart for service status checks in vivid
Tom Hendrikx
1457957 at bugs.launchpad.net
Fri May 22 15:45:41 UTC 2015
Public bug reported:
After upgrading one of my servers to 15.04/vivid (from original
14.10/utopic install), I had a failing puppet job. The error message is:
Error: /Stage[main]/Main/Service[ssh]: Could not evaluate: Execution of
'/sbin/status ssh' returned 1: status: Unable to connect to Upstart:
Failed to connect to socket /com/ubuntu/upstart: Connection refused
After some research it seems that this happens with all daemons that
have an upstart config file hanging around in '/etc/init/'. Puppet
checks for existence of that file, and then assumes that it should issue
the '/sbin/status <service>' command in order to check the service
status. For all services that don't have an upstart conf installed,
puppet uses '/etc/init.d/<service> status', which works perfectly (for
ssh and munin-node, the two services I used while verifying the
behavior).
As I assume that we cannot expect to have all services drop the upstart
config in their vivid packages (I'm not sure about the status of upstart
support in vivid), the best fix should be to have puppet check for
'/etc/init.d/<service>' before trying '/etc/init/<service>/.conf', at
least on vivid.
puppet-common version: 3.7.2-1ubuntu2
Note: even setting service 'hasstatus => no' and 'status =>
/etc/init.d/ssh status' in the puppet Service definition does not force
puppet to not issue the command (which probably should be a separate
bug).
** Affects: puppet (Ubuntu)
Importance: Undecided
Status: New
** Tags: vivid
** Attachment added: "Test puppet recipe that fails when executed on vivid using: 'puppet apply test.pp'"
https://bugs.launchpad.net/bugs/1457957/+attachment/4402503/+files/test.pp
** Tags added: verification-done
** Tags removed: verification-done
** Tags added: vivid
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to puppet in Ubuntu.
https://bugs.launchpad.net/bugs/1457957
Title:
puppet uses upstart for service status checks in vivid
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1457957/+subscriptions
More information about the Ubuntu-server-bugs
mailing list