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

[release 4.7] Bug 1953579: GatherClusterOperators and GatherClusterOperatorsPodAndEvents #410

Conversation

rluders
Copy link
Contributor

@rluders rluders commented Apr 26, 2021

This PR backports two changes related to GatherClusterOperators #355 and #397.

This backports some changes that allow the gather to collect also logs from pods that are related to unhealthy operators, and also improves the gather responsibility by splitting it into to gathers GatherClusterOperators and GatherClusterOperatorsPodAndEvents.

Categories

  • Bugfix
  • Enhancement
  • Backporting
  • Others (CI, Infrastructure, Documentation)

Sample archive

N/A

Documentation

  • docs/gathered-data.md (updated)

Unit Tests

  • pkg/gather/clusterconfig/operators_pods_and_events_test.go (new)
  • pkg/gather/clusterconfig/operators_test.go (updated)

Privacy

Yes. There are no sensitive data in the newly collected information.

Changelog

N/A

References

https://issues.redhat.com/browse/CCXDEV-4429
https://bugzilla.redhat.com/show_bug.cgi?id=1953579

…penshift#397)

* Split operators gather

This splits the cluster operators gather into two gathers, one for operator resources and other for unhealty operators.

* Adds precommit target

This adds the precommit target to the makefile, so we can execute it to test the stashed changes before actually commit.

* Move CompactedEvent

This move the structure that was previously defined on operators to operators_unhealthy.

* Change operators name

This changes the previous operator_unhealty to operator_pods_and_events.

* Update gathered documentation

This updates the gatherer documentation for operators and operators_pods_and_events
@openshift-ci-robot
Copy link
Contributor

@rluders: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

[release 4.7] Bug : GatherClusterOperators and GatherClusterOperatorsPodAndEvents

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 do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 26, 2021
@openshift-ci-robot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 26, 2021
@rluders rluders changed the title [release 4.7] Bug : GatherClusterOperators and GatherClusterOperatorsPodAndEvents [release 4.7] Bug 1953579: GatherClusterOperators and GatherClusterOperatorsPodAndEvents Apr 26, 2021
@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. label Apr 26, 2021
@openshift-ci-robot
Copy link
Contributor

@rluders: This pull request references Bugzilla bug 1953579, 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.

6 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.7.z) matches configured target release for branch (4.7.z)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
  • dependent bug Bugzilla bug 1924663 is in the state VERIFIED, which is one of the valid states (VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), CLOSED (CURRENTRELEASE))
  • dependent Bugzilla bug 1924663 targets the "4.8.0" release, which is one of the valid target releases: 4.8.0
  • bug has dependents

Requesting review from QA contact:
/cc @psimovec

In response to this:

[release 4.7] Bug 1953579: GatherClusterOperators and GatherClusterOperatorsPodAndEvents

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 Apr 26, 2021
@openshift-ci-robot
Copy link
Contributor

@rluders: This pull request references Bugzilla bug 1953579, which is valid.

6 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.7.z) matches configured target release for branch (4.7.z)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
  • dependent bug Bugzilla bug 1924663 is in the state VERIFIED, which is one of the valid states (VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), CLOSED (CURRENTRELEASE))
  • dependent Bugzilla bug 1924663 targets the "4.8.0" release, which is one of the valid target releases: 4.8.0
  • bug has dependents

Requesting review from QA contact:
/cc @psimovec

In response to this:

[release 4.7] Bug 1953579: GatherClusterOperators and GatherClusterOperatorsPodAndEvents

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.

@@ -436,6 +421,18 @@ Relevant Kubernetes API docs:
Location in archive: config/pod/{namespace}/{pod-name}.json


## SAPVsystemIptablesLogs
Copy link
Contributor Author

Choose a reason for hiding this comment

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

BTW, I notice that this documentation was missing, so... I generate it again, and... here we have it.

@rluders rluders marked this pull request as ready for review April 26, 2021 12:30
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 26, 2021
docs/gathered-data.md Outdated Show resolved Hide resolved
This fixes the operators_pods_and_events documentation.
@rluders rluders requested a review from tremes April 26, 2021 13:00
@tremes
Copy link
Contributor

tremes commented Apr 27, 2021

I tested this locally and was checking the gathered data. Code changes looks fine too. Thanks.
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 27, 2021
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rluders, tremes

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

@knobunc knobunc added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label May 6, 2021
@openshift-bot
Copy link
Contributor

/retest

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

3 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-merge-robot openshift-merge-robot merged commit b0817c9 into openshift:release-4.7 May 6, 2021
@openshift-ci
Copy link

openshift-ci bot commented May 6, 2021

@rluders: All pull requests linked via external trackers have merged:

Bugzilla bug 1953579 has been moved to the MODIFIED state.

In response to this:

[release 4.7] Bug 1953579: GatherClusterOperators and GatherClusterOperatorsPodAndEvents

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/severity-medium Referenced Bugzilla bug's severity is medium 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. 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants