Puppet upstart问题:错误:/ Service [ssh]:提供程序upstart在此主机上无法正常运行

时间:2015-01-25 11:50:25

标签: ubuntu service puppet upstart

我在使用puppet配置的几台主机上运行Ubuntu 14.04LTS。主机是相同的。有一天,一些主持人木偶代理开始不承认新贵服务。我收到了Error: /Service[servicename]: Provider upstart is not functional on this host。这项服务100%属于暴发户。其他主机上没有这样的问题。

尝试过的木偶代理版本:3.4.3,3.7.3

问题是什么?

这是跟踪:

$ puppet resource service ssh ensure=running provider=upstart --debug
Debug: Runtime environment: puppet_version=3.7.3, ruby_version=1.9.3, run_mode=user, default_encoding=UTF-8
Debug: Puppet::Type::Service::ProviderOpenrc: file /bin/rc-status does not exist
Debug: Puppet::Type::Service::ProviderUpstart: 0 confines (of 2) were true
Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does not exist
Debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist
Debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not exist
Debug: Puppet::Type::Service::ProviderRedhat: file /sbin/chkconfig does not exist
Debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not exist
Debug: Puppet::Type::Service::ProviderSystemd: file systemctl does not exist
Debug: Loaded state in 0.00 seconds
Debug: Puppet::Type::Service::ProviderUpstart: 0 confines (of 2) were true
Error: /Service[ssh]: Provider upstart is not functional on this host
Debug: Finishing transaction 21131160
Debug: Storing state
Debug: Stored state in 0.00 seconds
Debug: Puppet::Type::Service::ProviderUpstart: 0 confines (of 2) were true
Error: Could not run: Provider upstart is not functional on this host

更新:

$ /sbin/status ssh
ssh start/running, process 2789

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.1 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

0 个答案:

没有答案