puppetlabs / puppetlabs/puppetlabs-postgresql

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

Open
#1,541 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

community
Dominant language
Ruby
Stars
232
Forks
610
Avg merge
5d 23h
Merged PRs (30d)
4

Description

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the dependency cycle with postgresql::server::config_entry for wal_level on the stated Puppet, Ubuntu, and PostgreSQL versions, then inspect the generated cycles.dot graph. Done means the wal_level entry updates postgresql.conf and the catalog applies without a dependency cycle.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.