You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running TestAuthorizationSubjectAccessReview...
failed TestAuthorizationSubjectAccessReview
...
F1124 08:45:26.030730 12507 run_components.go:393] Unable to initialize namespaces: unable to refresh the security allocation UID blocks: User "system:openshift-master" cannot list all namespaces in the cluster
F1203 13:59:18.599912 26267 controller.go:87] Unable to perform initial service nodePort check: unable to persist the updated port allocations: servicenodeportallocation "" cannot be updated: another caller has already initialized the resource
--- FAIL: TestAuthorizationSubjectAccessReview-4 (13.34s)
authorization_test.go:493: unexpected error: policybinding ":default" cannot be updated: the object has been modified; please apply your changes to the latest version and try again
FAIL
changed the title [-]Flake in TestAuthorizationSubjectAccessReview on Jenkins[/-][+]TestAuthorizationRestrictedAccessForProjectAdmins / TestAuthorizationSubjectAccessReview flake[/+]on Dec 22, 2015
The issue is not specific to one test, it's a response to an etcd server 500 error that is seen about 30-60 seconds into the integration tests. If a client request is in progress when that server error is received, the client gets a 500 error, and reacts by retrying the request. If the request is one that would fail on a retry (like a delete or a conditional update), the test fails.
Running a loop with curl doing PUTs against etcd alongside the integration tests:
while true; do curl -v -s -X PUT "http://127.0.0.1:44001/v2/keys/_curltest" >> curletcd.log 2>&1; done
it looks like the etcd server is stuttering, maybe during a garbage collect? It averages 200 PUTs/second, then hits a 6 second gap, a 500 error, a few more 3-4 second gaps, then is back to 200+ PUTs/second
grep -E " 500 |Date:" curletcd.log | awk -f dedup.awk
< Date: Tue, 22 Dec 2015 22:20:37 GMT
... repeated 237 times
< Date: Tue, 22 Dec 2015 22:20:38 GMT
... repeated 191 times
< Date: Tue, 22 Dec 2015 22:20:39 GMT
... repeated 182 times
< Date: Tue, 22 Dec 2015 22:20:40 GMT
... repeated 175 times
< Date: Tue, 22 Dec 2015 22:20:41 GMT
... repeated 301 times
< Date: Tue, 22 Dec 2015 22:20:42 GMT
... repeated 219 times
< HTTP/1.1 500 Internal Server Error
< Content-Type: application/json
< X-Etcd-Cluster-Id: a176fdba55eb9204
< X-Etcd-Index: 0
< Date: Tue, 22 Dec 2015 22:20:48 GMT
< Content-Length: 100
<
{ [data not shown]
* Connection #0 to host 127.0.0.1 left intact
{"errorCode":300,"message":"Raft Internal Error","cause":"etcdserver: request timed out","index":0}
< Date: Tue, 22 Dec 2015 22:20:48 GMT
< Date: Tue, 22 Dec 2015 22:20:53 GMT
< Date: Tue, 22 Dec 2015 22:20:56 GMT
... repeated 149 times
< Date: Tue, 22 Dec 2015 22:20:57 GMT
... repeated 337 times
< Date: Tue, 22 Dec 2015 22:20:58 GMT
... repeated 334 times
< Date: Tue, 22 Dec 2015 22:20:59 GMT
... repeated 336 times
< Date: Tue, 22 Dec 2015 22:21:00 GMT
... repeated 329 times
@liggitt any chance of an executive summary for all those numbers? Particularly the ones without timestamps. Does the IO storm relate to anything else time-wise? Did we see failures in the test?
I think the numbers speak (poorly) for themselves. This was mostly a breadcrumb for myself to remember the incantations I used for gathering syscall/io logs
I haven't seen a failure yet when stracing. Will try to correlate the three logs better when I have a second.
When we were debugging this flake and also the imagestream timeout flake it would have been really nice to see time stamps on when commands were executed. Do we want to include that information in os::cmd?
When we were debugging this flake and also the imagestream timeout flake it would have been really nice to see time stamps on when commands were executed. Do we want to include that information in os::cmd?
I don't feel strongly, we should probably focus in other areas first. As a for instance, gathering resource utilization is probably more valuable to start.
Activity
rhcarvalho commentedon Nov 26, 2015
One more instance: https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/7486/console
0xmichalis commentedon Dec 2, 2015
Different flake, same test
https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/7612/consoleFull
ncdc commentedon Dec 4, 2015
Here's another flake for this test, from https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/4236/consoleFull:
eparis commentedon Dec 4, 2015
And another from #6000:
https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/4224/console
bparees commentedon Dec 11, 2015
and another one:
from https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/4304/console
miminar commentedon Dec 14, 2015
Yet another one:
builds 7748, 7590, 7577
liggitt commentedon Dec 18, 2015
It certainly seems like more than our one test server is talking to the shared etcd at once. Things like this:
And this:
rhcarvalho commentedon Dec 18, 2015
One more time: https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/7960/
liggitt commentedon Dec 19, 2015
https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/4431/console
#6418
liggitt commentedon Dec 21, 2015
With added logging, I can see the client getting a 500 error from etcd, then retrying:
https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/8036/consoleFull:
https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/8036/artifact/origin/artifacts/e2e/logs/integration-etcd-1450714866-TestAuthorizationSubjectAccessReview.log
listed processes before and after the integration test are clean, no unexpected openshift processes are running
liggitt commentedon Dec 21, 2015
seems to correlate to this bit in the etcd server log:
0xmichalis commentedon Dec 22, 2015
the hottest flake in town
stevekuznetsov commentedon Dec 22, 2015
The
e2e user can't listis coming up as quick, though. We should hold flake races...[-]Flake in TestAuthorizationSubjectAccessReview on Jenkins[/-][+]TestAuthorizationRestrictedAccessForProjectAdmins / TestAuthorizationSubjectAccessReview flake[/+]liggitt commentedon Dec 22, 2015
The issue is not specific to one test, it's a response to an etcd server 500 error that is seen about 30-60 seconds into the integration tests. If a client request is in progress when that server error is received, the client gets a 500 error, and reacts by retrying the request. If the request is one that would fail on a retry (like a delete or a conditional update), the test fails.
liggitt commentedon Dec 22, 2015
Running a loop with curl doing PUTs against etcd alongside the integration tests:
it looks like the etcd server is stuttering, maybe during a garbage collect? It averages 200 PUTs/second, then hits a 6 second gap, a 500 error, a few more 3-4 second gaps, then is back to 200+ PUTs/second
https://gist.githubusercontent.com/liggitt/c5cf1b466e0f40a5c598/raw/29b167de95e39e20948364cfcbaf730e48bb9a95/dedup.awk
smarterclayton commentedon Dec 23, 2015
Hrm - maybe try against my 2.2.2 branch?
liggitt commentedon Jan 8, 2016
trace logging:
Ran etcd with strace:
monitored iops during test-integration.sh run:
deads2k commentedon Jan 11, 2016
@liggitt any chance of an executive summary for all those numbers? Particularly the ones without timestamps. Does the IO storm relate to anything else time-wise? Did we see failures in the test?
liggitt commentedon Jan 11, 2016
I think the numbers speak (poorly) for themselves. This was mostly a breadcrumb for myself to remember the incantations I used for gathering syscall/io logs
I haven't seen a failure yet when stracing. Will try to correlate the three logs better when I have a second.
stevekuznetsov commentedon Jan 11, 2016
When we were debugging this flake and also the imagestream timeout flake it would have been really nice to see time stamps on when commands were executed. Do we want to include that information in
os::cmd?deads2k commentedon Jan 11, 2016
I don't feel strongly, we should probably focus in other areas first. As a for instance, gathering resource utilization is probably more valuable to start.
deads2k commentedon Jan 11, 2016
@stevekuznetsov and while I'm wishing, graphing it so I can just click the image in the jenkins artifacts would be nice too.
deads2k commentedon Jan 12, 2016
dupe of #6447
Retry failed master startup once