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

debian-iptables: Build buster-v1.6.0 image #1983

Merged
merged 2 commits into from
Apr 9, 2021

Conversation

wespanther
Copy link
Contributor

@wespanther wespanther commented Apr 1, 2021

What type of PR is this?

/kind feature

What this PR does / why we need it:

A new debian-iptables image based on k8s.gcr.io/build-image/debian-base:buster-v1.6.0. This fixes a handful of CVEs, such as some in openssl.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

None

Does this PR introduce a user-facing change?

debian-iptables: Build buster-v1.6.0 image

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. needs-priority needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 1, 2021
@k8s-ci-robot
Copy link
Contributor

Hi @wespanther. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 1, 2021
@k8s-ci-robot k8s-ci-robot requested review from dims and hasheddan April 1, 2021 21:43
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 1, 2021
Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 6, 2021
@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 6, 2021
@wespanther wespanther force-pushed the bump-debian-iptables branch from 550c812 to f808bc4 Compare April 6, 2021 17:53
@k8s-ci-robot k8s-ci-robot added area/release-eng Issues or PRs related to the Release Engineering subproject sig/release Categorizes an issue or PR as relevant to SIG Release. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed 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. labels Apr 6, 2021
@wespanther
Copy link
Contributor Author

/retest

@wespanther
Copy link
Contributor Author

/test pull-release-image-debian-iptables

@wespanther
Copy link
Contributor Author

wespanther commented Apr 7, 2021

pull-release-image-debian-iptables is only failing on s390x:

docker buildx build \
	--pull \
	--load \
	--platform linux/s390x \
	-t gcr.io/k8s-staging-releng-test/debian-iptables-s390x:buster-v1.6.0 \
	-t gcr.io/k8s-staging-releng-test/debian-iptables-s390x:v20210406-v0.8.0-9-gf364dbfc-buster \
	-t gcr.io/k8s-staging-releng-test/debian-iptables-s390x:latest-buster \
	--build-arg=IPTABLES_VERSION=1.8.5 \
	--build-arg=BASEIMAGE=k8s.gcr.io/build-image/debian-base-s390x:buster-v1.5.0 \
	buster

fails with:

...
#6 28.63 dpkg: error processing archive /tmp/apt-dpkg-install-fIpBPP/9-ebtables_2.0.11-4~bpo10+1_s390x.deb (--unpack):
#6 28.63  rm command for cleanup subprocess returned error exit status 1
#6 28.65 Errors were encountered while processing:
#6 28.65  /tmp/apt-dpkg-install-fIpBPP/1-libip6tc2_1.8.5-3~bpo10+1_s390x.deb
#6 28.65  /tmp/apt-dpkg-install-fIpBPP/2-libxtables12_1.8.5-3~bpo10+1_s390x.deb
#6 28.65  /tmp/apt-dpkg-install-fIpBPP/3-netbase_6.1~bpo10+1_all.deb
#6 28.65  /tmp/apt-dpkg-install-fIpBPP/4-libmnl0_1.0.4-2_s390x.deb
#6 28.65  /tmp/apt-dpkg-install-fIpBPP/5-libnfnetlink0_1.0.1-3+b1_s390x.deb
#6 28.65  /tmp/apt-dpkg-install-fIpBPP/6-libnetfilter-conntrack3_1.0.7-1_s390x.deb
#6 28.65  /tmp/apt-dpkg-install-fIpBPP/7-libnftnl11_1.1.7-1~bpo10+1_s390x.deb
#6 28.65  /tmp/apt-dpkg-install-fIpBPP/8-iptables_1.8.5-3~bpo10+1_s390x.deb
#6 28.65  /tmp/apt-dpkg-install-fIpBPP/9-ebtables_2.0.11-4~bpo10+1_s390x.deb
#6 28.73 E: Sub-process /usr/bin/dpkg returned an error code (1)
#6 ERROR: executor failed running [/dev/.buildkit_qemu_emulator /bin/sh -c echo deb http://deb.debian.org/debian buster-backports main >> /etc/apt/sources.list     && apt-get update     && apt-get -t buster-backports -y --no-install-recommends install         iptables=${IPTABLES_VERSION}*         ebtables]: exit code: 100```

@wespanther
Copy link
Contributor Author

Looks like it's failing on the apt-get install portion of

RUN echo deb http://deb.debian.org/debian buster-backports main >> /etc/apt/sources.list \
    && apt-get update \
    && apt-get -t buster-backports -y --no-install-recommends install \
        iptables=${IPTABLES_VERSION}* \
        ebtables

It seems to be trying to use "/usr/sbin/rm"

#6 28.04 Preparing to unpack .../0-libip4tc2_1.8.5-3~bpo10+1_s390x.deb ...
#6 28.06 Unpacking libip4tc2:s390x (1.8.5-3~bpo10+1) ...
#6 28.40 Error while loading /usr/sbin/rm: No such file or directory
#6 28.40 dpkg: error while cleaning up:
#6 28.40  rm command for cleanup subprocess returned error exit status 1
#6 28.42 Error while loading /usr/sbin/rm: No such file or directory

@wespanther
Copy link
Contributor Author

I'm able to build it locally, which is kind of odd.

@wespanther
Copy link
Contributor Author

/retest

@vinayakankugoyal
Copy link
Contributor

vinayakankugoyal commented Apr 8, 2021

Add RUN ln -s /bin/rm /usr/sbin/rm before you install the packages we had to do this for the setcap image too. See https://github.com/kubernetes/release/blob/master/images/build/setcap/Dockerfile

@wespanther wespanther force-pushed the bump-debian-iptables branch from f808bc4 to 9acca0f Compare April 8, 2021 19:27
@wespanther
Copy link
Contributor Author

Going to try to symlink from /bin/rm, although I'm not sure why dpkg is trying to use /usr/sbin/rm.

Comment on lines 21 to 24
RUN ln -s /bin/rm /usr/sbin/rm
RUN echo deb http://deb.debian.org/debian buster-backports main >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get -t buster-backports -y --no-install-recommends install \
Copy link
Contributor

Choose a reason for hiding this comment

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

My recommendation would be to run these in the same command as each of these is a new layer.

Suggested change
RUN ln -s /bin/rm /usr/sbin/rm
RUN echo deb http://deb.debian.org/debian buster-backports main >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get -t buster-backports -y --no-install-recommends install \
RUN ln -s /bin/rm /usr/sbin/rm \
&& echo deb http://deb.debian.org/debian buster-backports main >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get -t buster-backports -y --no-install-recommends install \

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call, changed

@k8s-ci-robot
Copy link
Contributor

@vinayakankugoyal: changing LGTM is restricted to collaborators

In 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 kubernetes/test-infra repository.

@wespanther wespanther force-pushed the bump-debian-iptables branch from 9acca0f to cd13b16 Compare April 8, 2021 19:41
@justaugustus
Copy link
Member

/hold for #1991 and debian-base promotion

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 8, 2021
@justaugustus justaugustus force-pushed the bump-debian-iptables branch from cd13b16 to 5999363 Compare April 9, 2021 00:35
@justaugustus justaugustus changed the title images: Build debian-iptables:buster-v1.6.0 debian-iptables: Build buster-v1.6.0 image Apr 9, 2021
@justaugustus
Copy link
Member

Rebased on #1991 and split the ln change into a separate commit.
/hold cancel
/lgtm
/approve

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 9, 2021
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 9, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: justaugustus, saschagrunert, wespanther

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

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. area/release-eng Issues or PRs related to the Release Engineering subproject cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/release Categorizes an issue or PR as relevant to SIG Release. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants