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

Build container version error #78897

Open
timyinshi opened this issue Jun 11, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@timyinshi
Copy link

commented Jun 11, 2019

/kind bug
/sig release

What happened:
I want to build a docker version of kubernetes, just do make quick-release?
When I do make quick-release, something goes wrong, can someone help me see what's going on?
make quick-release
+++ [0611 17:02:27] Verifying Prerequisites....
+++ [0611 17:02:27] Building Docker image kube-build:build-e597cac0f2-5-v1.12.1-2
+++ [0611 17:04:32] Creating data container kube-build-data-e597cac0f2-5-v1.12.1-2
+++ [0611 17:05:58] Syncing sources to container
!!! [0611 17:06:01] Could not get effective rsync port
!!! [0611 17:06:01] Call tree:
!!! [0611 17:06:01] 1: build/../build/common.sh:436 kube::build::sync_to_container(...)
!!! [0611 17:06:01] 2: build/release.sh:35 kube::build::build_image(...)
make: *** [Makefile:430: quick-release] Error 1

What you expected to happen:
i want to build container version k8s

Environment:

  • OS (e.g: cat /etc/os-release):ubuntu 16.04.5
  • Kernel (e.g. uname -a): 4.4.0-131
  • Install tools:go 1.12.5
@timyinshi

This comment has been minimized.

Copy link
Author

commented Jun 11, 2019

I found that the method kube::build::run_build_command_ex was not executed. Does anyone know why it could not be executed?
build/common.sh line 628
kube::build::run_build_command_ex
"${KUBE_RSYNC_CONTAINER_NAME}" -p 127.0.0.1:"${KUBE_RSYNC_PORT}":"${KUBE_CONTAINER_RSYNC_PORT}" -d
-e ALLOW_HOST="$(${IPTOOL} | grep -Eo 'inet (addr:)?([0-9].){3}[0-9]' | grep -Eo '([0-9].){3}[0-9]' | grep -v '127.0.0.1')"
-- /rsyncd.sh >/dev/null

@timyinshi

This comment has been minimized.

Copy link
Author

commented Jun 12, 2019

Hello, I'm building kubernetes using the make quick-release command to report an error, what's the reason?

+++ [0612 15:08:56] docker command:docker
run
--name=kube-rsync-e597cac0f2-5-v1.12.1-2
--user=0:0
--hostname=inserver-inspurclouddev-392-10
--volumes-from
kube-build-data-e597cac0f2-5-v1.12.1-2
-p 8730:8730
-d
-e ALLOW_HOST=10.221.128.98
172.17.0.1
--env
KUBE_FASTBUILD=true
--env
KUBE_BUILDER_OS=linux-gnu
--env
KUBE_VERBOSE=8
--env
KUBE_BUILD_WITH_COVERAGE=
--env
GOFLAGS=
--env
GOLDFLAGS=
--env
GOGCFLAGS=
--env
SOURCE_DATE_EPOCH=
--interactive
--tty
kube-build:build-e597cac0f2-5-v1.12.1-2
/rsyncd.sh
docker: Invalid hostPort: 8730.
See 'docker run --help'.

Does anyone know why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.