Issue #14297 has been updated by Mick Pollard.

I am hitting this too with some custom upstart jobs.

https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/service/upstart.rb#L84

This indicates that the provider relies on the symlink in /etc/init.d/ existing 
to say a service is now using upstart.

I created the symlink it is looking for and the provider works fine now.

    ln -s /lib/init/upstart-job /etc/init.d/elasticsearch

    debug: Puppet::Type::Service::ProviderUpstart: Executing '/sbin/status 
elasticsearch'
    debug: Service[elasticsearch](provider=upstart): Executing '/sbin/start 
elasticsearch'
    notice: /Stage[main]/Elasticsearch::Service/Service[elasticsearch]/ensure: 
ensure changed 'stopped' to 'running'


----------------------------------------
Bug #14297: Upstart provider broken in 2.7.14
https://projects.puppetlabs.com/issues/14297#change-62040

Author: Andreas Ntaflos
Status: Accepted
Priority: Normal
Assignee: Matthaus Litteken
Category: service
Target version: 2.7.x
Affected Puppet version: 2.7.14
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.

Reply via email to