Issue #23120 has been reported by Dolf Schimmel.
----------------------------------------
Bug #23120: Inherited node cannot be found when enclosed with quotes (future
parser)
https://projects.puppetlabs.com/issues/23120
* Author: Dolf Schimmel
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category: parser
* Target version: 3.3.2
* Affected Puppet version: 3.3.1
* Keywords: node inheritance, parser
* Branch:
----------------------------------------
>From the docs, I take this manifest:
<pre>
node 'common' {
}
node 'www1.example.com' inherits 'common' {
}</pre>
This results in this error:
<pre>Error: Could not find parent resource type '"common"' of type node in
production at /vagrant_puppet/manifests/infrastructure/mymanifest.pp:94 on node
www1.example.com
/usr/lib/ruby/vendor_ruby/puppet/util/errors.rb:97:in `fail'
/usr/lib/ruby/vendor_ruby/puppet/resource/type.rb:265:in `parent_type'
/usr/lib/ruby/vendor_ruby/puppet/resource/type.rb:214:in `instantiate_resource'
/usr/lib/ruby/vendor_ruby/puppet/resource/type.rb:206:in `ensure_in_catalog'
/usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:278:in `evaluate_ast_node'
/usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:118:in `block in compile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler/none.rb:6:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler.rb:26:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:118:in `compile'
/usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:29:in `compile'
/usr/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:88:in `block (2
levels) in compile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler/none.rb:6:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler.rb:26:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:86:in `block in
compile'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:182:in `block in benchmark'
/usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:181:in `benchmark'
/usr/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:85:in `compile'
/usr/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:45:in `find'
/usr/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:197:in `find'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:209:in `main'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:151:in `run_command'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block (2 levels) in run'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:457:in `plugin_hook'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:511:in `exit_on_fail'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:86:in `execute'
/usr/bin/puppet:4:in `<main>'
</pre>
I'm invoking this manifest on puppet 3.3.1 with the future parser. Without the
future parser it works just fine.
This works also just fine:
<pre>
node 'common' {
}
node 'www1.example.com' inherits common {
}</pre>
Mind the lack of quotes around <i>common</i>.
--
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.