Bug #13888
self.instances broken for systemd
| Status: | Closed | Start date: | 04/11/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% | |
| Category: | - | |||
| Target version: | 3.0.0 | |||
| Affected Puppet version: | Branch: | https://github.com/puppetlabs/puppet/pull/659 | ||
| Keywords: | ||||
Description
If you try to query for a given resource that is implemented using systemd, it currently fails:
puppet resource service mysqld
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:892:in `instances': undefined method `name' for "proc-sys-fs-binfmt_misc.automount":String (NoMethodError)
from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:889:in `collect'
from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:889:in `instances'
from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:882:in `collect'
from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:882:in `instances'
from /usr/lib/ruby/site_ruby/1.8/puppet/indirector/resource/ral.rb:4:in `find'
from /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:196:in `find'
from /usr/lib/ruby/site_ruby/1.8/puppet/application/resource.rb:222:in `find_or_save_resources'
from /usr/lib/ruby/site_ruby/1.8/puppet/application/resource.rb:144:in `main'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:317:in `run_command'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:309:in `run'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:416:in `hook'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:309:in `run'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:407:in `exit_on_fail'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:309:in `run'
from /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:69:in `execute'
After inspection of the code, the problem is that the systemd provider returns the name of the services instead of a Puppet Resource with that name.
History
#1
Updated by Dan Bode about 1 year ago
- Status changed from Unreviewed to In Topic Branch Pending Review
- Branch set to https://github.com/puppetlabs/puppet/pull/659
#2
Updated by Daniel Pittman about 1 year ago
- Status changed from In Topic Branch Pending Review to Merged - Pending Release
- Target version set to 3.x
#3
Updated by Daniel Pittman about 1 year ago
- Target version changed from 3.x to 3.0.0
#4
Updated by Moses Mendoza 9 months ago
- Status changed from Merged - Pending Release to Closed
released originally in 3.0.0rc1 and again in 3.0.0-rc4