Issue #20128 has been updated by Eugene Vilensky.
Is it possible this issue still affects the "service" service provider?
for example, given
service { 'openmanage':
ensure => running,
start => '/opt/dell/srvadmin/sbin/srvadmin-services.sh start',
stop => '/opt/dell/srvadmin/sbin/srvadmin-services.sh stop',
status => '/opt/dell/srvadmin/sbin/srvadmin-services.sh status',
require => Package['srvadmin-storageservices'],
}
works fine
while adding provider => service
Error: /Stage[main]/Openmanage/Service[openmanage]: Could not evaluate:
undefined method `status' for
#<Puppet::Type::Service::ProviderService:0x7f7491541278>
----------------------------------------
Bug #20128: Error when a service is started: Could not evaluate: undefined
method `[]=' for nil:NilClass
https://projects.puppetlabs.com/issues/20128#change-95721
* Author: Dominic Cleal
* Status: Closed
* Priority: Normal
* Assignee:
* Category: service
* Target version: 3.2.0
* Affected Puppet version: development
* Keywords: regression service events
* Branch: https://github.com/puppetlabs/puppet/pull/1585
----------------------------------------
On a very simple catalog that just starts a service, you get the following
error:
Notice: /Stage[main]//Service[service]/ensure: ensure changed 'stopped' to
'running'
Error: /Stage[main]//Service[service]: Could not evaluate: undefined method
`[]=' for nil:NilClass
Notice: Finished catalog run in 2.08 seconds
Due to my fix for #7165 in lib/puppet/transaction/event_manager.rb:
def dequeue_events_for_resource(target, callback)
target.info "Unscheduling #{callback} on #{target}"
@event_queues[target][callback] = {} <--
end
In this case, @event_queues[target] is nil, therefore it fails.
Reported in [RHBZ#908655 comment
11](https://bugzilla.redhat.com/show_bug.cgi?id=908655#c11).
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.