Skip to content

OCPBUGS-2837: Reduce debug logs in agent wait-for commands#6520

Merged
openshift-merge-robot merged 3 commits intoopenshift:masterfrom
zaneb:reduce-debug-logs
Oct 27, 2022
Merged

OCPBUGS-2837: Reduce debug logs in agent wait-for commands#6520
openshift-merge-robot merged 3 commits intoopenshift:masterfrom
zaneb:reduce-debug-logs

Conversation

@zaneb
Copy link
Member

@zaneb zaneb commented Oct 25, 2022

No description provided.

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Oct 25, 2022
@openshift-ci-robot
Copy link
Contributor

@zaneb: This pull request references Jira Issue OCPBUGS-2837, which is valid. The bug has been moved to the POST state.

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

Requesting review from QA contact:
/cc @zniu1011

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In 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 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 Oct 25, 2022
@bfournie
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 25, 2022
@lranjbar
Copy link
Contributor

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 25, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lranjbar

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 Oct 25, 2022
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if err != nil && !k8serrors.IsNotFound(err) {
if !k8serrors.IsNotFound(err) {

nit: IsNotFound should return false if error is nil

Copy link
Member Author

Choose a reason for hiding this comment

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

It should, but we want this block to not execute if the error is nil.

@zaneb zaneb force-pushed the reduce-debug-logs branch from 2ed7d99 to 7c64cea Compare October 27, 2022 03:36
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 27, 2022
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 27, 2022
zaneb added 3 commits October 27, 2022 11:08
The IPI wait-for install-complete command uses a watch on the
clusterversion object to log the status when it changes. While the agent
wait-for install-complete command uses similar logging code, it gets the
status by polling rather than using a watch. This results in many more
identical debug messages. To emulate the behaviour of IPI, only print a
debug message when the clusterversion object has changed.
If we get an empty string, don't try to parse it as JSON. Avoids this
message:

level=info msg=cluster host validations failed: unable to verify validations: unexpected end of JSON input
Consistently use the following terms:

- Agent Rest API
- Bootstrap Kube API

We don't use the term "Node Zero" in any user-facing places, and the
kube API that we're waiting for is generally the bootkube API on the
bootstrap, not the actual cluster API.
@zaneb zaneb force-pushed the reduce-debug-logs branch from 7c64cea to f9f31d3 Compare October 27, 2022 15:11
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 27, 2022
@bfournie
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 27, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 27, 2022

@zaneb: The following test 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/e2e-agent-mce f9f31d3 link false /test e2e-agent-mce

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.

@openshift-merge-robot openshift-merge-robot merged commit 28e3c1c into openshift:master Oct 27, 2022
@openshift-ci-robot
Copy link
Contributor

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

Jira Issue OCPBUGS-2837 has been moved to the MODIFIED state.

Details

In 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 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. jira/valid-bug Indicates that a referenced Jira 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.

6 participants