Skip to content

Conversation

@tchap
Copy link

@tchap tchap commented Aug 29, 2025

Some errors that can happen when writing resources back during migration are not particularly significant, yet they can cause a lot of log spam.

This change marks some errors coming from the try function to be logged on V(2) so that there are not that many log messages. These include:

  • conflict
  • not found
  • UID precondition failed (effectively a conflict)

See the linked issue for the context. The original issue is about logging too many messages regarding OAuth tokens being deleted before written back. So I extended the fix a little bit, but I am open to any pointers in a good direction.

@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Aug 29, 2025
@openshift-ci-robot
Copy link

@tchap: This pull request references Jira Issue OCPBUGS-59211, which is invalid:

  • expected the bug to target the "4.20.0" version, but no target version was set

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

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

In response to this:

Some errors that can happen when writing resources back during migration are not particularly significant, yet they can cause a lot or log spam.

This change marks some errors coming from the try function to be logged on V(2) so that there are not that many log messages. These include:

  • conflict
  • not found
  • UID precondition failed (effectively a conflict)

See the linked issue for the context. The original issue is about logging too many messages regarding OAuth tokens being deleted before written back. So I extended the fix a little bit, but I am open to any pointers in a good direction.

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested review from benluddy and deads2k August 29, 2025 13:53
@openshift-ci
Copy link

openshift-ci bot commented Aug 29, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: tchap
Once this PR has been reviewed and has the lgtm label, please assign deads2k for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@tchap
Copy link
Author

tchap commented Aug 31, 2025

/retest

@tchap tchap force-pushed the remove-uid-log-spam branch from 7502784 to c7fb955 Compare August 31, 2025 13:00
@tchap
Copy link
Author

tchap commented Sep 1, 2025

/retest-required

@tchap tchap force-pushed the remove-uid-log-spam branch from c7fb955 to 4dc956c Compare September 2, 2025 16:37
Some errors that can happen when writing resources back during migration
are not particularly significant, yet they can cause a lot or log spam.

This change marks some errors coming from the try function to be logged
on V(2) so that there are not that many log messages. These include:

* conflict
* not found
* UID precondition failed (effectively a conflict)
@tchap tchap force-pushed the remove-uid-log-spam branch from 4dc956c to b725809 Compare September 2, 2025 16:38
@benluddy
Copy link

benluddy commented Sep 2, 2025

Has this been proposed upstream yet? Based on your description, it sounds like the logs may be legitimately misleveled. It'd be a shame to carry a patch forever if it could be done upstream first.

@tchap
Copy link
Author

tchap commented Sep 2, 2025

Has this been proposed upstream yet? Based on your description, it sounds like the logs may be legitimately misleveled. It'd be a shame to carry a patch forever if it could be done upstream first.

No really, happy to send an upstream PR. For some reason I deduced the upstream repo seems rather unmaintained.

@sanchezl
Copy link

sanchezl commented Sep 2, 2025

Has this been proposed upstream yet?

K8s has moved this project in-tree. I would expect this means upstream is to be archived?

@benluddy
Copy link

benluddy commented Sep 2, 2025

AFAIU the in-tree SVM is still in alpha, and it operates on different GVRs than out-of-tree SVM, so it will be more of a replacement than a hoist of the existing SVM into k/k. I think we should continue to contribute to maintenance of the upstream project at least until the in-tree SVM graduates to enabled-by-default and we've adopted it.

@openshift-ci
Copy link

openshift-ci bot commented Sep 2, 2025

@tchap: 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/okd-scos-e2e-aws-ovn b725809 link false /test okd-scos-e2e-aws-ovn

Full PR test history. Your PR dashboard.

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

@tchap
Copy link
Author

tchap commented Sep 3, 2025

Created kubernetes-sigs#129

@flavianmissi
Copy link
Member

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Sep 9, 2025
@openshift-ci-robot
Copy link

@flavianmissi: This pull request references Jira Issue OCPBUGS-59211, 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.21.0) matches configured target version for branch (4.21.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @gangwgr

In response to this:

/jira 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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested a review from gangwgr September 9, 2025 11:02
@tchap
Copy link
Author

tchap commented Oct 18, 2025

Honestly this is pretty problematic to get reviewed upstream. OWNERS are either on long-term vacation or not reading messages on Slack...

@flavianmissi
Copy link
Member

Honestly this is pretty problematic to get reviewed upstream. OWNERS are either on long-term vacation or not reading messages on Slack...

is there an upstream sig we can bring this up with @tchap? it's in everyone's interest that upstream projects are actively maintained.

@tchap
Copy link
Author

tchap commented Oct 21, 2025

is there an upstream sig we can bring this up with @tchap? it's in everyone's interest that upstream projects are actively maintained.

I can try to find out, but in any case you need an OWNER to merge the PR, and none of them is available 😐

@benluddy
Copy link

SIG API Machinery owns this upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants