Issue #4852 has been updated by Peter Meier.
So the dependency cycle was actually due to the following reasons:
<pre>
class puppet::client::cron {
require cron
#[...]
}
</pre>
What we actually want to do is to require the cron module here. 0.25.x didn't
yet produce a dependency cycle for that. 2.6.1 does, which is also correct and
the fix for that is:
<pre>
class puppet::client::cron {
require ::cron
#[...]
}
</pre>
BUT the error message isn't really helpful, because I have for example no idea
that Whit is the (probably) internal representation of "class dependencies".
----------------------------------------
Bug #4852: Vague/unclear dependency cycle error
http://projects.puppetlabs.com/issues/4852
Author: Peter Meier
Status: Accepted
Priority: High
Assignee:
Category: plumbing
Target version: 2.6.2
Affected version: 2.6.1
Keywords:
Branch:
Having a dependency cycle in my manifests I get the following error message:
<pre>
/usr/lib/ruby/site_ruby/1.8/puppet/simple_graph.rb:204:in `topsort'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:281:in `prepare'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:130:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:144:in `apply'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:152:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:175:in `benchmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:174:in `benchmark'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:151:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:21:in `lock'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:103:in `with_client'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:37:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:171:in `call'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:171:in `controlled_run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:35:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:114:in `onetime'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:88:in `run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:300:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:397:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:300:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:55:in `execute'
/usr/bin/puppet:4
err: Could not apply complete catalog: Found dependency cycles in the following
relationships: Whit[Puppet::Client::Cron] => Whit[Puppet::Client::Cron]; try
using the '--graph' option and open the '.dot' files in OmniGraffle or GraphViz
</pre>
However there is no resource called @Whit["Puppet::Client::Cron"]@ in my
manifests nor do I get like that an idea what might create the dependency cycle.
--
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.