Skip to content

Dockerized build not working in the project's CI for Kubernetes < 1.35 #135575

@BenTheElder

Description

@BenTheElder

What happened?

Building Kubernetes failed:

make: Entering directory '/home/prow/go/src/k8s.io/kubernetes'
+++ [1203 13:06:01] Verifying Prerequisites....
+++ [1203 13:06:01] Building Docker image kube-build:build-9d7042936f-5-v1.33.0-go1.24.10-bullseye.0
WARNING: This output is designed for human readability. For machine-readable output, please use --format.
+++ [1203 13:07:03] Creating data container kube-build-data-9d7042936f-5-v1.33.0-go1.24.10-bullseye.0
+++ [1203 13:07:07] Syncing sources to container
template parsing error: template: :1:19: executing "" at <.NetworkSettings.IPAddress>: map has no entry for key "IPAddress"
!!! [1203 13:07:07] Call tree:
!!! [1203 13:07:07]  1: build/../build/common.sh:669 kube::build::start_rsyncd_container(...)
!!! [1203 13:07:07]  2: build/../build/common.sh:401 kube::build::sync_to_container(...)
!!! [1203 13:07:07]  3: build/release-images.sh:39 kube::build::build_image(...)
make: *** [Makefile:458: quick-release-images] Error 1
make: Leaving directory '/home/prow/go/src/k8s.io/kubernetes'
Failed to build Kubernetes: failed to build images: command "make -C /home/prow/go/src/k8s.io/kubernetes quick-release-images 'KUBE_EXTRA_WHAT=cmd/kubeadm cmd/kubectl cmd/kubelet' KUBE_VERBOSE=0 KUBE_BUILD_HYPERKUBE=n KUBE_BUILD_CONFORMANCE=n KUBE_BUILD_PLATFORMS=linux/amd64" failed with error: exit status 2
ERROR: error building node image: failed to build kubernetes: failed to build images: command "make -C /home/prow/go/src/k8s.io/kubernetes quick-release-images 'KUBE_EXTRA_WHAT=cmd/kubeadm cmd/kubectl cmd/kubelet' KUBE_VERBOSE=0 KUBE_BUILD_HYPERKUBE=n KUBE_BUILD_CONFORMANCE=n KUBE_BUILD_PLATFORMS=linux/amd64" failed with error: exit status 2

What did you expect to happen?

Building should work.

How can we reproduce it (as minimally and precisely as possible)?

I think it's tied to the docker version, it started failing recently across many jobs:
https://testgrid.k8s.io/sig-release-1.33-blocking#kind-1.33-parallel
https://testgrid.k8s.io/sig-release-1.34-blocking#kind-1.34
https://testgrid.k8s.io/sig-release-1.34-blocking#kind-ipv6-1.34
https://testgrid.k8s.io/sig-release-1.32-blocking#kind-1.32-parallel
https://testgrid.k8s.io/sig-release-1.32-blocking#kind-ipv6-1.32-parallel
...

But there aren't obviously related commits in kubernetes/kubernetes or kubernetes-sigs/kind.

It does not fail on 1.35 or master, which is probably due to #112862

Anything else we need to know?

No response

Kubernetes version

All active release branches prior to 1.35

Details
$ kubectl version
# paste output here

Cloud provider

all

Details

OS version

Details
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

Details

Container runtime (CRI) and version (if applicable)

Details

Related plugins (CNI, CSI, ...) and versions (if applicable)

Details

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.sig/releaseCategorizes an issue or PR as relevant to SIG Release.sig/testingCategorizes an issue or PR as relevant to SIG Testing.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions