See <https://ci.centos.org/job/atomicapp-test-kubernetes-master/7/>

------------------------------------------
[...truncated 4970 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
 ---> 1b946ab6c011
Step 1 : MAINTAINER Red Hat, Inc. <[email protected]>
 ---> Running in 3906bc6b7bb0
 ---> 840e9e7a54d0
Removing intermediate container 3906bc6b7bb0
Step 2 : LABEL io.projectatomic.nulecule.providers "kubernetes,docker" 
io.projectatomic.nulecule.specversion "0.0.2"
 ---> Running in 00ab76f72aac
 ---> 6def2fdcbae7
Removing intermediate container 00ab76f72aac
Step 3 : ADD /Nulecule /Dockerfile README.md /application-entity/
 ---> 14edb73a6de3
Removing intermediate container cef60121860f
Step 4 : ADD /artifacts /application-entity/artifacts
 ---> 869afd78479b
Removing intermediate container a486a5d400ad
Successfully built 869afd78479b
docker run -it --rm  --privileged -v 
/tmp/test/cdrage-atomicapp-ci/functional-tests:/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/functional-tests:/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
1459292775 - [INFO] - cli/main.py - Action/Mode Selected is: run

1459292775 - [DEBUG] - cli/main.py - Final parsed cmdline: run 
--provider=kubernetes -a answers.conf -v --destination=build --logtype=nocolor

1459292775 - [DEBUG] - cli/main.py - Setting app_spec based on $IMAGE env var

1459292775 - [DEBUG] - nulecule/main.py - NuleculeManager init app_path: build

1459292775 - [DEBUG] - nulecule/main.py - NuleculeManager init image: 
projectatomic/helloapache

1459292775 - [DEBUG] - atomicapp/utils.py - Loading answers from file: 
answers.conf

1459292775 - [DEBUG] - nulecule/main.py - Request to unpack to 
projectatomic/helloapache to build

1459292775 - [INFO] - nulecule/base.py - Unpacking image: 
projectatomic/helloapache to build

1459292775 - [INFO] - nulecule/container.py - Skipping pulling Docker image: 
projectatomic/helloapache

1459292775 - [INFO] - nulecule/container.py - Extracting nulecule data from 
image: projectatomic/helloapache to build

1459292775 - [DEBUG] - nulecule/container.py - Creating docker container: 
/usr/bin/docker create --entrypoint /bin/true projectatomic/helloapache

1459292775 - [DEBUG] - nulecule/container.py - Copying data from Docker 
container: /usr/bin/docker cp 
88e0a9937bbc965dd5c722b6a50a765481355b9522c3f72f84a839cd9a3a2874:/application-entity
 /tmp/nulecule-d6cc3b1e-f602-11e5-8170-002299c58262

1459292775 - [DEBUG] - nulecule/container.py - Copying nulecule data from 
/tmp/nulecule-d6cc3b1e-f602-11e5-8170-002299c58262 to build

1459292775 - [DEBUG] - nulecule/container.py - Removing tmp dir: 
/tmp/nulecule-d6cc3b1e-f602-11e5-8170-002299c58262

1459292775 - [DEBUG] - atomicapp/utils.py - Recursively removing directory: 
/tmp/nulecule-d6cc3b1e-f602-11e5-8170-002299c58262

1459292775 - [DEBUG] - nulecule/container.py - Removing Docker container: 
/usr/bin/docker rm -f 
88e0a9937bbc965dd5c722b6a50a765481355b9522c3f72f84a839cd9a3a2874

88e0a9937bbc965dd5c722b6a50a765481355b9522c3f72f84a839cd9a3a2874

1459292778 - [DEBUG] - atomicapp/plugin.py - Loading providers from 
/opt/atomicapp/atomicapp/providers

1459292778 - [DEBUG] - atomicapp/plugin.py - Loading providers from 
/opt/atomicapp/atomicapp/providers

1459292778 - [DEBUG] - atomicapp/plugin.py - Found provider <class 
'kubernetes.KubernetesProvider'>

1459292778 - [WARNING] - atomicapp/plugin.py - Configuration option 
'providerconfig' not found

1459292778 - [DEBUG] - atomicapp/plugin.py - Found provider <class 
'kubernetes.KubernetesProvider'>

1459292778 - [WARNING] - atomicapp/plugin.py - Configuration option 
'providerconfig' not found

1459292778 - [DEBUG] - providers/kubernetes.py - Given config: {u'image': 
u'centos/httpd', u'hostport': 80, u'namespace': u'default', u'provider': 
u'kubernetes'}

1459292778 - [INFO] - providers/kubernetes.py - Using namespace default

1459292778 - [INFO] - providers/kubernetes.py - trying kubectl at 
/host/usr/bin/kubectl

1459292778 - [INFO] - providers/kubernetes.py - found kubectl at 
/host/usr/bin/kubectl

1459292778 - [INFO] - providers/kubernetes.py - Deploying to Kubernetes

1459292778 - [DEBUG] - providers/kubernetes.py - 
build/artifacts/kubernetes/.hello-apache-pod.json

1459292779 - [DEBUG] - atomicapp/utils.py - 

<<< stdout >>>

<<< end >>>



1459292779 - [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 >>>



1459292779 - [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 n56.dusty.ci.centos.org closed.
Running cmd: ssh -t -t -o UserKnownHostsFile=/dev/null -o 
StrictHostKeyChecking=no [email protected]  "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/functional-tests/ && make install kubernetes 
ATOMIC_SOURCE=rpm'"
Done
Build step 'Execute Python script' marked build as failure

_______________________________________________
Container-tools mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/container-tools

Reply via email to