Issue #14297 has been updated by Gabriel Monroy.
I'm also seeing this with Puppet 2.7.14 on Ubuntu Precise 12.04 LTS:
*Example Service*
<pre>
class nodejs::service {
service { "nodejs":
ensure => running,
provider => upstart,
require => [ Class[Nodejs::Install], Class[Nodejs::Config] ],
}
}
</pre>
*Debug output*
<pre>
debug: Class[Nodejs::Config]: The container Stage[main] will propagate my
refresh event
debug: Service[nodejs](provider=upstart): Could not find nodejs in /etc/init.d
debug: Service[nodejs](provider=upstart): Could not find nodejs.sh in
/etc/init.d
err: /Stage[main]/Nodejs::Service/Service[nodejs]: Could not evaluate: Could
not find init script for 'nodejs'
debug: Service[nodejs](provider=upstart): Could not find nodejs in /etc/init.d
debug: Service[nodejs](provider=upstart): Could not find nodejs.sh in
/etc/init.d
err: /Stage[main]/Nodejs::Service/Service[nodejs]: Failed to call refresh:
Could not find init script for 'nodejs'
</pre>
I was able to work around the issue by uninstalling the 2.7.14 gem and using
the packaged version of puppet, which is:
<pre>
root@nodejs-8aa8:~# dpkg --list |grep puppet
ii puppet 2.7.11-1ubuntu2 Centralized
configuration management - agent startup and compatibility scripts
ii puppet-common 2.7.11-1ubuntu2 Centralized
configuration management
</pre>
I assume this is related to Issue #14036.
----------------------------------------
Bug #14297: Upstart provider broken in 2.7.14
https://projects.puppetlabs.com/issues/14297#change-61902
Author: Andreas Ntaflos
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
It seems since Puppet 2.7.14 the Upstart provider is somehow broken, running on
Ubuntu 10.04. An example is the serial console (ttyS0) which is managed by an
Upstart task in /etc/init/ttyS0.conf.
class serialconsole::service {
service { 'ttyS0':
ensure => 'running',
provider => 'upstart',
hasstatus => true,
hasrestart => true,
require => Class['serialconsole::config'],
}
}
This results in the following error message when running the puppet agent:
info: Applying configuration version '1336059066'
err: /Stage[main]/Serialconsole::Service/Service[ttyS0]: Could not
evaluate: Could not find init script for 'ttyS0'
notice: Finished catalog run in 5.93 seconds
Anything else I can provide? Please let me know.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.