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
{{ message }}
Repository navigation
Integration tests are failing intermittently on build failure #865
I looked into this. Each of the buildclient_test.go tests spin up the build controllers. For example, TestCreateBuild is just asserting that creating a new Build persists correctly. But the controllers react to the new Build by creating a Pod, then updating the Build to sync its status with the Pod, etc. The test only cares whether the Build was persisted, and exits, causing deferred shutdown of the the apiserver and controllers, which races with the aforementioned in-flight updates.
The errors are spurious and don't expose any race in the core logic. However, the build controllers should be less noisy when errors occur during retry loops (as in this case). This issue could be used to track the work to clean up the error handling in the build controller (and others).
I suggest we remove this issue from the beta1 milestone.
E0205 20:58:47.009788 7389 reflector.go:118] watch of *api.DeploymentConfig ended with error: very short watch
E0205 20:58:47.009984 7389 reflector.go:113] Failed to watch *api.ImageRepository: Get http://127.0.0.1:38258/osapi/v1beta1/watch/imageRepositories?resourceVersion=142: dial tcp 127.0.0.1:38258: connection refused
E0205 20:58:47.010051 7389 reflector.go:113] Failed to watch *api.ImageRepository: Get http://127.0.0.1:38258/osapi/v1beta1/watch/imageRepositories?resourceVersion=142: dial tcp 127.0.0.1:38258: connection refused
E0205 20:58:47.010150 7389 reflector.go:113] Failed to watch *api.BuildConfig: Get http://127.0.0.1:38258/osapi/v1beta1/watch/buildConfigs?resourceVersion=144: dial tcp 127.0.0.1:38258: connection refused
W0205 20:58:47.011449 7389 master.go:176] Portal net unspecified. Defaulting to 10.0.0.0/24.
I0205 20:58:47.011607 7389 master.go:212] '127.0.0.1' (127.0.0.1/8) is a loopback address, ignoring.
I0205 20:58:47.011629 7389 master.go:217] Will report 10.165.101.3 as public IP address.
I0205 20:58:47.011642 7389 master.go:273] Setting master service IPs based on PortalNet subnet to "10.0.0.1" (read-only) and "10.0.0.2" (read-write).
W0205 20:58:47.022771 7389 master.go:176] Portal net unspecified. Defaulting to 10.0.0.0/24.
I0205 20:58:47.022940 7389 master.go:212] '127.0.0.1' (127.0.0.1/8) is a loopback address, ignoring.
I0205 20:58:47.022967 7389 master.go:217] Will report 10.165.101.3 as public IP address.
I0205 20:58:47.022984 7389 master.go:273] Setting master service IPs based on PortalNet subnet to "10.0.0.1" (read-only) and "10.0.0.2" (read-write).
W0205 20:58:47.040253 7389 master.go:176] Portal net unspecified. Defaulting to 10.0.0.0/24.
I0205 20:58:47.040381 7389 master.go:212] '127.0.0.1' (127.0.0.1/8) is a loopback address, ignoring.
I0205 20:58:47.040402 7389 master.go:217] Will report 10.165.101.3 as public IP address.
I0205 20:58:47.040421 7389 master.go:273] Setting master service IPs based on PortalNet subnet to "10.0.0.1" (read-only) and "10.0.0.2" (read-write).
W0205 20:58:47.100055 7389 master.go:176] Portal net unspecified. Defaulting to 10.0.0.0/24.
I0205 20:58:47.100217 7389 master.go:212] '127.0.0.1' (127.0.0.1/8) is a loopback address, ignoring.
I0205 20:58:47.100239 7389 master.go:217] Will report 10.165.101.3 as public IP address.
I0205 20:58:47.100257 7389 master.go:273] Setting master service IPs based on PortalNet subnet to "10.0.0.1" (read-only) and "10.0.0.2" (read-write).
W0205 20:58:47.136845 7389 master.go:176] Portal net unspecified. Defaulting to 10.0.0.0/24.
I0205 20:58:47.137000 7389 master.go:212] '127.0.0.1' (127.0.0.1/8) is a loopback address, ignoring.
I0205 20:58:47.137022 7389 master.go:217] Will report 10.165.101.3 as public IP address.
I0205 20:58:47.137034 7389 master.go:273] Setting master service IPs based on PortalNet subnet to "10.0.0.1" (read-only) and "10.0.0.2" (read-write).
I0205 20:58:47.165936 7389 controller.go:51] Handling build c7231e3e-ad79-11e4-ac7a-22000b22051b
I0205 20:58:47.170836 7389 iowatcher.go:91] Unexpected EOF during watch stream event decoding: unexpected EOF
I0205 20:58:47.170859 7389 iowatcher.go:91] Unexpected EOF during watch stream event decoding: unexpected EOF
I0205 20:58:47.170874 7389 iowatcher.go:91] Unexpected EOF during watch stream event decoding: unexpected EOF
I0205 20:58:47.170935 7389 reflector.go:177] Watch close - *api.Build total 1 items received
I0205 20:58:47.171013 7389 reflector.go:177] Watch close - *api.Build total 1 items received
I0205 20:58:47.171084 7389 controller.go:62] Build failed with error integration-test/c7231e3e-ad79-11e4-ac7a-22000b22051b: &errors.errorString{s:"failed to create pod for build integration-test/c7231e3e-ad79-11e4-ac7a-22000b22051b: s%!(EXTRA *url.Error=Post http://127.0.0.1:50616/api/v1beta1/pods?namespace=integration-test: EOF)"}
I0205 20:58:47.171417 7389 controller.go:68] Failed to record changes to build integration-test/c7231e3e-ad79-11e4-ac7a-22000b22051b: &url.Error{Op:"Put", URL:"http://127.0.0.1:50616/osapi/v1beta1/builds/c7231e3e-ad79-11e4-ac7a-22000b22051b?namespace=integration-test", Err:(*net.OpError)(0xc2092a7280)}
E0205 20:58:47.171539 7389 reflector.go:113] Failed to watch *api.Build: Get http://127.0.0.1:50616/osapi/v1beta1/watch/builds?resourceVersion=194: dial tcp 127.0.0.1:50616: connection refused
panic: test timed out after 45s
The issue I fixed manifested a little differently but maybe it was the same issue. Far as i know it's not happening anymore either way. @smarterclayton ?
The issue I fixed manifested a little differently but maybe it was the same
issue. Far as i know it's not happening anymore either way. @smarterclayton ?
Reply to this email directly or view it on GitHub: #865 (comment)
Activity
ironcladlou commentedon Feb 4, 2015
I looked into this. Each of the
buildclient_test.gotests spin up the build controllers. For example,TestCreateBuildis just asserting that creating a new Build persists correctly. But the controllers react to the new Build by creating a Pod, then updating the Build to sync its status with the Pod, etc. The test only cares whether the Build was persisted, and exits, causing deferred shutdown of the the apiserver and controllers, which races with the aforementioned in-flight updates.The errors are spurious and don't expose any race in the core logic. However, the build controllers should be less noisy when errors occur during retry loops (as in this case). This issue could be used to track the work to clean up the error handling in the build controller (and others).
I suggest we remove this issue from the beta1 milestone.
smarterclayton commentedon Feb 5, 2015
smarterclayton commentedon Feb 5, 2015
This is definitely a race in builds resulting in failure. The test needs to be more robust. Dropping from 0.3.0.
smarterclayton commentedon Feb 10, 2015
This is still happening and needs to be fixed - @mfojtik can someone from dev experience try to track this down?
smarterclayton commentedon Feb 12, 2015
@mfojtik @bparees @soltysh can someone from dev experience take this and get it fixed ASAP? Half of travis builds fail due to this.
mfojtik commentedon Feb 12, 2015
@smarterclayton @soltysh is going to have look on this, I will try to debug this as well today.
soltysh commentedon Feb 20, 2015
@smarterclayton can we close this for now or is it still happening?
smarterclayton commentedon Feb 20, 2015
It's still happening.
----- Original Message -----
soltysh commentedon Feb 23, 2015
Linking #1092 as this relates.
ironcladlou commentedon Mar 20, 2015
This should be fixed now, right?
soltysh commentedon Mar 20, 2015
Yeah it is, thanks to @bparees with #1248
bparees commentedon Mar 20, 2015
The issue I fixed manifested a little differently but maybe it was the same issue. Far as i know it's not happening anymore either way. @smarterclayton ?
smarterclayton commentedon Mar 20, 2015
Haven't seen it.
----- Original Message -----