MGMT-23340: upgrade assisted-service postgresql from 13 to 15#10096
Conversation
Update DATABASE_IMAGE to postgresql-15-c9s across all deployment manifests, test infrastructure, and documentation. The existing postgres_startup.sh wrapper automatically detects the version mismatch and triggers pg_upgrade with hardlink mode. See docs/dev/postgresql-upgrade.md for details. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@zszabo-rh: This pull request references MGMT-23340 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (16)
WalkthroughPostgreSQL container image version upgraded from 13 to 15 across build configuration, Kubernetes manifests, deployment files, Podman pod definitions, documentation, and Go source code. All references to Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Tools execution failed with the following error: Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error) Comment |
|
@zszabo-rh: This pull request references MGMT-23340 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
1 similar comment
|
@zszabo-rh: This pull request references MGMT-23340 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #10096 +/- ##
==========================================
+ Coverage 44.27% 44.59% +0.31%
==========================================
Files 416 416
Lines 72549 73018 +469
==========================================
+ Hits 32123 32560 +437
- Misses 37521 37538 +17
- Partials 2905 2920 +15
🚀 New features to boost your workflow:
|
|
@zszabo-rh: This pull request references MGMT-23340 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rccrdpccl, zszabo-rh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
1 similar comment
|
/retest |
|
/override ci/prow/edge-e2e-ai-operator-disconnected-capi |
|
@rccrdpccl: Overrode contexts on behalf of rccrdpccl: ci/prow/edge-e2e-ai-operator-disconnected-capi DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/unhold |
|
/retest |
|
/override ci/prow/edge-e2e-ai-operator-ztp-capi ci/prow/edge-e2e-ai-operator-disconnected-capi ci/prow/edge-e2e-ai-operator-ztp |
|
@rccrdpccl: Overrode contexts on behalf of rccrdpccl: ci/prow/edge-e2e-ai-operator-disconnected-capi, ci/prow/edge-e2e-ai-operator-ztp, ci/prow/edge-e2e-ai-operator-ztp-capi DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@zszabo-rh: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary
Upgrade PostgreSQL from 13 to 15 using sclorg's native upgrade mechanism.
Changes:
postgresql-15-c9s(PG15 on RHEL9) across all deployment manifests, test infrastructure, and documentationdocs/dev/postgresql-upgrade.mdwith current upgrade path infoHow it works:
When the new image starts against existing PG13 data, the
postgres_startup.shwrapper (added in MGMT-16090) detects the version mismatch and setsPOSTGRESQL_UPGRADE=hardlink. The sclorg container then runspg_upgrade --linkto migrate data in-place. Hardlink mode is fast (seconds) and requires no extra storage.Why PG15 and not PG16:
Direct PG13→PG16 upgrade is not possible with stock sclorg images —
postgresql-16-c9sonly supports upgrading from PG15 data (POSTGRESQL_PREV_VERSION=15). RHEL 9 module streams skip PG14, so the upgrade path is 13→15→16. PG16 will follow in the next release.Depends on: openshift/release#77242 (CI image mirroring — must merge first, otherwise disconnected CI tests fail because PG15 image is not mirrored)
Test plan
postgres_startup.shwrapper —pg_upgradecompleted successfully/hold