puppetlabs-postgresql icon indicating copy to clipboard operation
puppetlabs-postgresql copied to clipboard

postgresql::server::config_entry - dependency cycles detected (after upgrade to 10.0.0)

Open augustocarvalho opened this issue 2 years ago • 3 comments

Describe the Bug

After upgrade from 9.2.0 to 10.0.0 or 10.0.1 puppet fails with dependency cycle error: Error: Found 1 dependency cycle: (Anchor[postgresql::server::service::begin::main] => Postgresql_psql[Set template1 encoding to UTF8] => Postgresql::Server::Instance::Late_initdb[main] => Postgresql::Server::Instance::Initdb[main] => Class[Postgresql::Server::Initdb] => Postgresql_conf[wal_level] => Class[Postgresql::Server::Service] => Postgresql::Server::Instance::Service[main] => Anchor[postgresql::server::service::begin::main])\nCycle graph written to /opt/puppetlabs/puppet/cache/state/graphs/cycles.dot. Error: Failed to apply catalog: One or more resource dependency cycles detected in graph

Expected Behavior

Update the config entry to postgresql.conf

Steps to Reproduce

Steps to reproduce the behavior:

For example change the wal_level

postgresql::server::config_entry { 'wal_level': value => 'archive',
}

Apply puppet and it fails.

Environment

  • Version [Puppet 7]
  • Platform [Ubuntu 20.04]
  • Postgresql-14
  • puppetlab-postgresql (since 10.0.0)

augustocarvalho avatar Oct 20 '23 14:10 augustocarvalho

Hi, thanks for the Ticket, we're able to reproduce it in https://github.com/puppetlabs/puppetlabs-postgresql/pull/1547

bastelfreak avatar Oct 26 '23 10:10 bastelfreak

Any updates on this? We're experiencing the same issue after upgrading the module and had to revert to 9.2.0

ShadNex avatar Jul 12 '24 06:07 ShadNex

@ShadNex this should be fixed in https://github.com/puppetlabs/puppetlabs-postgresql/pull/1564 . Can you try that branch and comment in the PR please?

bastelfreak avatar Jul 12 '24 08:07 bastelfreak