Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@QiWang19
Copy link
Member

What type of PR is this?

/kind bug

What this PR does / why we need it:

Apply a previous fix #4726 to ListImage with filter.
If the file not found error was caused by image not done pulling when ListImages() with filter, skip the image and the error.

Previous bug https://bugzilla.redhat.com/show_bug.cgi?id=1942608 appeared in https://issues.redhat.com/browse/OCPBUGS-11291.
The log hyperkube ListImages with filters. "ListImages with filter from image service failed" err="rpc error: code = Unknown desc = error locating item named \"manifest\" for image with ID \"9e11cc7364c9791ebf68949c852bf121cb4ae5829c925a1da6546be6f63b3536\": file does not exist" filter="nil"

Which issue(s) this PR fixes:

https://issues.redhat.com/browse/OCPBUGS-11291

Special notes for your reviewer:

Does this PR introduce a user-facing change?

None

@QiWang19 QiWang19 requested a review from mrunalp as a code owner July 31, 2023 18:01
@openshift-ci openshift-ci bot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Jul 31, 2023
@openshift-ci openshift-ci bot requested review from klihub and wgahnagl July 31, 2023 18:01
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 31, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

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

@QiWang19 QiWang19 changed the title skip when ListImage with filter image hasn't done pulling OCPBUGS-11291: skip when ListImage with filter image hasn't done pulling Jul 31, 2023
@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. 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 Jul 31, 2023
@openshift-ci-robot
Copy link

@QiWang19: This pull request references Jira Issue OCPBUGS-11291, which is invalid:

  • expected the bug to target the "4.14.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.

Details

In response to this:

What type of PR is this?

/kind bug

What this PR does / why we need it:

Apply a previous fix #4726 to ListImage with filter.
If the file not found error was caused by image not done pulling when ListImages() with filter, skip the image and the error.

Previous bug https://bugzilla.redhat.com/show_bug.cgi?id=1942608 appeared in https://issues.redhat.com/browse/OCPBUGS-11291.
The log hyperkube ListImages with filters. "ListImages with filter from image service failed" err="rpc error: code = Unknown desc = error locating item named \"manifest\" for image with ID \"9e11cc7364c9791ebf68949c852bf121cb4ae5829c925a1da6546be6f63b3536\": file does not exist" filter="nil"

Which issue(s) this PR fixes:

https://issues.redhat.com/browse/OCPBUGS-11291

Special notes for your reviewer:

Does this PR introduce a user-facing change?

None

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.

donePulling := true
for _, name := range image.Names {
if _, ok := ImageBeingPulled.Load(name); ok {
donePulling = false
Copy link
Member

Choose a reason for hiding this comment

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

we can just return false here, and return true below, no need for donePulling if we separate the functions

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks. fixed

@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Merging #7184 (05419b8) into main (9251866) will decrease coverage by 0.02%.
Report is 2 commits behind head on main.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7184      +/-   ##
==========================================
- Coverage   49.22%   49.21%   -0.02%     
==========================================
  Files         136      136              
  Lines       15485    15488       +3     
==========================================
- Hits         7623     7622       -1     
- Misses       6960     6963       +3     
- Partials      902      903       +1     

Apply fix cri-o#4726 when ListImage with `filter`.

Previous bug https://bugzilla.redhat.com/show_bug.cgi?id=1942608  appeared in the log hyperkube ListImages with filters.
`"ListImages with filter from image service failed" err="rpc error: code = Unknown desc = error locating item named \"manifest\" for image with ID \"9e11cc7364c9791ebf68949c852bf121cb4ae5829c925a1da6546be6f63b3536\": file does not exist" filter="nil"`

Signed-off-by: Qi Wang <[email protected]>
@QiWang19 QiWang19 force-pushed the manifest-notfound branch from ba69277 to 05419b8 Compare July 31, 2023 21:12
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 31, 2023

@QiWang19: The following tests 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/ci-cgroupv2-integration 05419b8 link true /test ci-cgroupv2-integration
ci/prow/e2e-gcp-ovn 05419b8 link true /test e2e-gcp-ovn
ci/prow/ci-crun-e2e 05419b8 link true /test ci-crun-e2e

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-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 1, 2023
@QiWang19 QiWang19 removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 1, 2023
@QiWang19
Copy link
Member Author

QiWang19 commented Aug 1, 2023

I don't think this PR makes sense for the bug.

@QiWang19 QiWang19 closed this Aug 1, 2023
@openshift-ci-robot
Copy link

@QiWang19: This pull request references Jira Issue OCPBUGS-11291. The bug has been updated to no longer refer to the pull request using the external bug tracker. All external bug links have been closed. The bug has been moved to the NEW state.

Details

In response to this:

What type of PR is this?

/kind bug

What this PR does / why we need it:

Apply a previous fix #4726 to ListImage with filter.
If the file not found error was caused by image not done pulling when ListImages() with filter, skip the image and the error.

Previous bug https://bugzilla.redhat.com/show_bug.cgi?id=1942608 appeared in https://issues.redhat.com/browse/OCPBUGS-11291.
The log hyperkube ListImages with filters. "ListImages with filter from image service failed" err="rpc error: code = Unknown desc = error locating item named \"manifest\" for image with ID \"9e11cc7364c9791ebf68949c852bf121cb4ae5829c925a1da6546be6f63b3536\": file does not exist" filter="nil"

Which issue(s) this PR fixes:

https://issues.redhat.com/browse/OCPBUGS-11291

Special notes for your reviewer:

Does this PR introduce a user-facing change?

None

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

dco-signoff: yes Indicates the PR's author has DCO signed all their commits. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. kind/bug Categorizes issue or PR as related to a bug. release-note-none Denotes a PR that doesn't merit a release note.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants