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

Check the HTTP response code when downloading URLs #7611

Merged
merged 1 commit into from
Sep 18, 2019

Conversation

rifelpet
Copy link
Member

@rifelpet rifelpet commented Sep 17, 2019

I noticed that the recent container-selinux issue on centos was reporting a hash mismatch rather than a 404.

See the error message here: #7608 and the "actual" sha1 reported in the current error message is that of the 404 page:

curl http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.68-1.el7.noarch.rpm
curl http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.68-1.el7.noarch.rpm | shasum -a 1

This should now report a more descriptive error message if this happens again.

I noticed that the recent container-selinux issue on centos was reporting a hash mismatch rather than a 404.

See the error message here: kubernetes#7608 and the "actual" sha1 response is that of the 404 page:

```
curl http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.68-1.el7.noarch.rpm
curl http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.68-1.el7.noarch.rpm | shasum -a 1
```
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 17, 2019
Copy link
Contributor

@mikesplain mikesplain left a comment

Choose a reason for hiding this comment

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

Great idea. Thanks for the quick fix @rifelpet!

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 18, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mikesplain, rifelpet

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 18, 2019
@rifelpet
Copy link
Member Author

/test pull-kops-e2e-kubernetes-aws

@mikesplain
Copy link
Contributor

/retest

@k8s-ci-robot k8s-ci-robot merged commit d69c6ed into kubernetes:master Sep 18, 2019
k8s-ci-robot added a commit that referenced this pull request Sep 18, 2019
…11-origin-release-1.13

Automated cherry pick of #7611: Check the HTTP response code when downloading URLs
k8s-ci-robot added a commit that referenced this pull request Sep 18, 2019
…11-origin-release-1.15

Automated cherry pick of #7611: Check the HTTP response code when downloading URLs
k8s-ci-robot added a commit that referenced this pull request Sep 18, 2019
…11-origin-release-1.14

Automated cherry pick of #7611: Check the HTTP response code when downloading URLs
@rifelpet rifelpet deleted the check-http-response-code branch August 6, 2020 02:49
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants