Project

General

Profile

Bug #25294

Installer fails due to dependency cycle on File[/etc/pki/katello/puppet/puppet_client.crt]

Added by Lukas Pramuk over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Installer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:

Description

foreman-installer-1.21.0-0.201810220325gitf8d45fb0.1.develop.el7.noarch
katello-installer-base-3.9.0-0.201810172213git5cc7d852.el7.noarch


[ERROR 2018-10-23T16:22:40 verbose]  Found 1 dependency cycle:
[ERROR 2018-10-23T16:22:40 verbose] (File[/etc/pki/katello/puppet/puppet_client.crt] => Certs::Keypair[puppet] => Class[Certs::Puppet] => Class[Puppet] => Class[Puppet::Server] => Class[Puppet::Server::Install] => User[puppet] => File[/etc/pki/katello/puppet/puppet_client.crt])\nTry the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz
[ERROR 2018-10-23T16:22:40 verbose]  Failed to apply catalog: One or more resource dependency cycles detected in graph
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:165:in `block in evaluate'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:108:in `traverse'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:171:in `evaluate'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:239:in `block (2 levels) in apply'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:519:in `block in thinmark'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:518:in `thinmark'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:238:in `block in apply'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:156:in `with_destination'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:146:in `as_logging_destination'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:237:in `apply'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:186:in `block (2 levels) in apply_catalog'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:519:in `block in thinmark'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:518:in `thinmark'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:185:in `block in apply_catalog'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:232:in `block in benchmark'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:231:in `benchmark'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:184:in `apply_catalog'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:369:in `run_internal'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:237:in `block in run'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:260:in `override'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:211:in `run'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:355:in `apply_catalog'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:280:in `block (2 levels) in main'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:260:in `override'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:280:in `block in main'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:260:in `override'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:233:in `main'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:174:in `run_command'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:375:in `block in run'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:667:in `exit_on_fail'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:375:in `run'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:136:in `run'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:73:in `execute'
[ERROR 2018-10-23T16:22:40 verbose] /opt/puppetlabs/puppet/bin/puppet:5:in `<main>'
[ INFO 2018-10-23T16:22:41 verbose] Puppet has finished, bye!
[ INFO 2018-10-23T16:22:41 verbose] Executing hooks in group post
  Something went wrong! Check the log for ERROR-level output

Associated revisions

Revision 7f79f03f (diff)
Added by Ewoud Kohl van Wijngaarden over 1 year ago

Correct chaining on puppet master integration

The certs::puppet class inherits from certs so that require is
redundant.

We must also chain it to foreman::puppetmaster because puppet now
contains the entire installation. However, it's also provides the
User[puppet] which is the owner of the file. This creates a dependency
cycle. By setting up the cert foreman::puppetmaster uses before the
actual class is used, we avoid this problem and guarantee the ENC
integration is still set up before the puppet master starts.

History

#1 Updated by Ewoud Kohl van Wijngaarden over 1 year ago

  • Status changed from New to Resolved
  • Category set to Installer
  • Project changed from Installer to Katello
  • Fixed in Releases Katello 3.9.0 added
  • Pull request https://github.com/theforeman/puppet-foreman_proxy_content/pull/179 added

#2 Updated by Ewoud Kohl van Wijngaarden over 1 year ago

  • Status changed from Resolved to Closed

#3 Updated by John Mitsch over 1 year ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.9.0

Also available in: Atom PDF