Skip to content

WIP: Remove OLM operator on startup#857

Closed
yanirq wants to merge 1 commit intoopenshift-kni:masterfrom
yanirq:remove_olm
Closed

WIP: Remove OLM operator on startup#857
yanirq wants to merge 1 commit intoopenshift-kni:masterfrom
yanirq:remove_olm

Conversation

@yanirq
Copy link
Member

@yanirq yanirq commented Feb 28, 2022

Once PAO is merged and shipped with NTO (as one controller) there is a need to clean up the old OLM operator, especially in upgrade use cases.
This PR should be aligned with openshift/cluster-node-tuning-operator#314 .

Functional tests and the existing deployment schemes in this repo will align either in this or in an additional PR/s

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 28, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 28, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yanirq

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 28, 2022
@coveralls
Copy link

coveralls commented Feb 28, 2022

Pull Request Test Coverage Report for Build 2347

  • 0 of 58 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.3%) to 59.168%

Changes Missing Coverage Covered Lines Changed/Added Lines %
controllers/performanceprofile_controller.go 0 58 0.0%
Totals Coverage Status
Change from base Build 2336: -1.3%
Covered Lines: 1565
Relevant Lines: 2645

💛 - Coveralls

} else {
klog.Infof("Removing performance-addon-operator subscription %s", subscription.Name)
if subscription.Status.CurrentCSV != paoCSV {
klog.Warningf("Subscription to be removed contains a current CSV version %s which is different from %s", subscription.Status.CurrentCSV, paoCSV)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably we should exit here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder what can bring us to this scenario at all. maybe this is an overkill

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only if a user will not update a subscription from 4.9 or earlier version(but it should be the unsupported scenario, so I think we should exit with the error that first, you should upgrade to 4.10) and will upgrade to 4.11.


// uninstall PAO OLM operator and all of its artifacts
// this should apply only from version 4.11
func (r *PerformanceProfileReconciler) removeOLMOperator() error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you will need a bunch of new permissions for OLM related resources

@yanirq yanirq force-pushed the remove_olm branch 5 times, most recently from f0b3369 to 3297282 Compare March 2, 2022 16:26
Signed-off-by: Yanir Quinn <yquinn@redhat.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 6, 2022

@yanirq: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ci 4abc0ad link true /test ci
ci/prow/ci-index 4abc0ad link true /test ci-index
ci/prow/images 4abc0ad link true /test images
ci/prow/e2e-gcp-operator-upgrade 4abc0ad link true /test e2e-gcp-operator-upgrade
ci/prow/e2e-gcp 4abc0ad link true /test e2e-gcp

Full PR test history. Your PR dashboard.

Details

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/test-infra repository. I understand the commands that are listed here.

@yanirq
Copy link
Member Author

yanirq commented Apr 11, 2022

This is implemented under the new repository for PAO:
openshift/cluster-node-tuning-operator#336

@yanirq yanirq closed this Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments