Repository navigation
Closed
Labels
Description
failed TestSimpleImageChangeBuildTrigger
W0324 18:09:02.936033 51103 master.go:186] Portal net unspecified. Defaulting to 10.0.0.0/24.
I0324 18:09:02.936121 51103 util.go:410] Choosing interface en0 for from-host portals
I0324 18:09:02.936165 51103 util.go:415] Interface en0 = fe80::7a31:c1ff:feb7:6042/64
I0324 18:09:02.936181 51103 master.go:214] Will report fe80::7a31:c1ff:feb7:6042 as public IP address.
I0324 18:09:02.936228 51103 master.go:260] Setting master service IPs based on PortalNet subnet to "10.0.0.1" (read-only) and "10.0.0.2" (read-write).
I0324 18:09:02.980026 51103 controller.go:101] Updated all configs for trigger on imageRepo integration/test-image-trigger-repo
I0324 18:09:02.982101 51103 image_change_controller.go:39] Build image change controller detected imagerepo change registry:8080/openshift/test-image-trigger
I0324 18:09:02.982110 51103 image_change_controller.go:83] Running build for buildConfig test-build-cfg in namespace integration
I0324 18:09:02.982899 51103 generate.go:39] Substituting registry:8080/openshift/test-image-trigger:latest for registry:8080/openshift/test-image-trigger
I0324 18:09:02.991200 51103 controller.go:42] Handling build test-build-cfg-61617073-d272-11e4-ba17-7831c1b76042
--- FAIL: TestSimpleImageChangeBuildTrigger (0.08s)
deploy_trigger_test.go:327: Starting test openshift
imagechange_buildtrigger_test.go:72: expected watch event type MODIFIED, got ADDED
FAIL
failed TestSimpleImageChangeTrigger
W0324 18:09:03.100113 51115 master.go:186] Portal net unspecified. Defaulting to 10.0.0.0/24.
I0324 18:09:03.100261 51115 util.go:410] Choosing interface en0 for from-host portals
I0324 18:09:03.100283 51115 util.go:415] Interface en0 = fe80::7a31:c1ff:feb7:6042/64
I0324 18:09:03.100293 51115 master.go:214] Will report fe80::7a31:c1ff:feb7:6042 as public IP address.
I0324 18:09:03.100311 51115 master.go:260] Setting master service IPs based on PortalNet subnet to "10.0.0.1" (read-only) and "10.0.0.2" (read-write).
I0324 18:09:03.139732 51115 image_change_controller.go:39] Build image change controller detected imagerepo change registry:8080/openshift/test-image
I0324 18:09:03.151530 51115 controller.go:43] Ignoring config integration/image-deploy-config:0; no change triggers detected
I0324 18:09:03.152474 51115 controller.go:38] Detecting changed images for deploymentConfig integration/image-deploy-config:0
I0324 18:09:03.152485 51115 controller.go:48] Found matching ImageChange trigger for deploymentConfig integration/image-deploy-config:0: &api.DeploymentTriggerImageChangeParams{Automatic:true, ContainerNames:[]string{"container-1"}, RepositoryName:"registry:8080/openshift/test-image", From:api.ObjectReference{Kind:"", Namespace:"", Name:"", UID:"", APIVersion:"", ResourceVersion:"", FieldPath:""}, Tag:"latest"}
I0324 18:09:03.152534 51115 controller.go:54] Processing image triggers for deploymentConfig integration/image-deploy-config:0
I0324 18:09:03.152547 51115 controller.go:79] Container container-1 for config integration/image-deploy-config:0: image id changed from "ref-1" to ""; regenerating config
I0324 18:09:03.152664 51115 controller.go:40] Waiting for first version of integration/image-deploy-config:0
I0324 18:09:03.176931 51115 controller.go:43] Ignoring config integration/image-deploy-config:1; no change triggers detected
E0324 18:09:03.188003 51115 factory.go:77] fatal error handling imageRepository: couldn't update some deploymentConfigs for trigger on imageRepo integration/test-image-repo
I0324 18:09:03.197184 51115 controller.go:64] Created deployment for config integration/image-deploy-config:1
I0324 18:09:03.210321 51115 image_change_controller.go:39] Build image change controller detected imagerepo change registry:8080/openshift/test-image
I0324 18:09:03.212128 51115 controller.go:38] Detecting changed images for deploymentConfig integration/image-deploy-config:1
I0324 18:09:03.212136 51115 controller.go:48] Found matching ImageChange trigger for deploymentConfig integration/image-deploy-config:1: &api.DeploymentTriggerImageChangeParams{Automatic:true, ContainerNames:[]string{"container-1"}, RepositoryName:"registry:8080/openshift/test-image", From:api.ObjectReference{Kind:"", Namespace:"", Name:"", UID:"", APIVersion:"", ResourceVersion:"", FieldPath:""}, Tag:"latest"}
I0324 18:09:03.212168 51115 controller.go:54] Processing image triggers for deploymentConfig integration/image-deploy-config:1
I0324 18:09:03.212179 51115 controller.go:79] Container container-1 for config integration/image-deploy-config:1: image id changed from "ref-1" to ""; regenerating config
I0324 18:09:03.257557 51115 controller.go:43] Ignoring config integration/image-deploy-config:2; no change triggers detected
I0324 18:09:03.277675 51115 controller.go:94] Updated deploymentConfig integration/image-deploy-config:1 in response to image change trigger
I0324 18:09:03.277686 51115 controller.go:101] Updated all configs for trigger on imageRepo integration/test-image-repo
--- FAIL: TestSimpleImageChangeTrigger (0.22s)
deploy_trigger_test.go:327: Starting test openshift
deploy_trigger_test.go:160: expected watch event type ADDED, got MODIFIED
FAIL
It looks the order of the replication controller resize is out of order with the creates. Tests need to be more resilient. @bparees @ironcladlou
Activity
bparees commentedon Mar 24, 2015
@smarterclayton that's definitely not the issue for the imagechange_buildtrigger_test, can't speak to the deploy_trigger_test.
for imagechange_buildtrigger_test, we create a build, watch for an ADD event, and then watch for a MODIFIED event... we're successfully getting the ADD event, so i can't imagine why we're getting a second ADD event instead of a MODIFIED event...that would mean a 2nd build is being created, unless events are being replayed for some reason?
bparees commentedon Mar 24, 2015
@smarterclayton also does this issue mean that #1432 is absolved from the blame for this race?
smarterclayton commentedon Mar 24, 2015
Yes
smarterclayton commentedon Mar 24, 2015
It probably means someone is modifying the build in quick succession. It's possible our code was too slow before to trigger the race.
bparees commentedon Mar 24, 2015
why would we get an ADD event if it was someone modifying the build?
it's absolutely the case that we are now ADDing and then immmediately MODIFYing the build, this is in part because the buildcontroller didnt' used to be running in this test (as @ironcladlou has noted), but that would result in ADD+MODIFIED, not ADD+ADD which is what the test case is seeing.
smarterclayton commentedon Mar 24, 2015
Add add means two builds are created
bparees commentedon Mar 24, 2015
yes.... that's what i said " so i can't imagine why we're getting a second ADD event instead of a MODIFIED event...that would mean a 2nd build is being created, unless events are being replayed for some reason?"
bparees commentedon Mar 24, 2015
only way to find out is to dump the two build events and see what's in them. if you can easily recreate it, can you do that? i have not recreated this.
smarterclayton commentedon Mar 24, 2015
smarterclayton commentedon Mar 25, 2015
e2e failure
ironcladlou commentedon Mar 25, 2015
Deployment image change triggers will continue to be suspect until #1433 is resolved (very soon).
danmcp commentedon May 11, 2015
Still an issue?
bparees commentedon May 11, 2015
i have a suspicion this is from the era when etcd was sending bad events.
smarterclayton commentedon May 11, 2015
Is that like the Cambrian or the Neocene?
bparees commentedon May 18, 2015
closing due to antiquity and not seeing it lately.
Squashed 'cmd/service-catalog/go/src/github.com/kubernetes-incubator/…
Squashed 'cmd/service-catalog/go/src/github.com/kubernetes-incubator/…
clean up error logging (openshift#1443)