Netcracker / Netcracker/pgskipper-operator

[Bug]: Impossible to majorUpgrade patroni with opensource images

Open
#231 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
3
Forks
10
Avg merge
2d 3h
Merged PRs (30d)
26

Description

Describe the bug

During testing before implementation test pipeline for postgres opensource repo we found an issue with majorUpgrade case
https://github.com/Netcracker/pgskipper-operator/actions/runs/21032532250
Major upgrade via clean helm in github runners instantly failed with next error:
{noformat}

pg_upgrade run on Fri Jan 30 00:13:56 2026

command: "/usr/lib/postgresql/16/bin/pg_ctl" -w -l "/var/lib/pgsql/data/tmp/pg/pg_upgrade_output.d/20260130T001356.004/log/pg_upgrade_server.log" -D "/var/lib/pgsql/data/postgresql_node1" -o "-p 50432 -b -c listen_addresses='' -c unix_socket_permissions=0700 -c unix_socket_directories='/var/lib/pgsql/data'" start >> "/var/lib/pgsql/data/tmp/pg/pg_upgrade_output.d/20260130T001356.004/log/pg_upgrade_server.log" 2>&1
waiting for server to start....[2026-01-30 00:13:56.390 UTC][source=postgresql]FATAL: could not access file "pgsentinel": No such file or directory
[2026-01-30 00:13:56.391 UTC][source=postgresql]LOG: database system is shut down
stopped waiting
pg_ctl: could not start server
Examine the log output.
{noformat}
Pgsentinel lib added to major upgrade image in gitlab here:
https://gitlab.netcracker.com/PROD.Platform.HA/postgres-operator/-/blob/master/services/upgrade/Dockerfile?ref_type=heads
So thirdparty image doesnt include this, but core-operator include in to patroni by default because this lib need for postgres-exporter
Please fix this issue with helm majorUpgrade, this is required for full scope checks in github pipeline in future

To Reproduce

Run majorUpgrade via helm install or github pipeline

Version

No response

Logs

No response

Additional information

No response

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 with the Helm majorUpgrade path and the GitHub Actions reproduction linked in the issue. Compare the upgrade image used by the third-party setup with the linked services/upgrade/Dockerfile, then verify that a clean Helm major upgrade completes without the missing pgsentinel library error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, helm, postgresql
Domain
database, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.