Skip to content

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

Open
@augustocarvalho

Description

@augustocarvalho

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions