Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Bug]: Impossible to majorUpgrade patroni with opensource images

未关闭
#231 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
go, helm, postgresql
领域
database, devops

调研方向

从 Helm 的 majorUpgrade 路径和 issue 中链接的 GitHub Actions 复现开始。将第三方设置使用的升级镜像与链接的 services/upgrade/Dockerfile 进行比较,然后验证干净的 Helm 大版本升级能够完成,且不会出现缺少 pgsentinel 库的错误。

由索引模型根据 Issue 内容生成。

描述

bug
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

主要语言
Go
星标
3
派生
10
平均合并
17 小时 40 分钟
30 天内合并 PR
102

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Netcracker/pgskipper-operator 的其他 Issue

查看 Netcracker/pgskipper-operator 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。