Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1740174: fix(catalog): re-install resources in existing installplan #977

Conversation

jpeeler
Copy link

@jpeeler jpeeler commented Aug 5, 2019

This specifically fixes the scenario where a subscription is deleted and recreated in a namespace with an additional subscription. When the subscription of interest is deleted, the associated installplan remains due to the other subscription's owner reference. Because the existing installplan manifests match, no additional work is done. This is a problem if resources that were originally installed have been deleted.

Now after a subscription is recreated, the proper owner references are re-added onto the install plan as well as all the resources are checked that they are installed.

(Cherry pick of #965.)

This specifically fixes the scenario where a subscription is deleted and
recreated in a namespace with an additional subscription. When the
subscription of interest is deleted, the associated installplan remains
due to the other subscription's owner reference. Because the existing
installplan manifests match, no additional work is done. This is a
problem if resources that were originally installed have been deleted.

Now after a subscription is recreated, the proper owner references are
re-added onto the install plan as well as all the resources are checked
that they are installed.
@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Aug 5, 2019
@openshift-ci-robot
Copy link
Collaborator

@jpeeler: This pull request references a valid Bugzilla bug. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Bug 1714140: fix(catalog): re-install resources in existing installplan

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.

@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 5, 2019
@ecordell
Copy link
Member

ecordell commented Aug 5, 2019

/lgtm

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ecordell, jpeeler

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

The pull request process is described here

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-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 5, 2019
@crawford
Copy link

crawford commented Aug 5, 2019

I don't see an associated BZ for the parent PR. That needs to be created and then verified by QE before I can merge this.

@ecordell
Copy link
Member

ecordell commented Aug 6, 2019

@crawford The original BZ was filed only against 4.1, should we clone the bug so there's one for 4.1 and 4.2?

@crawford
Copy link

crawford commented Aug 6, 2019

@ecordell You need a bug filed against 4.1.z and 4.2. Typically, the bug against 4.2 gets filed first and then the 4.1.z bug is cloned from that. Once QE has verified the 4.2 bug on the master branch, we can cherry-pick it into the release branch.

@ecordell ecordell changed the title Bug 1714140: fix(catalog): re-install resources in existing installplan Bug 1740174: fix(catalog): re-install resources in existing installplan Aug 12, 2019
@openshift-ci-robot openshift-ci-robot removed the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Aug 12, 2019
@openshift-ci-robot
Copy link
Collaborator

@jpeeler: This pull request references an invalid Bugzilla bug:

  • expected dependent Bugzilla bug to be in one of the following states: VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), but it is MODIFIED instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1740174: fix(catalog): re-install resources in existing installplan

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.

@openshift-ci-robot openshift-ci-robot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Aug 12, 2019
@ecordell
Copy link
Member

@jpeeler we're waiting for QE to verify the parent bug against 4.2, then this will be ready to merge.

@jpeeler
Copy link
Author

jpeeler commented Aug 14, 2019

QE has verified the 4.2 fix now (https://bugzilla.redhat.com/show_bug.cgi?id=1714140).

@jpeeler
Copy link
Author

jpeeler commented Aug 15, 2019

@crawford should be good to go now

@shawn-hurley
Copy link
Member

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Aug 15, 2019
@openshift-ci-robot
Copy link
Collaborator

@shawn-hurley: This pull request references a valid Bugzilla bug. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

/bugzilla refresh

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.

@jpeeler
Copy link
Author

jpeeler commented Aug 16, 2019

@derekwaynecarr I think you're handling backport approvals now?

@eparis eparis added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Aug 20, 2019
@jpeeler
Copy link
Author

jpeeler commented Aug 20, 2019

/test unit

@openshift-merge-robot openshift-merge-robot merged commit 83de755 into operator-framework:release-4.1 Aug 20, 2019
@openshift-ci-robot
Copy link
Collaborator

@jpeeler: All pull requests linked via external trackers have merged. Bugzilla bug 1740174 has been moved to the MODIFIED state.

In response to this:

Bug 1740174: fix(catalog): re-install resources in existing installplan

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.

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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants