Skip to content

Integration tests are failing intermittently on build failure #865

Closed

Description

@smarterclayton

Failed to create build pod

I0204 03:23:28.233483    2268 controller.go:51] Handling build 2fb30e29-ac1d-11e4-9fa2-22000b38815a
I0204 03:23:28.239076    2268 iowatcher.go:91] Unexpected EOF during watch stream event decoding: unexpected EOF
I0204 03:23:28.239104    2268 iowatcher.go:91] Unexpected EOF during watch stream event decoding: unexpected EOF
I0204 03:23:28.239126    2268 iowatcher.go:91] Unexpected EOF during watch stream event decoding: unexpected EOF
I0204 03:23:28.239204    2268 reflector.go:177] Watch close - *api.Build total 1 items received
I0204 03:23:28.239278    2268 reflector.go:177] Watch close - *api.Build total 1 items received
I0204 03:23:28.239356    2268 controller.go:62] Build failed with error integration-test/2fb30e29-ac1d-11e4-9fa2-22000b38815a: &errors.errorString{s:"failed to create pod for build integration-test/2fb30e29-ac1d-11e4-9fa2-22000b38815a: s%!(EXTRA *url.Error=Post http://127.0.0.1:52939/api/v1beta1/pods?namespace=integration-test: EOF)"}
I0204 03:23:28.239691    2268 controller.go:68] Failed to record changes to build integration-test/2fb30e29-ac1d-11e4-9fa2-22000b38815a: &url.Error{Op:"Put", URL:"http://127.0.0.1:52939/osapi/v1beta1/builds/2fb30e29-ac1d-11e4-9fa2-22000b38815a?namespace=integration-test", Err:(*net.OpError)(0xc20ad62140)}

Activity

  1. added
    kind/bug
    on Feb 4, 2015
  2. added this to the 0.3.0 (beta1) milestone on Feb 4, 2015
  3. ironcladlou commented on Feb 4, 2015

    @ironcladlou
    Contributor

    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.

  4. removed this from the 0.3.0 (beta1) milestone on Feb 4, 2015
  5. smarterclayton commented on Feb 5, 2015

    @smarterclayton
    ContributorAuthor
    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
    
  6. smarterclayton commented on Feb 5, 2015

    @smarterclayton
    ContributorAuthor

    This is definitely a race in builds resulting in failure. The test needs to be more robust. Dropping from 0.3.0.

  7. added this to the 0.4.0 (beta2) milestone on Feb 5, 2015
  8. smarterclayton commented on Feb 10, 2015

    @smarterclayton
    ContributorAuthor

    This is still happening and needs to be fixed - @mfojtik can someone from dev experience try to track this down?

  9. smarterclayton commented on Feb 12, 2015

    @smarterclayton
    ContributorAuthor

    @mfojtik @bparees @soltysh can someone from dev experience take this and get it fixed ASAP? Half of travis builds fail due to this.

  10. mfojtik commented on Feb 12, 2015

    @mfojtik
    Contributor

    @smarterclayton @soltysh is going to have look on this, I will try to debug this as well today.

  11. soltysh commented on Feb 20, 2015

    @soltysh
    Contributor

    @smarterclayton can we close this for now or is it still happening?

  12. smarterclayton commented on Feb 20, 2015

    @smarterclayton
    ContributorAuthor

    It's still happening.

    ----- Original Message -----

    @smarterclayton can we close this for now or is it still happening?


    Reply to this email directly or view it on GitHub:
    #865 (comment)

  13. soltysh commented on Feb 23, 2015

    @soltysh
    Contributor

    Linking #1092 as this relates.

  14. removed this from the 0.4.0 (beta2) milestone on Mar 4, 2015
  15. ironcladlou commented on Mar 20, 2015

    @ironcladlou
    Contributor

    This should be fixed now, right?

  16. soltysh commented on Mar 20, 2015

    @soltysh
    Contributor

    Yeah it is, thanks to @bparees with #1248

  17. bparees commented on Mar 20, 2015

    @bparees
    Contributor

    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 ?

  18. smarterclayton commented on Mar 20, 2015

    @smarterclayton
    ContributorAuthor

    Haven't seen it.

    ----- Original Message -----

    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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions