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

docker build using a pull secret Building from a template should create a docker build that pulls using a secret run it #12007

Closed
stevekuznetsov opened this issue Nov 23, 2016 · 15 comments
Assignees
Labels
component/build component/imageregistry kind/test-flake Categorizes issue or PR as related to test flakes. priority/P2

Comments

@stevekuznetsov
Copy link
Contributor

Extended.[builds][pullsecret][Conformance] docker build using a pull secret Building from a template should create a docker build that pulls using a secret run it

Seen here in this job

/data/src/github.com/openshift/origin/test/extended/builds/docker_pullsecret.go:48
Expected
    <bool>: false
to be true
/data/src/github.com/openshift/origin/test/extended/builds/docker_pullsecret.go:41
@bparees
Copy link
Contributor

bparees commented Nov 23, 2016

looks like a registry issue:

2016-11-22T22:59:12.736978000Z Successfully built 84ff1257879c
2016-11-22T22:59:12.760573000Z Pushing image 172.30.153.38:5000/extended-test-docker-build-pullsecret-jt7vn-saoxh/image1:latest ...
2016-11-22T22:59:17.392481000Z Registry server Address: 
2016-11-22T22:59:17.392786000Z Registry server User Name: serviceaccount
2016-11-22T22:59:17.393058000Z Registry server Email: serviceaccount@example.org
2016-11-22T22:59:17.393318000Z Registry server Password: <<non-empty>>
2016-11-22T22:59:17.393586000Z error: build error: Failed to push image: Error: Status 404 trying to push repository extended-test-docker-build-pullsecret-jt7vn-saoxh/image1: "404 page not found\n"

note that we dump some registry pod info here and the filesystem looks pretty full, but i don't see that causing a 404:

Nov 22 17:59:24.393: INFO: Running 'oc exec --config=/tmp/extended-test-docker-build-pullsecret-jt7vn-saoxh-user.kubeconfig --namespace=extended-test-docker-build-pullsecret-jt7vn-saoxh -n default docker-registry-1-z017o df --config /tmp/openshift/test-extended/core/openshift.local.config/master/admin.kubeconfig'


 df from registry pod: 
Filesystem                                                                                         1K-blocks     Used Available Use% Mounted on
/dev/mapper/docker-202:2-33888628-33b56421827c5be7467b9b65760e25093e3533d79cf8230ab8d0242a5ecd7803  10474496   411548  10062948   4% /
tmpfs                                                                                                8002656        0   8002656   0% /dev
tmpfs                                                                                                8002656        0   8002656   0% /sys/fs/cgroup
/dev/mapper/docker--vg-openshift--xfs--vol--dir                                                      5212160    33076   5179084   1% /registry
/dev/xvda2                                                                                          26202092 16463532   9738560  63% /run/secrets
shm                                                                                                    65536        0     65536   0% /dev/shm
tmpfs                                                                                                8002656       16   8002640   1% /run/secrets/kubernetes.io/serviceaccount

@bparees bparees assigned mfojtik and unassigned bparees Nov 23, 2016
@mfojtik mfojtik assigned miminar and unassigned mfojtik Nov 25, 2016
@miminar
Copy link

miminar commented Nov 25, 2016

Running the extended test alone in a loop, I cannot reproduce it locally. Trying whole conformance suite now.

@miminar
Copy link

miminar commented Nov 25, 2016

The conformance suite takes like forever on my end. I didn't manage to reproduce in a first run taking 1 and half hour. The second is running twice that time without hitting the test in question.

I'll rather focus on collecting more info in jenkins.

@miminar
Copy link

miminar commented Nov 28, 2016

Since I failed to reproduce locally, I fixed an extended cleanup to let us collect openshift and registry log in the jenkins. Please review #12037

The referenced job terminated with:

[INFO] Stacked plot for log subset "memory" written to /tmp/openshift/test-extended/core/logs/memory.pdf
/data/src/github.com/openshift/origin/test/extended/setup.sh: line 45: cleanup_openshift: command not found

@miminar
Copy link

miminar commented Nov 28, 2016

Is this really a P1? So far no luck hitting this in my previous 2 attempts in jenkins.

@stevekuznetsov
Copy link
Contributor Author

@bparees @danmcp do we have some tangible guidelines for prioritizing this?

@danmcp
Copy link

danmcp commented Nov 28, 2016

@stevekuznetsov If it's not happening frequently (> 2%) then it can move to a P2.

@miminar
Copy link

miminar commented Dec 6, 2016

I failed to reproduce in jenkins in 10 out of 10 runs. I'm postponing investigation until someone hits this.

This was referenced Mar 14, 2017
@eparis
Copy link
Member

eparis commented Mar 15, 2017

Seems like I've hit this twice today...
https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/216/ is one of them...

@miminar
Copy link

miminar commented Mar 27, 2017

I wish there were registry logs available for gce runs.

@smarterclayton
Copy link
Contributor

Pull requests welcome! :)

@miminar
Copy link

miminar commented Mar 28, 2017

Here you go: #13557 merged. Next time somebody hits this, we'll have more information.

@csrwng
Copy link
Contributor

csrwng commented Apr 7, 2017

@bparees
Copy link
Contributor

bparees commented Oct 25, 2017

most recent flake didn't include the logs, so i can't determine if it was really a recurrence of this issue or not. Otherwise i've not seen/heard evidence that this is still an issue. Closing and someone can open a new flake w/ logs if it's still happening.

@bparees bparees closed this as completed Oct 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/build component/imageregistry kind/test-flake Categorizes issue or PR as related to test flakes. priority/P2
Projects
None yet
Development

No branches or pull requests

8 participants