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 error with docker 1.12 (rawhide): openshift/openvswitch uses HostConfig, which was removed in docker 1.12 #10750

Closed
jawnsy opened this issue Aug 31, 2016 · 5 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/P3

Comments

@jawnsy
Copy link

jawnsy commented Aug 31, 2016

Marked as low-priority because we don't support docker 1.12 for origin yet, but creating this issue because we'll need to resolve this eventually.

Package versions
docker.x86_64                            2:1.12.1-6.gitf1040da.fc26
docker-selinux.x86_64                    2:1.12.1-6.gitf1040da.fc26
Docker
$ docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 4
Server Version: 1.12.1
Storage Driver: overlay2
 Backing Filesystem: extfs
Logging Driver: journald
Cgroup Driver: systemd
Plugins:
 Volume: local
 Network: overlay null bridge host
Swarm: inactive
Runtimes: oci runc
Default Runtime: oci
Security Options: seccomp selinux
Kernel Version: 4.8.0-0.rc4.git1.1.fc26.x86_64
Operating System: Fedora 26 (Rawhide)
OSType: linux
Architecture: x86_64
Number of Docker Hooks: 2
CPUs: 1
Total Memory: 7.777 GiB
Name: limelight
ID: FJCX:NNCM:NYFN:E552:IDKE:6TJU:65J2:DLVN:SYB3:JYMZ:DEAU:ARWA
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
 127.0.0.0/8
Registries: docker.io (secure)
Build output
14:15 jawnsy@limelight:~/projects/origin $ make release
rm -rf _output
OS_ONLY_BUILD_PLATFORMS="linux/amd64" hack/build-release.sh
++ Building release v1.3.0-alpha.3+d0df369
rm -rf _output
hack/build-cross.sh
++ Building go targets for linux/amd64: cmd/openshift cmd/oc
++ Building go targets for linux/amd64: images/pod cmd/dockerregistry cmd/gitserver examples/hello-openshift examples/deployment
++ Placing binaries
++ Creating openshift-origin-client-tools-v1.3.0-alpha.3+d0df369-d0df369-linux-64bit.tar.gz
2f56776bba2d816ec7b31a7f5f12fa6902ae653f441b413be676a1b2b37e1137  ./kube-proxy
3a33a832ae40fca85a52e2d42a095cc373eff2f299760822b5955b4900e553ee  ./oc
2f56776bba2d816ec7b31a7f5f12fa6902ae653f441b413be676a1b2b37e1137  ./kube-scheduler
2f56776bba2d816ec7b31a7f5f12fa6902ae653f441b413be676a1b2b37e1137  ./oadm
3a33a832ae40fca85a52e2d42a095cc373eff2f299760822b5955b4900e553ee  ./kubectl
2f56776bba2d816ec7b31a7f5f12fa6902ae653f441b413be676a1b2b37e1137  ./kubelet
2f56776bba2d816ec7b31a7f5f12fa6902ae653f441b413be676a1b2b37e1137  ./kube-controller-manager
f6d5b461deb8038ce0e083c9cb7f59859caa04c9b4f72149367393e9b252cf14  ./LICENSE
2f56776bba2d816ec7b31a7f5f12fa6902ae653f441b413be676a1b2b37e1137  ./openshift
2f56776bba2d816ec7b31a7f5f12fa6902ae653f441b413be676a1b2b37e1137  ./kube-apiserver
abbb6ae590e75b19affa8391c4c4b7d4d118f6a39688860a41784a5d7e545db0  ./README.md
++ Creating openshift-origin-server-v1.3.0-alpha.3+d0df369-d0df369-linux-64bit.tar.gz
2f56776bba2d816ec7b31a7f5f12fa6902ae653f441b413be676a1b2b37e1137  ./kube-proxy
3a33a832ae40fca85a52e2d42a095cc373eff2f299760822b5955b4900e553ee  ./oc
2f56776bba2d816ec7b31a7f5f12fa6902ae653f441b413be676a1b2b37e1137  ./kube-scheduler
2f56776bba2d816ec7b31a7f5f12fa6902ae653f441b413be676a1b2b37e1137  ./oadm
3a33a832ae40fca85a52e2d42a095cc373eff2f299760822b5955b4900e553ee  ./kubectl
2f56776bba2d816ec7b31a7f5f12fa6902ae653f441b413be676a1b2b37e1137  ./kubelet
2f56776bba2d816ec7b31a7f5f12fa6902ae653f441b413be676a1b2b37e1137  ./kube-controller-manager
f6d5b461deb8038ce0e083c9cb7f59859caa04c9b4f72149367393e9b252cf14  ./LICENSE
2f56776bba2d816ec7b31a7f5f12fa6902ae653f441b413be676a1b2b37e1137  ./openshift
2f56776bba2d816ec7b31a7f5f12fa6902ae653f441b413be676a1b2b37e1137  ./kube-apiserver
abbb6ae590e75b19affa8391c4c4b7d4d118f6a39688860a41784a5d7e545db0  ./README.md
++ Placing binaries
++ Creating openshift-origin-image-v1.3.0-alpha.3+d0df369-d0df369-linux-64bit.tar.gz
7663321a4f43daa167cecf4468055f47aff212d1adc097f0ae5dc3cdbee1985c  ./hello-openshift
5d5ee571526fb616129fd02d424f01014aaca2302b900c3771553a02a3a31c6d  ./gitserver
cc1e68d57717f89beeafd48dcdbeff46ea34893285eb0d6a6518dccf6ee5be6a  ./pod
2b38213572916339df7fc56f98e049dc0b0f4ef9569676830cfcf36b2def793c  ./deployment
67186d395721cd44be416e2a9fdd51fad35c6aee8db43aa205a2d70131f3e453  ./dockerregistry
hack/build-release.sh took 832 seconds
hack/build-images.sh
Building images from release tars for commit d0df369:
 primary: openshift-origin-server-v1.3.0-alpha.3+d0df369-d0df369-linux-64bit.tar.gz
 image:   openshift-origin-image-v1.3.0-alpha.3+d0df369-d0df369-linux-64bit.tar.gz
++ Extracting openshift-origin-server-v1.3.0-alpha.3+d0df369-d0df369-linux-64bit.tar.gz
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
++ Extracting openshift-origin-image-v1.3.0-alpha.3+d0df369-d0df369-linux-64bit.tar.gz
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
++ Building go targets for linux/amd64: cmd/oc
++ Placing binaries
/home/jawnsy/projects/origin/hack/build-go.sh took 184 seconds
--- openshift/origin-pod ---
--> FROM scratchydf7z887pizdtc9ddpq3cngm
--> COPY bin/pod /pod
--> USER 1001
--> LABEL io.k8s.display-name="OpenShift Origin Pod Infrastructure"       io.k8s.description="This is a component of OpenShift Origin and holds on to the shared Linux namespaces within a Pod."
--> ENTRYPOINT ["/pod"]
--> Committing changes to openshift/origin-pod:latest ...
--> Done
Removing images/pod/bin/pod
--- openshift/origin-pod took 1 seconds ---


--- openshift/openvswitch ---
--> Image openshift/origin-base was not found, pulling ...
--> FROM openshift/origin-base
error: unable to start build container: API error (400): {"message":"starting container with HostConfig was deprecated since v1.10 and removed in v1.12"}
[ERROR] PID 8556: hack/build-images.sh:54: `'/home/jawnsy/projects/origin/_output/local/bin/linux/amd64/oc' ex dockerbuild images/openvswitch openshift/openvswitch:latest` exited with status 1.
[INFO]      Stack Trace: 
[INFO]        1: hack/build-images.sh:54: `'/home/jawnsy/projects/origin/_output/local/bin/linux/amd64/oc' ex dockerbuild images/openvswitch openshift/openvswitch:latest`
[INFO]        2: hack/build-images.sh:88: build
[INFO]        3: hack/build-images.sh:99: image
[INFO]   Exiting with code 1.
Makefile:184: recipe for target 'release' failed
make: *** [release] Error 1
@jawnsy jawnsy added kind/bug Categorizes issue or PR as related to a bug. priority/P3 labels Aug 31, 2016
@jawnsy jawnsy self-assigned this Aug 31, 2016
@jawnsy
Copy link
Author

jawnsy commented Sep 1, 2016

Looks like this is related to an existing bug: openshift/imagebuilder#6 but I will keep this around as we will need to update imagebuilder in origin as well.

@mkumatag
Copy link
Member

mkumatag commented Sep 6, 2016

I'm also facing issue while building base images

[root@rhel72 origin]# ./hack/build-base-images.sh 
++ Building go targets for linux/ppc64le: cmd/oc
++ Placing binaries
/root/os_build/src/github.com/openshift/origin/hack/build-go.sh took 108 seconds
--> FROM centos:centos7
error: unable to start build container: API error (400): {"message":"starting container with HostConfig was deprecated since v1.10 and removed in v1.12"}

@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 7, 2018
@openshift-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci-robot openshift-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Mar 9, 2018
@openshift-bot
Copy link
Contributor

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/P3
Projects
None yet
Development

No branches or pull requests

4 participants