[release-4.22] OCPBUGS-120746: Move packageserver PDB from guest cluster to management cluster - #9548
Conversation
…ster The packageserver PDB was being created in the guest cluster's openshift-operator-lifecycle-manager namespace by CVO, but packageserver pods run on the management cluster in the clusters-<hosted-cluster> namespace. This moves the PDB to the correct location. - Add packageserver PDB manifest to manifestsToOmit to prevent CVO from creating it in guest clusters - Add packageserver-pdb to resourcesToRemove for all platforms to clean up the orphaned PDB on existing clusters during upgrade - Register PDB manifest adapter in packageserver component to create the PDB in the management cluster namespace
Regenerate CVO deployment and packageserver component test fixtures to reflect the packageserver PDB being omitted from the guest cluster CVO payload and added to the management cluster namespace.
…4.22 The fixtures cherry-picked from openshift#8459 were generated on main and are stale on the release-4.22 base. Regenerating updates the CPOv2 desired-state-hash annotations: - cluster-version-operator deployment fixtures: hash value changes because the packageserver PDB is now omitted from the CVO payload. - packageserver PDB fixtures: gain the desired-state-hash annotation now that the PDB is a CPOv2-managed resource on release-4.22.
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@dhgautam99: This pull request references Jira Issue OCPBUGS-120746, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
/jira refresh |
|
@dhgautam99: This pull request references Jira Issue OCPBUGS-120746, which is valid. The bug has been moved to the POST state. 7 validation(s) were run on this bug
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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-4.22 #9548 +/- ##
================================================
+ Coverage 36.71% 36.77% +0.05%
================================================
Files 777 779 +2
Lines 95484 95585 +101
================================================
+ Hits 35061 35149 +88
- Misses 57580 57592 +12
- Partials 2843 2844 +1
🚀 New features to boost your workflow:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bryan-cox, dhgautam99 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 |
|
/lgtm |
|
Scheduling tests matching the |
|
/label backport-risk-assessed |
|
/pipeline required |
|
Scheduling tests matching the |
|
@vismishr: This PR has been marked as verified by 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. |
|
/test e2e-aws-upgrade-hypershift-operator |
|
/hold Revision 9f3ba5d was retested 3 times: holding |
|
/test e2e-aws-upgrade-hypershift-operator |
|
/retest |
|
All PipelineRuns for this commit have already succeeded. Use |
|
/test e2e-aws-upgrade-hypershift-operator |
|
/test e2e-v2-aws |
|
/unhold |
|
/hold |
|
/unhold |
|
@dhgautam99: 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. |
8312e54
into
openshift:release-4.22
|
@dhgautam99: No Jira issue with key OCPBUGS-120746 exists in the tracker at https://redhat.atlassian.net. 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. |
|
/jira refresh |
|
@dhgautam99: Jira Issue Verification Checks: Jira Issue OCPBUGS-120746 Jira Issue OCPBUGS-120746 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 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. |
|
Fix included in release 4.22.0-0.nightly-2026-09-26-202614 |
Summary
This PR supersedes #9520 (opened by
openshift-cherrypick-robot), the cherry-pick of #8459 (OCPBUGS-54790) torelease-4.22.The original cherry-pick failed the Unit Tests job (
TestControlPlaneComponents). The failure was not a source-code bug — the test fixtures cherry-picked frommainare stale on therelease-4.22base. The only differences were the CPOv2hypershift.openshift.io/desired-state-hashannotations:desired-state-hashannotation now that the PDB is a CPOv2-managed resource onrelease-4.22.This PR contains the two original commits plus one commit regenerating those 10 fixtures (
UPDATE=true go test ./...). The fullhostedcontrolplanepackage test tree now passes locally.Commits
fix(CPO): move packageserver PDB from guest cluster to management cluster(from OCPBUGS-54790: Move packageserver PDB from guest cluster to management cluster #8459)test(CPO): update test fixtures for packageserver PDB changes(from OCPBUGS-54790: Move packageserver PDB from guest cluster to management cluster #8459)test(CPO): regenerate packageserver PDB and CVO fixtures for release-4.22Supersedes: #9520
Original cherry-pick source: #8459