Repository navigation
Description
This test fails from time to time, let's track it down
--- FAIL: TestKubeletConfigCreate (0.12s)
--- PASS: TestKubeletConfigCreate/aws (0.10s)
--- FAIL: TestKubeletConfigCreate/none (0.01s)
kubelet_config_controller_test.go:207: Expected
testing.CreateActionImpl{ActionImpl:testing.ActionImpl{Namespace:"", Verb:"create", Resource:schema.GroupVersionResource{Group:"", Version:"", Resource:"machineconfigs"}, Subresource:""}, Name:"", Object:(*v1.MachineConfig)(0xc4202f3180)}
got
testing.UpdateActionImpl{ActionImpl:testing.ActionImpl{Namespace:"", Verb:"update", Resource:schema.GroupVersionResource{Group:"machineconfiguration.openshift.io", Version:"v1", Resource:"kubeletconfigs"}, Subresource:"status"}, Object:(*v1.KubeletConfig)(0xc4202f0780)}
kubelet_config_controller_test.go:176: 2 additional expected actions:[{ActionImpl:{Namespace: Verb:patch Resource:{Group:machineconfiguration.openshift.io Version:v1 Resource:kubeletconfigs} Subresource:} Name:smaller-max-pods Patch:[123 34 109 101 116 97 100 97 116 97 34 58 123 34 102 105 110 97 108 105 122 101 114 115 34 58 91 34 57 57 45 109 97 115 116 101 114 45 104 53 53 50 109 45 115 109 97 108 108 101 114 45 109 97 120 45 112 111 100 115 45 107 117 98 101 108 101 116 34 93 125 125]} {ActionImpl:{Namespace: Verb:update Resource:{Group:machineconfiguration.openshift.io Version:v1 Resource:kubeletconfigs} Subresource:status} Object:0xc420133900}]
--- FAIL: TestKubeletConfigUpdates (0.17s)
--- PASS: TestKubeletConfigUpdates/aws (0.07s)
--- PASS: TestKubeletConfigUpdates/none (0.05s)
--- FAIL: TestKubeletConfigUpdates/unrecognized (0.05s)
kubelet_config_controller_test.go:213: Expected
testing.GetActionImpl{ActionImpl:testing.ActionImpl{Namespace:"", Verb:"get", Resource:schema.GroupVersionResource{Group:"", Version:"", Resource:"machineconfigs"}, Subresource:""}, Name:"99-master-p9l4d-kubelet"}
got
testing.UpdateActionImpl{ActionImpl:testing.ActionImpl{Namespace:"", Verb:"update", Resource:schema.GroupVersionResource{Group:"machineconfiguration.openshift.io", Version:"v1", Resource:"kubeletconfigs"}, Subresource:"status"}, Object:(*v1.KubeletConfig)(0xc4203b1b80)}
kubelet_config_controller_test.go:76: 3 additional expected actions:[{ActionImpl:{Namespace: Verb:create Resource:{Group: Version: Resource:machineconfigs} Subresource:} Name: Object:0xc42003cf00} {ActionImpl:{Namespace: Verb:patch Resource:{Group:machineconfiguration.openshift.io Version:v1 Resource:kubeletconfigs} Subresource:} Name:smaller-max-pods Patch:[123 34 109 101 116 97 100 97 116 97 34 58 123 34 102 105 110 97 108 105 122 101 114 115 34 58 91 34 57 57 45 109 97 115 116 101 114 45 104 53 53 50 109 45 115 109 97 108 108 101 114 45 109 97 120 45 112 111 100 115 45 107 117 98 101 108 101 116 34 93 125 125]} {ActionImpl:{Namespace: Verb:update Resource:{Group:machineconfiguration.openshift.io Version:v1 Resource:kubeletconfigs} Subresource:status} Object:0xc4203b0f00}]
Metadata
Metadata
Assignees
Labels
No labels
Activity
runcom commentedon Feb 12, 2019
/cc @sjenning
kikisdeliveryservice commentedon Feb 12, 2019
I hit this just now. Full logs: https://storage.googleapis.com/origin-ci-test/pr-logs/pull/openshift_machine-config-operator/415/pull-ci-openshift-machine-config-operator-master-unit/1034/build-log.txt
ashcrow commentedon Feb 12, 2019
Example: #415
runcom commentedon Feb 15, 2019
another occurrence in https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/openshift_machine-config-operator/437/pull-ci-openshift-machine-config-operator-master-unit/1126
kubeletconfig: race fix
[-]TestKubeletConfigCreate/none flake?[/-][+]TestKubeletConfigCreate flake?[/+]runcom commentedon Feb 17, 2019
this is still happening @rphillips https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/openshift_machine-config-operator/446/pull-ci-openshift-machine-config-operator-master-unit/1182
runcom commentedon Feb 17, 2019
happened again https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/openshift_machine-config-operator/442/pull-ci-openshift-machine-config-operator-master-unit/1183
runcom commentedon Feb 18, 2019
Ok found out what's happening in tests at least, all the
*Listerin the tests are racy or logic is flawed somewhere and can result in object not being properly listed after being added. Placed some debug and I can confirm that running with-raceshows me that behavior:you can see the
mcpListerfailed to give back the expected object (see logs with "runcom " in them)runcom commentedon Feb 18, 2019
the informers store can also have bad data as a result of either a bug in test or code
runcom commentedon Feb 18, 2019
Reopening since we still get this
sjenning commentedon Feb 18, 2019
/assign @rphillips
runcom commentedon Feb 19, 2019
I know what's happening, the listers for the mcp and the controllerconfig aren't in sync by the time we call
syncHandlerin tests and return an empty list which makes thesyncHandlercallsyncStatusOnlywhich in turns call an unexpected (for the test) update action. I don't understand why the listers aren't in sync, they're just a store with a map and rwlock but there's no parallelism involved afaict.Add pod image to image-references
kikisdeliveryservice commentedon Mar 28, 2019
@runcom I think I'm actually seeing this flake in my PR today:
https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/openshift_machine-config-operator/583/pull-ci-openshift-machine-config-operator-master-unit/1752
runcom commentedon Mar 28, 2019
#583 (comment)
this is not happening anymore as a flake, just a test failure unrelated but related to ignition transition
kubeletconfig: race fix
Add pod image to image-references