[Container-tools] Build failed in Jenkins: atomicapp-test-kubernetes-pr #31
ci at centos.org
ci at centos.org
Tue Mar 22 13:38:41 UTC 2016
See <https://ci.centos.org/job/atomicapp-test-kubernetes-pr/31/>
------------------------------------------
[...truncated 4946 lines...]
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
./providers/kubernetes.sh answers
##########
GENERATING KUBERNETES ANSWERS FILE
##########
./helloapache.sh run kubernetes
##########
run: TESTING HELLOAPACHE EXAMPLE
##########
Sending build context to Docker daemon 12.8 kB
Sending build context to Docker daemon 12.8 kB
Step 0 : FROM atomicapp:build
---> 96e4e526616b
Step 1 : MAINTAINER Red Hat, Inc. <container-tools at redhat.com>
---> Running in 42e1b990adca
---> 2cc1e5d4dfdf
Removing intermediate container 42e1b990adca
Step 2 : LABEL io.projectatomic.nulecule.providers "kubernetes,docker" io.projectatomic.nulecule.specversion "0.0.2"
---> Running in f76350b4c91d
---> 538ea7a7e25d
Removing intermediate container f76350b4c91d
Step 3 : ADD /Nulecule /Dockerfile README.md /application-entity/
---> 9688373c9c81
Removing intermediate container 5a640db05f77
Step 4 : ADD /artifacts /application-entity/artifacts
---> 08aa20becaa0
Removing intermediate container dce06656a812
Successfully built 08aa20becaa0
docker run -it --rm --privileged -v /tmp/test/cdrage-atomicapp-ci:/atomicapp -v /run:/run -v /:/host --net=host --name helloapache -e NAME=helloapache -e IMAGE=projectatomic/helloapache projectatomic/helloapache run --provider=kubernetes -a answers.conf -v --destination=build --logtype=nocolor
docker run -it --rm --privileged -v /tmp/test/cdrage-atomicapp-ci:/atomicapp -v /run:/run -v /:/host --net=host --name helloapache -e NAME=helloapache -e IMAGE=projectatomic/helloapache projectatomic/helloapache run --provider=kubernetes -a answers.conf -v --destination=build --logtype=nocolor
1458653914 - [INFO] - cli/main.py - Action/Mode Selected is: run
1458653914 - [DEBUG] - cli/main.py - Final parsed cmdline: run --provider=kubernetes -a answers.conf -v --destination=build --logtype=nocolor
1458653914 - [DEBUG] - cli/main.py - Setting app_spec based on $IMAGE env var
1458653914 - [DEBUG] - nulecule/main.py - NuleculeManager init app_path: build
1458653914 - [DEBUG] - nulecule/main.py - NuleculeManager init image: projectatomic/helloapache
1458653914 - [DEBUG] - atomicapp/utils.py - Loading answers from file: answers.conf
1458653914 - [DEBUG] - nulecule/main.py - Request to unpack to projectatomic/helloapache to build
1458653914 - [INFO] - nulecule/base.py - Unpacking image: projectatomic/helloapache to build
1458653914 - [INFO] - nulecule/container.py - Skipping pulling Docker image: projectatomic/helloapache
1458653914 - [INFO] - nulecule/container.py - Extracting nulecule data from image: projectatomic/helloapache to build
1458653914 - [DEBUG] - nulecule/container.py - Creating docker container: /usr/bin/docker create --entrypoint /bin/true projectatomic/helloapache
1458653914 - [DEBUG] - nulecule/container.py - Copying data from Docker container: /usr/bin/docker cp 442d854589c6ee981f8f7756cd9bd645f101fecaee9d97b7b7709a1b8f0c80c7:/application-entity /tmp/nulecule-5fb838e0-f033-11e5-9969-002299c58722
1458653914 - [DEBUG] - nulecule/container.py - Copying nulecule data from /tmp/nulecule-5fb838e0-f033-11e5-9969-002299c58722 to build
1458653914 - [DEBUG] - nulecule/container.py - Removing tmp dir: /tmp/nulecule-5fb838e0-f033-11e5-9969-002299c58722
1458653914 - [DEBUG] - atomicapp/utils.py - Recursively removing directory: /tmp/nulecule-5fb838e0-f033-11e5-9969-002299c58722
1458653914 - [DEBUG] - nulecule/container.py - Removing Docker container: /usr/bin/docker rm -f 442d854589c6ee981f8f7756cd9bd645f101fecaee9d97b7b7709a1b8f0c80c7
442d854589c6ee981f8f7756cd9bd645f101fecaee9d97b7b7709a1b8f0c80c7
1458653917 - [DEBUG] - atomicapp/plugin.py - Loading providers from /opt/atomicapp/atomicapp/providers
1458653917 - [DEBUG] - atomicapp/plugin.py - Loading providers from /opt/atomicapp/atomicapp/providers
1458653917 - [DEBUG] - atomicapp/plugin.py - Found provider <class 'kubernetes.KubernetesProvider'>
1458653917 - [WARNING] - atomicapp/plugin.py - Configuration option 'providerconfig' not found
1458653917 - [DEBUG] - atomicapp/plugin.py - Found provider <class 'kubernetes.KubernetesProvider'>
1458653917 - [WARNING] - atomicapp/plugin.py - Configuration option 'providerconfig' not found
1458653917 - [DEBUG] - providers/kubernetes.py - Given config: {u'image': u'centos/httpd', u'hostport': 80, u'namespace': u'default', u'provider': u'kubernetes'}
1458653917 - [INFO] - providers/kubernetes.py - Using namespace default
1458653917 - [INFO] - providers/kubernetes.py - trying kubectl at /host/usr/bin/kubectl
1458653917 - [INFO] - providers/kubernetes.py - found kubectl at /host/usr/bin/kubectl
1458653917 - [INFO] - providers/kubernetes.py - Deploying to Kubernetes
1458653917 - [DEBUG] - providers/kubernetes.py - build/artifacts/kubernetes/.hello-apache-pod.json
1458653918 - [DEBUG] - atomicapp/utils.py -
<<< stdout >>>
<<< end >>>
1458653918 - [DEBUG] - atomicapp/utils.py -
<<< stderr >>>
Error from server: error when creating "build/artifacts/kubernetes/.hello-apache-pod.json": pods "helloapache" is forbidden: service account default/default was not found, retry after the service account is created
<<< end >>>
1458653918 - [ERROR] - cli/main.py - cmd: ['/host/usr/bin/kubectl', 'create', '-f', u'build/artifacts/kubernetes/.hello-apache-pod.json', u'--namespace=default'] failed:
Error from server: error when creating "build/artifacts/kubernetes/.hello-apache-pod.json": pods "helloapache" is forbidden: service account default/default was not found, retry after the service account is created
Traceback (most recent call last):
File "/opt/atomicapp/atomicapp/cli/main.py", line 118, in cli_func_exec
cli_func(cli_func_args)
File "/opt/atomicapp/atomicapp/cli/main.py", line 86, in cli_run
nm.run(**argdict)
File "/opt/atomicapp/atomicapp/nulecule/main.py", line 233, in run
self.nulecule.run(cli_provider, dryrun)
File "/opt/atomicapp/atomicapp/nulecule/base.py", line 191, in run
component.run(provider_key, dryrun)
File "/opt/atomicapp/atomicapp/nulecule/base.py", line 326, in run
provider.run()
File "/opt/atomicapp/atomicapp/providers/kubernetes.py", line 189, in run
self._call(cmd)
File "/opt/atomicapp/atomicapp/providers/kubernetes.py", line 114, in _call
ec, stdout, stderr = Utils.run_cmd(cmd, checkexitcode=True)
File "/opt/atomicapp/atomicapp/utils.py", line 266, in run_cmd
"cmd: %s failed: \n%s" % (str(cmd), stderr))
AtomicAppUtilsException: cmd: ['/host/usr/bin/kubectl', 'create', '-f', u'build/artifacts/kubernetes/.hello-apache-pod.json', u'--namespace=default'] failed:
Error from server: error when creating "build/artifacts/kubernetes/.hello-apache-pod.json": pods "helloapache" is forbidden: service account default/default was not found, retry after the service account is created
make: *** [kubernetes] Error 1
Connection to n22.dusty.ci.centos.org closed.
Running cmd: ssh -t -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root at n22.dusty.ci.centos.org "yum install -y git && mkdir /tmp/test && cd /tmp/test && git clone https://github.com/projectatomic/adb-tests.git . && /bin/bash -c 'cd cdrage-atomicapp-ci/ && make install kubernetes ATOMICAPP_PR=643 ATOMIC_SOURCE=rpm'"
Done
Build step 'Execute Python script' marked build as failure
More information about the Container-tools
mailing list