Skip to content

Don't error when resource is deleted in TestEtcdStoragePath - #14739

Closed
smarterclayton wants to merge 1 commit into
openshift:masterfrom
smarterclayton:deflake_etcd_storage
Closed

smarterclayton wants to merge 1 commit into
openshift:masterfrom
smarterclayton:deflake_etcd_storage

Conversation

@smarterclayton

Copy link
Copy Markdown
Contributor

[test] @enj this has flaked a lot recently

@smarterclayton smarterclayton added the kind/test-flake Categorizes issue or PR as related to test flakes. label Jun 19, 2017
@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to bfabf9f

@enj

enj commented Jun 19, 2017

Copy link
Copy Markdown
Contributor

This change is incorrect. At worst you should be able to retry the delete until it is successful, but I see no reason to ignore the not found error.

@smarterclayton

Copy link
Copy Markdown
Contributor Author

You're deleting something. If it's not found... it no longer exists. Your test doesn't take into account garbage collection ordering, namespace deletion, or a few other edge cases, so if you want to dig into that, see the linked jobs.

@smarterclayton

Copy link
Copy Markdown
Contributor Author

https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/2378/testReport/junit/github/com_openshift_origin_test_integration%20%20%20/TestEtcd2StoragePath/

I0618 21:02:17.743573   16359 handler.go:146] kube-apiserver: POST "/api/v1/securitycontextconstraints" satisfied by gorestful with webservice /api/v1
I0618 21:02:17.745205   16359 wrap.go:42] POST /api/v1/securitycontextconstraints: (1.837544ms) 201 [[Go-http-client/2.0] 127.0.0.1:52402]
I0618 21:02:17.752829   16359 handler.go:146] kube-apiserver: GET "/apis/extensions/v1beta1/thirdpartyresources" satisfied by gorestful with webservice /apis/extensions/v1beta1
I0618 21:02:17.753489   16359 wrap.go:42] GET /apis/extensions/v1beta1/thirdpartyresources: (839.205µs) 200 [[integration.test/v1.6.1+5115d708d7 (linux/amd64) kubernetes/3a5b733] 127.0.0.1:52402]
I0618 21:02:17.761377   16359 handler.go:146] kube-apiserver: GET "/api/v1/namespaces/kube-system" satisfied by gorestful with webservice /api/v1
I0618 21:02:17.761414   16359 wrap.go:42] GET /api/v1/namespaces/kube-system: (200.904µs) 404 [[integration.test/v1.6.1+5115d708d7 (linux/amd64) kubernetes/3a5b733] 127.0.0.1:52402]
I0618 21:02:17.762138   16359 handler.go:146] kube-apiserver: POST "/api/v1/namespaces" satisfied by gorestful with webservice /api/v1
I0618 21:02:17.762172   16359 wrap.go:42] POST /api/v1/namespaces: (236.951µs) 404 [[integration.test/v1.6.1+5115d708d7 (linux/amd64) kubernetes/3a5b733] 127.0.0.1:52402]
E0618 21:02:17.762399   16359 controller.go:149] unable to create required kubernetes system namespace kube-system: the server could not find the requested resource (post namespaces)
I0618 21:02:17.762739   16359 handler.go:146] kube-apiserver: GET "/api/v1/namespaces/kube-public" satisfied by gorestful with webservice /api/v1
I0618 21:02:17.762777   16359 wrap.go:42] GET /api/v1/namespaces/kube-public: (190.113µs) 404 [[integration.test/v1.6.1+5115d708d7 (linux/amd64) kubernetes/3a5b733] 127.0.0.1:52402]
I0618 21:02:17.763302   16359 handler.go:146] kube-apiserver: POST "/api/v1/namespaces" satisfied by gorestful with webservice /api/v1
I0618 21:02:17.763344   16359 wrap.go:42] POST /api/v1/namespaces: (184.229µs) 404 [[integration.test/v1.6.1+5115d708d7 (linux/amd64) kubernetes/3a5b733] 127.0.0.1:52402]
E0618 21:02:17.763517   16359 controller.go:149] unable to create required kubernetes system namespace kube-public: the server could not find the requested resource (post namespaces)
I0618 21:02:17.784181   16359 handler.go:146] kube-apiserver: GET "/api/v1/namespaces/default" satisfied by gorestful with webservice /api/v1
I0618 21:02:17.784217   16359 wrap.go:42] GET /api/v1/namespaces/default: (200.618µs) 404 [[integration.test/v1.6.1+5115d708d7 (linux/amd64) kubernetes/3a5b733] 127.0.0.1:52402]
I0618 21:02:17.784836   16359 handler.go:146] kube-apiserver: POST "/api/v1/namespaces" satisfied by gorestful with webservice /api/v1
I0618 21:02:17.784875   16359 wrap.go:42] POST /api/v1/namespaces: (198.902µs) 404 [[integration.test/v1.6.1+5115d708d7 (linux/amd64) kubernetes/3a5b733] 127.0.0.1:52402]
E0618 21:02:17.785139   16359 controller.go:162] unable to sync kubernetes service: the server could not find the requested resource (post namespaces)
I0618 21:02:18.076243   16359 request.go:638] Throttling request took 330.031972ms, request: DELETE:https://127.0.0.1:12000/api/v1/securitycontextconstraints/scc1
I0618 21:02:18.076861   16359 handler.go:146] kube-apiserver: DELETE "/api/v1/securitycontextconstraints/scc1" satisfied by gorestful with webservice /api/v1
I0618 21:02:18.076915   16359 wrap.go:42] DELETE /api/v1/securitycontextconstraints/scc1: (270.942µs) 404 [[Go-http-client/2.0] 127.0.0.1:52402]

@smarterclayton
smarterclayton requested a review from enj June 19, 2017 04:41
@smarterclayton

Copy link
Copy Markdown
Contributor Author

If you want to take over this please do. Also, double check that you aren't hitting timing errors on your test - i.e. if you've got edge cases with respect to admission controllers, my series of PRs to reduce the number of caches is absolutely going to cause you to hit more of them (we're running with fewer and fewer cache mutation detectors, which means everything speeds up proportionally more)

@enj

enj commented Jun 19, 2017

Copy link
Copy Markdown
Contributor

The two flakes I have seen so far were for the SCC and OAuth client objects. I did not think the GC interacted with those objects. Namespace deletion should not be a factor. This has not been an issue before, so what exactly has changed? I feel like ignoring those errors may mask other issues.

@smarterclayton

Copy link
Copy Markdown
Contributor Author
E0618 21:02:17.762399   16359 controller.go:149] unable to create required kubernetes system namespace kube-system: the server could not find the requested resource (post namespaces)

That's incredibly suspicious.

@smarterclayton

Copy link
Copy Markdown
Contributor Author

You're running in etcd2 mode - you should double check all the sanity assumptions for etcd in the test:

  1. you have quorum on
  2. you have etcd on fast storage
  3. you are waiting for etcd to converge on membership before starting (the loop in etcdserver/run.go)

It kind of looks like something deleted a huge chunk of resources out of etcd here though.

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/2383/) (Base Commit: 5dce9b9) (PR Branch Commit: bfabf9f)

@enj

enj commented Jun 29, 2017

Copy link
Copy Markdown
Contributor

Superseded by #14969

@enj enj closed this Jun 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tests kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants