-
Notifications
You must be signed in to change notification settings - Fork 39
OCPERT-239: Add migrated image consistency check #820
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
base: master
Are you sure you want to change the base?
Conversation
|
Skipping CI for Draft Pull Request. |
|
@tomasdavidorg: This pull request references OCPERT-239 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
36a17d1 to
5b3cc61
Compare
|
@tomasdavidorg: This pull request references OCPERT-239 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
@tomasdavidorg: No Jira issue is referenced in the title of this pull request. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
| # FIXME: If multiple images are found, should we fail the check? | ||
| logger.error(f"Multiple images found in Red Hat catalog. Please check manually.") | ||
| return False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to figure out how to recognize if the image is the correct one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is error case. even multiple items found, it means the image is already shipped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So should I just pass if resp_data["total"] >= 1. I didn't find any example where there are more found items. I don't know how to recognize if one of the items is the correct one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, we can add some trace logs from resp payload, like
curl -s "https://catalog.redhat.com/api/containers/v1/images?filter=image_id==sha256:45041834fa4fee1fed5415cee69f9723d50890a9685605f9b750635d8b1b01dd" | jq '.data[].repositories[]|.registry+"/"+.repository'
"registry.access.redhat.com/openshift4/ose-vsphere-problem-detector-rhel9"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logging added.
|
@tomasdavidorg: This pull request references OCPERT-239 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
| for shipment_pullspec in self.shipment_image_pullspecs: | ||
| if self.all_image_metadata[payload_pullspec].has_same_name(self.all_image_metadata[shipment_pullspec]): | ||
| has_same_name = True | ||
| logger.info(f"Found an image with the same name but different identifier. Please check manually.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a valid case? even name is same, but digest is not, they're not same image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. See the line 136-138.
The method _find_images_with_same_name is just for investigation purposes. If there is image with same name but different identificators, it will debug log detais.
It is taken from the previous implementation. https://gitlab.cee.redhat.com/aosqe/openshift-misc/-/blob/master/jenkins/v4-image-test/errata_test/errata_test.py?ref_type=heads#L97-L127
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debugging purpose is ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking as resolved.
|
/retest |
|
@tomasdavidorg: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
https://github.com/openshift-eng/art-tools changed structure of project. Looking. |
https://issues.redhat.com/browse/OCPERT-239