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 1862481: Correctly count non-default Marketplace CRs #322

Merged

Conversation

awgreene
Copy link
Member

@awgreene awgreene commented Aug 6, 2020

Problem: It is possible for the marketplace operator to report that
deprecated CRs are present on cluster despite no CRs being present.

Solution: Marketplace already searches for non-default CRs on cluster
when reporting status. Marketplace will now use this search to report
the number of deprecated CRs on cluster.

Problem: It is possible for the marketplace operator to report that
deprecated CRs are present on cluster despite no CRs being present.

Solution: Marketplace already searches for non-default CRs on cluster
when reporting status. Marketplace will now use this search to report
the number of deprecated CRs on cluster.
@awgreene awgreene changed the title Bug: Correctly count non-default Marketplace CRs Bug 1862481: Correctly count non-default Marketplace CRs Aug 6, 2020
@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. label Aug 6, 2020
@openshift-ci-robot
Copy link
Contributor

@awgreene: This pull request references Bugzilla bug 1862481, which is valid. 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.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.6.0) matches configured target release for branch (4.6.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1862481: Correctly count non-default Marketplace CRs

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/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Aug 6, 2020
}
for _, opsrc := range opsrcs.Items {
if !defaults.IsDefaultSource(opsrc.Name) {
return true, nil
nonDefaultOpsrcCount++
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need to keep a count at all? Why can't we just have knowledge of if they exist on the cluster?

Copy link
Member Author

@awgreene awgreene Aug 6, 2020

Choose a reason for hiding this comment

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

I do not have a strong preference, but we lose information regarding how many Marketplace CRs exist on cluster by going binary. If you can explain potential benefits, I'll be happy to make the change.

Copy link
Contributor

Choose a reason for hiding this comment

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

I actually think it's beneficial to have a count coz it enhances the UX for an admin.

If it is binary:

  • Sees the alert
  • Deletes an opsrc
  • Sees the alert still exists (but I already deleted a custom resource)

If it is a count:

  • Sees the alert
  • Deletes a CR and sees the count go down
  • Alert tells the admin there's more CRs to be deleted.

@anik120
Copy link
Contributor

anik120 commented Aug 6, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 6, 2020
@awgreene
Copy link
Member Author

awgreene commented Aug 6, 2020

/retest

2 similar comments
@awgreene
Copy link
Member Author

awgreene commented Aug 6, 2020

/retest

@awgreene
Copy link
Member Author

awgreene commented Aug 7, 2020

/retest

@kevinrizza
Copy link
Member

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: awgreene, kevinrizza

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 7, 2020
@awgreene
Copy link
Member Author

awgreene commented Aug 7, 2020

/retest

2 similar comments
@awgreene
Copy link
Member Author

awgreene commented Aug 8, 2020

/retest

@awgreene
Copy link
Member Author

awgreene commented Aug 8, 2020

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@awgreene
Copy link
Member Author

awgreene commented Aug 9, 2020

Ci issue:

time="2020-08-09T09:49:38Z" level=error msg="failed to remove file" error="could not run remote command: pod e2e-aws-console-olm does not have a host assigned"

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

4 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@awgreene
Copy link
Member Author

/retest

1 similar comment
@awgreene
Copy link
Member Author

/retest

@openshift-merge-robot openshift-merge-robot merged commit 82a0785 into operator-framework:master Aug 10, 2020
@openshift-ci-robot
Copy link
Contributor

@awgreene: All pull requests linked via external trackers have merged: operator-framework/operator-marketplace#322. Bugzilla bug 1862481 has been moved to the MODIFIED state.

In response to this:

Bug 1862481: Correctly count non-default Marketplace CRs

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.

@awgreene
Copy link
Member Author

/cherry-pick release-4.5

@openshift-cherrypick-robot

@awgreene: new pull request created: #324

In response to this:

/cherry-pick release-4.5

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.

@jonesbr17
Copy link

/cherry-pick release-4.4

@openshift-cherrypick-robot

@jonesbr17: only operator-framework org members may request cherry picks. You can still do the cherry-pick manually.

In response to this:

/cherry-pick release-4.4

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.

@jonesbr17
Copy link

@awgreene would it be possible to get this cherry-picked to release-4.4 as well? Thanks.

@jonesbr17
Copy link

@awgreene Any updates on this? This bug is still present in 4.4. Can this be cherry-picked?

@awgreene
Copy link
Member Author

Good morning @jonesbr17, this bugfix was backported to 4.4 in #326.

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/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants