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

Fix permissions of qemu-ARCH-static in debian-base and other images #67222

Merged

Conversation

ixdy
Copy link
Member

@ixdy ixdy commented Aug 9, 2018

What this PR does / why we need it: proper fix for the issue I found in #67215. Some machines (like apparently workstations at Google) have a restrictive umask, so the qemu-ARCH-static binaries were getting installed in images without world read/execute permissions, causing utilities like apt-get to fail.

There was also a duplicate download/install of these binaries for debian-iptables, which further confused the issue. I've since removed that duplicate installation.

Many thanks to @BenTheElder for asking the right question to get me to look at the permissions again.

I haven't pushed any images yet. After merge, I'll build/promote debian-base:0.3.2, then update everything to use it, then push some more images, write some more PRs, ...

Release note:

NONE

/assign @tallclair

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 9, 2018
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 9, 2018
@@ -14,10 +14,6 @@

FROM BASEIMAGE
Copy link
Member

Choose a reason for hiding this comment

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

can we still do a follow-up to use ARG instead of sed? :-)

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, but I don't have time to work on that right now.

Copy link
Member

Choose a reason for hiding this comment

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

Ok fair enough, I may do this then, taking a note 😄

@satyasm
Copy link
Contributor

satyasm commented Aug 9, 2018

I'm assuming once this is done, #67026 has to be redone with 0.3.2 base image?

@ixdy
Copy link
Member Author

ixdy commented Aug 9, 2018

I'm assuming once this is done, #67026 has to be redone with 0.3.2 base image?

yep.

@tallclair
Copy link
Member

/lgtm
Thanks

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 10, 2018
Copy link
Member

@BenTheElder BenTheElder left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BenTheElder, ixdy, tallclair

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

@BenTheElder
Copy link
Member

/retest

@neolit123
Copy link
Member

/sig architecture
? (curious to see who owns these, in fact)

@k8s-ci-robot k8s-ci-robot added the sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. label Aug 10, 2018
@k8s-github-robot
Copy link

Automatic merge from submit-queue (batch tested with PRs 67058, 67083, 67220, 67222, 67209). If you want to cherry-pick this change to another branch, please follow the instructions here.

@k8s-github-robot k8s-github-robot merged commit 35e3c78 into kubernetes:master Aug 10, 2018
k8s-github-robot pushed a commit that referenced this pull request Aug 11, 2018
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Update to use debian-base:0.3.2

**What this PR does / why we need it**: uses the fixed debian-base image from #67222.
Also includes a small fix for a bug in the debian-base Makefile that I introduced in that same PR.

This is basically a rehash of #67026.

**Release note**:

```release-note
NONE
```
k8s-github-robot pushed a commit that referenced this pull request Aug 17, 2018
…67222-#67283-#67365-upstream-release-1.10

Automatic merge from submit-queue.

release-1.10: update to debian-base 0.3.2, debian-iptables v10.1 and hyperkubebase 0.10.1

Cherry pick of #67026 #67222 #67283 #67365 on release-1.10.

#67026: Upgrade debian-base to 0.3.1 for CVEs
#67222: ensure qemu-ARCH-static binary is world readable and
#67283: Add missing tmpdir path to chmod
#67365: Update to debian-iptables v10.1 and hyperkube-base 0.10.1
k8s-ci-robot added a commit that referenced this pull request Sep 26, 2018
…67222-#67283-#67365-upstream-release-1.9

release-1.9: update to debian-base 0.3.2, debian-iptables v10.2 and hyperkube-base 0.10.2
k8s-ci-robot added a commit that referenced this pull request Oct 4, 2018
…67222-#67283-#67365-upstream-release-1.11

release-1.11: update to debian-base 0.3.2, debian-iptables v10.2 and hyperkube-base 0.10.2
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. release-note-none Denotes a PR that doesn't merit a release note. sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants