Skip to content

Conversation

@deads2k
Copy link

@deads2k deads2k commented Jan 27, 2016

@liggitt fyi. merging to make progress in this, "play" branch.

deads2k and others added 30 commits January 27, 2016 16:03
:100644 100644 b0173c3... dd5ab81... M	pkg/master/master.go
UPSTREAM: <carry>: scc integration for PSC

UPSTREAM: <carry>: default fsgroup/supgroup strategies to RunAsAny

UPSTREAM: <carry>: scc priority field

UPSTREAM: <carry>: scc capability defaulting

UPSTREAM: <carry>: Fixup SCC capabilities validation

:100644 100644 604a2e1... bc43631... M	pkg/api/deep_copy_generated.go
:100644 100644 43e78f3... a1fc556... M	pkg/api/install/install.go
:100644 100644 ed3e38c... dc504c7... M	pkg/api/meta/restmapper.go
:100644 100644 a949be2... af68f42... M	pkg/api/register.go
:100644 100644 8fa1065... bc3fbbe... M	pkg/api/testing/fuzzer.go
:100644 100644 292458f... 3fcf0c6... M	pkg/api/types.go
:100644 100644 71e4b1f... 7d4cb07... M	pkg/api/v1/conversion_generated.go
:100644 100644 4d44fa9... 23ca6a1... M	pkg/api/v1/deep_copy_generated.go
:100644 100644 dd27a91... 5065067... M	pkg/api/v1/defaults.go
:100644 100644 a84381a... 4ab23e0... M	pkg/api/v1/defaults_test.go
:100644 100644 db45926... f06eefa... M	pkg/api/v1/register.go
:100644 100644 eceb268... 70114cf... M	pkg/api/v1/types.go
:100644 100644 1d69055... 1df1e2e... M	pkg/api/validation/validation.go
:100644 100644 03d5f8f... bde252b... M	pkg/api/validation/validation_test.go
:100644 100644 e4b2d4c... b347639... M	pkg/client/unversioned/client.go
:000000 100644 0000000... f60740d... A	pkg/client/unversioned/securitycontextconstraints.go
:000000 100644 0000000... 378d727... A	pkg/client/unversioned/securitycontextconstraints_test.go
:000000 100644 0000000... e199f1c... A	pkg/client/unversioned/testclient/fake_securitycontextconstraints.go
:100644 100644 ebbc600... f365e0f... M	pkg/client/unversioned/testclient/testclient.go
:100644 100644 6ecb4d2... f01d1f8... M	pkg/kubectl/kubectl.go
:100644 100644 4b2d819... bf0fc5c... M	pkg/kubectl/resource_printer.go
:100644 100644 dd5ab81... 78f3ba0... M	pkg/master/master.go
:000000 100644 0000000... 1b5bf6a... A	pkg/registry/securitycontextconstraints/doc.go
:000000 100644 0000000... fa66a52... A	pkg/registry/securitycontextconstraints/etcd/etcd.go
:000000 100644 0000000... 9bb7173... A	pkg/registry/securitycontextconstraints/etcd/etcd_test.go
:000000 100644 0000000... 8069e18... A	pkg/registry/securitycontextconstraints/registry.go
:000000 100644 0000000... 593f4ad... A	pkg/registry/securitycontextconstraints/strategy.go
:100644 100644 e90f396... 03e0116... M	pkg/registry/service/allocator/bitmap.go
:000000 100644 0000000... 51152c1... A	pkg/securitycontextconstraints/capabilities/mustrunas.go
:000000 100644 0000000... 9898f45... A	pkg/securitycontextconstraints/capabilities/mustrunas_test.go
:000000 100644 0000000... 2bcd66a... A	pkg/securitycontextconstraints/capabilities/types.go
:000000 100644 0000000... 13ffbd0... A	pkg/securitycontextconstraints/group/mustrunas.go
:000000 100644 0000000... f84e612... A	pkg/securitycontextconstraints/group/mustrunas_test.go
:000000 100644 0000000... 1d3b625... A	pkg/securitycontextconstraints/group/runasany.go
:000000 100644 0000000... 6e924e7... A	pkg/securitycontextconstraints/group/runasany_test.go
:000000 100644 0000000... cf84149... A	pkg/securitycontextconstraints/group/types.go
:000000 100644 0000000... 813c0aa... A	pkg/securitycontextconstraints/provider.go
:000000 100644 0000000... 145e76b... A	pkg/securitycontextconstraints/provider_test.go
:000000 100644 0000000... 63be576... A	pkg/securitycontextconstraints/selinux/doc.go
:000000 100644 0000000... 51ee4e2... A	pkg/securitycontextconstraints/selinux/mustrunas.go
:000000 100644 0000000... 085cf6e... A	pkg/securitycontextconstraints/selinux/mustrunas_test.go
:000000 100644 0000000... 37fbed0... A	pkg/securitycontextconstraints/selinux/runasany.go
:000000 100644 0000000... 56b8694... A	pkg/securitycontextconstraints/selinux/runasany_test.go
:000000 100644 0000000... 61a56c5... A	pkg/securitycontextconstraints/selinux/types.go
:000000 100644 0000000... 4fe4ee2... A	pkg/securitycontextconstraints/types.go
:000000 100644 0000000... a3ce474... A	pkg/securitycontextconstraints/user/doc.go
:000000 100644 0000000... 7b84115... A	pkg/securitycontextconstraints/user/mustrunas.go
:000000 100644 0000000... 26f53b7... A	pkg/securitycontextconstraints/user/mustrunas_test.go
:000000 100644 0000000... e4977f7... A	pkg/securitycontextconstraints/user/mustrunasrange.go
:000000 100644 0000000... 870710e... A	pkg/securitycontextconstraints/user/nonroot.go
:000000 100644 0000000... 4ca637d... A	pkg/securitycontextconstraints/user/nonroot_test.go
:000000 100644 0000000... 6c60232... A	pkg/securitycontextconstraints/user/runasany.go
:000000 100644 0000000... b13ae29... A	pkg/securitycontextconstraints/user/runasany_test.go
:000000 100644 0000000... d99fd3e... A	pkg/securitycontextconstraints/user/types.go
:000000 100644 0000000... e723b9d... A	pkg/securitycontextconstraints/user/util.go
:100644 100644 411f770... c8d0d0a... M	pkg/api/v1/conversion.go
:100644 100644 7d4cb07... 59bdda0... M	pkg/api/v1/conversion_generated.go
:100644 100644 23ca6a1... c11aab0... M	pkg/api/v1/deep_copy_generated.go
:100644 100644 5065067... dfa3578... M	pkg/api/v1/defaults.go
:100644 100644 70114cf... 72983b9... M	pkg/api/v1/types.go
:100644 100644 e92b0a2... 171bde8... M	pkg/apis/extensions/v1beta1/deep_copy_generated.go
:100644 100644 a9b6b37... 2328ffc... M	pkg/apiserver/api_installer.go
:100644 100644 af19945... 0617165... M	pkg/kubectl/describe.go
Contains:
228fdbafb823998761ca4e66bc83e3097363c9a6 UPSTREAM: <carry>: Back n forth downward/metadata conversions
af27d7a2cdacab952ea3898aecbfa99474a5ca76 UPSTREAM: <carry>: Back n forth downward/metadata conversions

:100644 100644 c8d0d0a... e3a0abc... M	pkg/api/v1/conversion.go
:100644 100644 59bdda0... 9414806... M	pkg/api/v1/conversion_generated.go
:000000 100644 0000000... a833f0e... A	pkg/api/v1/conversion_volumesource_test.go
:100644 100644 c11aab0... 36fe129... M	pkg/api/v1/deep_copy_generated.go
:100644 100644 72983b9... f29ad72... M	pkg/api/v1/types.go
:100644 100644 1d7da2a... 0b8ff92... M	pkg/apis/extensions/v1beta1/conversion.go
:100644 100644 82ebd87... fdb34f1... M	pkg/apis/extensions/v1beta1/conversion_generated.go
:100644 100644 171bde8... 7ee820f... M	pkg/apis/extensions/v1beta1/deep_copy_generated.go
Conflicts:
	Godeps/_workspace/src/k8s.io/kubernetes/pkg/kubectl/cmd/exec.go
	Godeps/_workspace/src/k8s.io/kubernetes/pkg/kubectl/cmd/portforward.go

Conflicts:
	Godeps/_workspace/src/k8s.io/kubernetes/pkg/kubectl/cmd/exec.go
	Godeps/_workspace/src/k8s.io/kubernetes/pkg/kubectl/cmd/portforward.go

:100644 100644 eef0235... bf46a2d... M	pkg/kubectl/cmd/exec.go
:100644 100644 942a1c5... 52570ac... M	pkg/kubectl/cmd/portforward.go
Contains previous commits:
- UPSTREAM: <carry>: Update v1beta3
- UPSTREAM: 15053<carry>: Conversions for v1beta3
- UPSTREAM: <carry>: v1beta3 scc integration for PSC
- UPSTREAM: <carry>: respect fuzzing defaults for v1beta3 SecurityContext
- UPSTREAM: <carry>: Update v1beta3 PodLogOptions
- UPSTREAM: <carry>: v1beta3 scc priority field
- UPSTREAM: <carry>: v1beta3 default fsgroup/supgroup strategies to RunAsAny
- UPSTREAM: <carry>: scc v1beta3 capability defaulting

:100644 100644 a1fc556... 74fde3c... M	pkg/api/install/install.go
:100644 100644 6040c54... e00a441... M	pkg/api/registered/registered.go
:100644 100644 bc3fbbe... f7f0265... M	pkg/api/testing/fuzzer.go
:000000 100644 0000000... f8f22b4... A	pkg/api/v1beta3/conversion.go
:000000 100644 0000000... 7b2c004... A	pkg/api/v1beta3/conversion_generated.go
:000000 100644 0000000... a4c3aab... A	pkg/api/v1beta3/conversion_test.go
:000000 100644 0000000... 02393ad... A	pkg/api/v1beta3/conversion_volumesource_test.go
:000000 100644 0000000... ea050d5... A	pkg/api/v1beta3/deep_copy_generated.go
:000000 100644 0000000... 1689b35... A	pkg/api/v1beta3/defaults.go
:000000 100644 0000000... 6396549... A	pkg/api/v1beta3/defaults_test.go
:000000 100644 0000000... f7620a8... A	pkg/api/v1beta3/register.go
:000000 100644 0000000... 784ee45... A	pkg/api/v1beta3/types.go
:100644 100644 ac0121d... 182f2e4... M	pkg/client/unversioned/request.go
:100644 100644 e74e238... fcb9232... M	pkg/kubectl/cmd/rollingupdate.go
Conflicts:
	Godeps/_workspace/src/k8s.io/kubernetes/pkg/client/unversioned/request.go

:100644 100644 182f2e4... 1f8bdb4... M	pkg/client/unversioned/request.go
:100644 100644 63cf01f... 4e18e76... M	pkg/client/unversioned/restclient.go
…kages

:100644 100644 12f2740... 295ff62... M	pkg/runtime/conversion_generator.go
:100644 100644 1df1e2e... 664f3b9... M	pkg/api/validation/validation.go
:100644 100644 bde252b... f575760... M	pkg/api/validation/validation_test.go
:100644 100644 c561ddb... 17ef5df... M	pkg/kubelet/server.go
:100644 100644 d1d370f... 4556a64... M	pkg/client/unversioned/conditions.go
:000000 100644 0000000... 2021548... A	pkg/client/unversioned/conditions_test.go
:100644 100644 0176f7b... fb9d36b... M	pkg/controller/namespace/namespace_controller.go
:100644 100644 be331bd... 6c0d691... M	pkg/controller/service/servicecontroller.go
:100644 100644 8f2b917... ecdc29f... M	pkg/controller/serviceaccount/tokens_controller.go
:100644 100644 853c288... 275505f... M	pkg/util/wait/wait.go
:100644 100644 e130cfc... 43279ad... M	pkg/util/wait/wait_test.go
:100644 100644 e2c1032... ec56d39... M	pkg/controller/node/nodecontroller.go
:100644 100644 eec5d2c... ffaea0b... M	cmd/kube-controller-manager/app/controllermanager.go
:100644 100644 979d816... 4220f61... M	pkg/controller/podautoscaler/horizontal.go
:100644 100644 03334e7... ea51a22... M	pkg/controller/podautoscaler/horizontal_test.go
:100644 100644 2328ffc... a876a74... M	pkg/apiserver/api_installer.go
:100644 100644 471bcd5... 2c8c2f9... M	pkg/apiserver/apiserver.go
:100644 100644 158961f... 3b76735... M	pkg/runtime/unstructured.go
:100644 100644 120e3ff... add8419... M	pkg/runtime/unstructured_test.go
:000000 100644 0000000... 86613ad... A	pkg/util/json/json.go
:000000 100644 0000000... e41f6ce... A	pkg/util/json/json_test.go
:100644 100644 1d3f77e... d07ffd1... M	pkg/util/strategicpatch/patch.go
:100644 100644 3fff3e5... 0b71b53... M	pkg/util/strategicpatch/patch_test.go
:100644 100644 42f1210... a3cebc7... M	pkg/client/unversioned/clientcmd/loader.go
:100644 100644 32e1989... 3519e72... M	pkg/apiserver/watch.go
:100644 100644 1e5a550... 12a2017... M	cmd/kube-controller-manager/app/plugins.go
:100644 100644 442100d... 986592b... M	pkg/cloudprovider/providers/aws/aws.go
:100644 100644 c57e6ae... 846bc09... M	pkg/controller/persistentvolume/persistentvolume_provisioner_controller.go
:100644 100644 04046d2... 58cfade... M	pkg/controller/persistentvolume/types.go
:100644 100644 6034173... a29f305... M	pkg/volume/aws_ebs/aws_ebs.go
:100644 100644 5c19baa... 5377010... M	pkg/volume/aws_ebs/aws_ebs_test.go
:100644 100644 aa24681... 2f188c1... M	pkg/volume/aws_ebs/aws_util.go
:100644 100644 91cd7a0... bebfff1... M	pkg/volume/plugins.go
:100644 100644 7a92ae7... 267dcc3... M	pkg/volume/util.go
:100644 100644 d9c1a1f... ab1c8c6... M	test/e2e/pd.go
:100644 100644 12a2017... b58fcda... M	cmd/kube-controller-manager/app/plugins.go
:100644 100644 6dfbe9a... bfc34cd... M	pkg/cloudprovider/providers/openstack/openstack.go
:100644 100644 0c56676... be70f49... M	pkg/cloudprovider/providers/openstack/openstack_test.go
:100644 100644 f1366a0... b3d30d7... M	pkg/volume/cinder/cinder.go
:100644 100644 c89ad0e... e22519f... M	pkg/volume/cinder/cinder_test.go
:100644 100644 685333a... 69982e7... M	pkg/volume/cinder/cinder_util.go
:100644 100644 b58fcda... ebdbd39... M	cmd/kube-controller-manager/app/plugins.go
:100644 100644 7cf0cce... ba3c6b6... M	pkg/volume/gce_pd/gce_pd.go
:100644 100644 0559c14... 4e5651e... M	pkg/volume/gce_pd/gce_pd_test.go
:100644 100644 7626394... 3f184f7... M	pkg/volume/gce_pd/gce_util.go
:100644 100644 0a082b9... bbdd564... M	pkg/kubectl/cmd/get.go
:100644 100644 3d5b53e... 9f705f7... M	pkg/kubectl/cmd/get_test.go
:100644 100644 7c8b20b... fd72043... M	pkg/kubectl/resource/builder.go
:100644 100644 daed644... 420e328... M	pkg/kubectl/resource/builder_test.go
:100644 100644 bf0fc5c... 0c22007... M	pkg/kubectl/resource_printer.go
:100644 100644 8ca5ea5... 9d43820... M	pkg/controller/persistentvolume/persistentvolume_claim_binder_controller.go
:100644 100644 2f7688c... 96762d6... M	pkg/controller/persistentvolume/persistentvolume_claim_binder_controller_test.go
:100644 100644 3d85dac... 30077a4... M	pkg/controller/persistentvolume/persistentvolume_recycler_controller.go
:100644 100644 9d43820... 4b7481f... M	pkg/controller/persistentvolume/persistentvolume_claim_binder_controller.go
:100644 100644 30077a4... 6d60980... M	pkg/controller/persistentvolume/persistentvolume_recycler_controller.go
…ermanently

:100644 100644 6d60980... e86347a... M	pkg/controller/persistentvolume/persistentvolume_recycler_controller.go
:000000 100644 0000000... 0aa22e6... A	pkg/controller/persistentvolume/persistentvolume_recycler_controller_test.go
…g the patch

:100644 100644 a19f584... 984d909... M	pkg/admission/interfaces.go
:100644 100644 380c206... ff9b97d... M	pkg/apiserver/resthandler.go
:100644 100644 08abce9... 8b76f69... M	pkg/apiserver/resthandler_test.go
…vider

Previously, if the kubelet tried to register itself with the API server,
and was rejected due to the external ID changing, it would delete the
node object and recreate it.  This commit causes it to tolerate
a change in ExternalID when the ExternalID is not being provided by a
cloud provider, assuming the new ExternalID is either the node's
(metadata) name, or one of node's addresses.

:100644 100644 0c4fdc1... 8deaa82... M	pkg/kubelet/kubelet.go
Ravi Sankar Penta and others added 14 commits January 27, 2016 16:03
…belet

:100644 100644 6985807... 524148d... M	cmd/kubelet/app/server.go
:100644 100644 8deaa82... 4bf134f... M	pkg/kubelet/kubelet.go
:100644 100644 09b71e9... 9a353a0... M	pkg/kubelet/kubelet_test.go
:100644 100644 781a648... be013f3... M	pkg/client/transport/round_trippers.go
:100644 100644 8f96ae9... a818a4e... M	pkg/client/unversioned/helper.go
Pulls in the changes from 17922 to remove "v1" as the only allowed groupless version

:100644 100644 0ed4353... 27aa77c... M	pkg/api/unversioned/group_version.go
:100644 100644 1175cf0... a4bbf55... M	pkg/client/unversioned/helper_blackbox_test.go
Carry until ugorji codec gen is working in origin.
We cannot use ugorji with upstream structs we inline until our structs have custom ugorji encoding/decoding as well

:100644 000000 f7b556e... 0000000... D	pkg/api/types.generated.go
:100644 000000 df68ce0... 0000000... D	pkg/api/v1/types.generated.go
:100644 000000 22632a4... 0000000... D	pkg/apis/componentconfig/types.generated.go
:100644 000000 b47ec4b... 0000000... D	pkg/apis/componentconfig/v1alpha1/types.generated.go
:100644 000000 6817cf5... 0000000... D	pkg/apis/extensions/types.generated.go
:100644 000000 d1dc0ec... 0000000... D	pkg/apis/extensions/v1beta1/types.generated.go
:100644 000000 cc6b557... 0000000... D	pkg/apis/metrics/types.generated.go
:100644 000000 6857f1b... 0000000... D	pkg/apis/metrics/v1alpha1/types.generated.go
:100644 000000 63d1f35... 0000000... D	pkg/apiserver/testing/types.generated.go
:100644 000000 5888f23... 0000000... D	pkg/kubectl/testing/types.generated.go
:100644 000000 a35912a.. 0000000... D	pkg/storage/testing/types.generated.go
:100644 100644 0c22007... f078b37... M	pkg/kubectl/resource_printer.go
:100644 100644 1d9a7d7... 92ca48d... M	pkg/kubectl/resource_printer_test.go
:100644 100644 be013f3... f5c5051... M	pkg/client/transport/round_trippers.go
:100644 100644 94a2a7d... 6e8e52f... M	pkg/client/transport/round_trippers_test.go
:100644 100644 f5c5051... 6136e08... M	pkg/client/transport/round_trippers.go
Latest upstream doesn't reverse any more, can drop on next rebase

:100644 100644 74fde3c... 826c141... M	pkg/api/install/install.go
:100644 100644 c51a3b2... d5e53a2... M	pkg/apis/componentconfig/install/install.go
:100644 100644 8f5bff7... fc7e3ff... M	pkg/apis/extensions/install/install.go
:100644 100644 4d9447b... f9e1da6... M	pkg/apis/metrics/install/install.go
…cts when operating

:100644 100644 3f82db4... 57a0c1d... M	pkg/kubectl/cmd/annotate.go
:100644 100644 d2952d2... 46ee689... M	pkg/kubectl/cmd/label.go
…h compute failure

:100644 100644 57a0c1d... 0036d2a... M	pkg/kubectl/cmd/annotate.go
:100644 100644 46ee689... 3066226... M	pkg/kubectl/cmd/label.go
… setting

Reverts behavior change made in k8s PR 18089

Carry until k8s issue 20090 is resolved and provides a way to opt out of clusterDNS-only behavior

This was changed in k8s PR 18089

:100644 100644 4bf134f... d5a3e7a... M	pkg/kubelet/kubelet.go
:100644 100644 9a353a0... 01e82f0... M	pkg/kubelet/kubelet_test.go
deads2k added a commit that referenced this pull request Jan 27, 2016
bring stable up to origin: 90b2636ed7e793cdcc67ba31a865c2844ffceb85
@deads2k deads2k merged commit cac21c3 into openshift:stable Jan 27, 2016
@deads2k deads2k deleted the stable branch February 26, 2016 18:52
deads2k pushed a commit that referenced this pull request Aug 18, 2016
Automatic merge from submit-queue

in each pd test, create and delete the pod for every iteration to give new pod name for exec

fix kubernetes#26141
based on chat with @ncdc

The following is a snapshot of the log. Each iteration now has a new Pod name
```text
[It] should schedule a pod w/two RW PDs both mounted to one container, write to PD, verify contents, delete pod, recreate pod, verify contents, and repeat in rapid succession [Slow] [Flaky]
  /srv/dev/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/pd.go:277
STEP: creating PD1
Jun 10 15:55:45.878: INFO: Successfully created a new PD: "rootfs-e2e-c8b82df9-2f23-11e6-a5a0-b8ca3a62792c".
STEP: creating PD2
Jun 10 15:55:49.794: INFO: Successfully created a new PD: "rootfs-e2e-cb135362-2f23-11e6-a5a0-b8ca3a62792c".
Jun 10 15:55:49.794: INFO: PD Read/Writer Iteration #0
STEP: submitting host0Pod to kubernetes
W0610 15:55:49.860308   17282 request.go:347] Field selector: v1 - pods - metadata.name - pd-test-cd68f34b-2f23-11e6-a5a0-b8ca3a62792c: need to check if this is versioned correctly.
STEP: writing a file in the container
Jun 10 15:56:09.792: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-cd68f34b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- /bin/sh -c echo '988876932586416926' > '/testpd1/tracker0''
Jun 10 15:56:12.003: INFO: Wrote value: "988876932586416926" to PD1 ("rootfs-e2e-c8b82df9-2f23-11e6-a5a0-b8ca3a62792c") from pod "pd-test-cd68f34b-2f23-11e6-a5a0-b8ca3a62792c" container "mycontainer"
STEP: writing a file in the container
Jun 10 15:56:12.003: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-cd68f34b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- /bin/sh -c echo '8414937992264649637' > '/testpd2/tracker0''
Jun 10 15:56:13.170: INFO: Wrote value: "8414937992264649637" to PD2 ("rootfs-e2e-cb135362-2f23-11e6-a5a0-b8ca3a62792c") from pod "pd-test-cd68f34b-2f23-11e6-a5a0-b8ca3a62792c" container "mycontainer"
STEP: reading a file in the container
Jun 10 15:56:13.170: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-cd68f34b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker0'
Jun 10 15:56:14.325: INFO: Read file "/testpd1/tracker0" with content: 988876932586416926

STEP: reading a file in the container
Jun 10 15:56:14.325: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-cd68f34b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker0'
Jun 10 15:56:15.590: INFO: Read file "/testpd2/tracker0" with content: 8414937992264649637

STEP: deleting host0Pod
Jun 10 15:56:15.841: INFO: PD Read/Writer Iteration #1
STEP: submitting host0Pod to kubernetes
W0610 15:56:15.905485   17282 request.go:347] Field selector: v1 - pods - metadata.name - pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c: need to check if this is versioned correctly.
STEP: reading a file in the container
Jun 10 15:56:16.832: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker0'
Jun 10 15:56:18.132: INFO: Read file "/testpd1/tracker0" with content: 988876932586416926

STEP: reading a file in the container
Jun 10 15:56:18.132: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker0'
Jun 10 15:56:19.354: INFO: Read file "/testpd2/tracker0" with content: 8414937992264649637

STEP: writing a file in the container
Jun 10 15:56:19.354: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- /bin/sh -c echo '7639503234625274799' > '/testpd1/tracker1''
Jun 10 15:56:20.526: INFO: Wrote value: "7639503234625274799" to PD1 ("rootfs-e2e-c8b82df9-2f23-11e6-a5a0-b8ca3a62792c") from pod "pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c" container "mycontainer"
STEP: writing a file in the container
Jun 10 15:56:20.526: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- /bin/sh -c echo '7400445987108171911' > '/testpd2/tracker1''
Jun 10 15:56:21.694: INFO: Wrote value: "7400445987108171911" to PD2 ("rootfs-e2e-cb135362-2f23-11e6-a5a0-b8ca3a62792c") from pod "pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c" container "mycontainer"
STEP: reading a file in the container
Jun 10 15:56:21.694: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker0'
Jun 10 15:56:22.904: INFO: Read file "/testpd1/tracker0" with content: 988876932586416926

STEP: reading a file in the container
Jun 10 15:56:22.905: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker0'
Jun 10 15:56:24.080: INFO: Read file "/testpd2/tracker0" with content: 8414937992264649637

STEP: reading a file in the container
Jun 10 15:56:24.081: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker1'
Jun 10 15:56:25.290: INFO: Read file "/testpd1/tracker1" with content: 7639503234625274799

STEP: reading a file in the container
Jun 10 15:56:25.290: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker1'
Jun 10 15:56:26.491: INFO: Read file "/testpd2/tracker1" with content: 7400445987108171911

STEP: deleting host0Pod
Jun 10 15:56:26.756: INFO: PD Read/Writer Iteration #2
STEP: submitting host0Pod to kubernetes
W0610 15:56:26.821828   17282 request.go:347] Field selector: v1 - pods - metadata.name - pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c: need to check if this is versioned correctly.
STEP: reading a file in the container
Jun 10 15:56:27.898: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker1'
Jun 10 15:56:29.096: INFO: Read file "/testpd1/tracker1" with content: 7639503234625274799

STEP: reading a file in the container
Jun 10 15:56:29.096: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker1'
Jun 10 15:56:30.325: INFO: Read file "/testpd2/tracker1" with content: 7400445987108171911

STEP: reading a file in the container
Jun 10 15:56:30.325: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker0'
Jun 10 15:56:31.528: INFO: Read file "/testpd1/tracker0" with content: 988876932586416926

STEP: reading a file in the container
Jun 10 15:56:31.529: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker0'
Jun 10 15:56:32.972: INFO: Read file "/testpd2/tracker0" with content: 8414937992264649637

STEP: writing a file in the container
Jun 10 15:56:32.972: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- /bin/sh -c echo '1846555975530999997' > '/testpd1/tracker2''
Jun 10 15:56:34.157: INFO: Wrote value: "1846555975530999997" to PD1 ("rootfs-e2e-c8b82df9-2f23-11e6-a5a0-b8ca3a62792c") from pod "pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c" container "mycontainer"
STEP: writing a file in the container
Jun 10 15:56:34.157: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- /bin/sh -c echo '2775947264799611726' > '/testpd2/tracker2''
Jun 10 15:56:35.661: INFO: Wrote value: "2775947264799611726" to PD2 ("rootfs-e2e-cb135362-2f23-11e6-a5a0-b8ca3a62792c") from pod "pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c" container "mycontainer"
STEP: reading a file in the container
Jun 10 15:56:35.662: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker0'
Jun 10 15:56:36.868: INFO: Read file "/testpd1/tracker0" with content: 988876932586416926

STEP: reading a file in the container
Jun 10 15:56:36.868: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker0'
Jun 10 15:56:38.062: INFO: Read file "/testpd2/tracker0" with content: 8414937992264649637

STEP: reading a file in the container
Jun 10 15:56:38.062: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker1'
Jun 10 15:56:39.221: INFO: Read file "/testpd1/tracker1" with content: 7639503234625274799

STEP: reading a file in the container
Jun 10 15:56:39.221: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker1'
Jun 10 15:56:40.397: INFO: Read file "/testpd2/tracker1" with content: 7400445987108171911

STEP: reading a file in the container
Jun 10 15:56:40.397: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker2'
Jun 10 15:56:41.584: INFO: Read file "/testpd1/tracker2" with content: 1846555975530999997

STEP: reading a file in the container
Jun 10 15:56:41.585: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker2'
Jun 10 15:56:42.800: INFO: Read file "/testpd2/tracker2" with content: 2775947264799611726

STEP: deleting host0Pod
```

@saad-ali
soltysh pushed a commit that referenced this pull request Jul 13, 2020
lack pushed a commit to lack/kubernetes that referenced this pull request Mar 25, 2021
Sharing the same connection for multiple streams should have worked,
but ran into unexpected timeouts:

I0227 08:07:49.754263   80029 portproxy.go:109] container "mock" in pod csi-mock-volumes-4037-2061/csi-mockplugin-0 is running
E0227 08:07:49.779359   80029 portproxy.go:178] prepare forwarding csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: dialer failed: unable to upgrade connection: pod not found ("csi-mockplugin-0_csi-mock-volumes-4037-2061")
I0227 08:07:50.782705   80029 portproxy.go:109] container "mock" in pod csi-mock-volumes-4037-2061/csi-mockplugin-0 is running
I0227 08:07:50.809326   80029 portproxy.go:125] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: starting connection polling
I0227 08:07:50.909544   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection #0, 0 open
I0227 08:07:50.912436   80029 portproxy.go:155] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: created a new connection #0
I0227 08:07:50.912503   80029 portproxy.go:286] forward listener for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: got a new connection #0
I0227 08:07:50.913161   80029 portproxy.go:322] forward connection #0 for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: remote side closed the stream
E0227 08:07:50.913324   80029 portproxy.go:242] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: an error occurred connecting to the remote port: error forwarding port 9000 to pod 66662ea1ab30b4193dac0102c49be840971d337c802cc0c8bbc074214522bd13, uid : failed to execute portforward in network namespace "/var/run/netns/cni-c15e4e36-dad9-8316-c301-33af9dad5717": failed to dial 9000: dial tcp4 127.0.0.1:9000: connect: connection refused
I0227 08:07:50.913371   80029 portproxy.go:340] forward connection #0 for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: closing our side
W0227 08:07:50.913487   80029 server.go:669] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams failed to receive the preface from client: EOF"
I0227 08:07:51.009519   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#1, 0 open
I0227 08:07:51.011912   80029 portproxy.go:155] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: created a new connection openshift#1
I0227 08:07:51.011973   80029 portproxy.go:286] forward listener for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: got a new connection openshift#1
I0227 08:07:51.013677   80029 portproxy.go:322] forward connection openshift#1 for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: remote side closed the stream
I0227 08:07:51.013720   80029 portproxy.go:340] forward connection openshift#1 for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: closing our side
W0227 08:07:51.013794   80029 server.go:669] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams failed to receive the preface from client: EOF"
E0227 08:07:51.017026   80029 portproxy.go:242] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: an error occurred connecting to the remote port: error forwarding port 9000 to pod 66662ea1ab30b4193dac0102c49be840971d337c802cc0c8bbc074214522bd13, uid : failed to execute portforward in network namespace "/var/run/netns/cni-c15e4e36-dad9-8316-c301-33af9dad5717": failed to dial 9000: dial tcp4 127.0.0.1:9000: connect: connection refused
I0227 08:07:51.109515   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#2, 0 open
I0227 08:07:51.111479   80029 portproxy.go:155] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: created a new connection openshift#2
I0227 08:07:51.111519   80029 portproxy.go:286] forward listener for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: got a new connection openshift#2
I0227 08:07:51.209519   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#3, 1 open
I0227 08:07:51.766305   80029 csi.go:377] gRPC call: {"Method":"/csi.v1.Identity/Probe","Request":{},"Response":{"ready":{"value":true}},"Error":"","FullError":null}
I0227 08:07:51.768304   80029 csi.go:377] gRPC call: {"Method":"/csi.v1.Identity/GetPluginInfo","Request":{},"Response":{"name":"csi-mock-csi-mock-volumes-4037","vendor_version":"0.3.0","manifest":{"url":"https://k8s.io/kubernetes/test/e2e/storage/drivers/csi-test/mock"}},"Error":"","FullError":null}
I0227 08:07:51.770494   80029 csi.go:377] gRPC call: {"Method":"/csi.v1.Identity/GetPluginCapabilities","Request":{},"Response":{"capabilities":[{"Type":{"Service":{"type":1}}},{"Type":{"VolumeExpansion":{"type":1}}},{"Type":{"Service":{"type":2}}}]},"Error":"","FullError":null}
I0227 08:07:51.772899   80029 csi.go:377] gRPC call: {"Method":"/csi.v1.Controller/ControllerGetCapabilities","Request":{},"Response":{"capabilities":[{"Type":{"Rpc":{"type":1}}},{"Type":{"Rpc":{"type":3}}},{"Type":{"Rpc":{"type":10}}},{"Type":{"Rpc":{"type":4}}},{"Type":{"Rpc":{"type":6}}},{"Type":{"Rpc":{"type":5}}},{"Type":{"Rpc":{"type":8}}},{"Type":{"Rpc":{"type":7}}},{"Type":{"Rpc":{"type":12}}},{"Type":{"Rpc":{"type":11}}},{"Type":{"Rpc":{"type":9}}}]},"Error":"","FullError":null}
I0227 08:08:21.209901   80029 portproxy.go:151] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: no connection: error creating error stream: Timeout occurred
I0227 08:08:21.209980   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#3, 1 open
I0227 08:08:51.211522   80029 portproxy.go:151] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: no connection: error creating data stream: Timeout occurred
I0227 08:08:51.211566   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#3, 1 open
I0227 08:08:51.213451   80029 portproxy.go:155] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: created a new connection openshift#3
I0227 08:08:51.213498   80029 portproxy.go:286] forward listener for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: got a new connection openshift#3
I0227 08:08:51.309540   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#4, 2 open
I0227 08:08:52.215358   80029 portproxy.go:322] forward connection openshift#3 for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: remote side closed the stream
I0227 08:08:52.215475   80029 portproxy.go:340] forward connection openshift#3 for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: closing our side
I0227 08:09:21.310003   80029 portproxy.go:151] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: no connection: error creating error stream: Timeout occurred
I0227 08:09:21.310086   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#4, 1 open
I0227 08:09:51.311854   80029 portproxy.go:151] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: no connection: error creating data stream: Timeout occurred
I0227 08:09:51.311908   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#4, 1 open
I0227 08:09:51.314415   80029 portproxy.go:155] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: created a new connection openshift#4
I0227 08:09:51.314497   80029 portproxy.go:286] forward listener for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: got a new connection openshift#4
I0227 08:09:51.409527   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#5, 2 open
I0227 08:09:52.326203   80029 portproxy.go:322] forward connection openshift#4 for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: remote side closed the stream
I0227 08:09:52.326277   80029 portproxy.go:340] forward connection openshift#4 for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: closing our side
I0227 08:10:21.409892   80029 portproxy.go:151] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: no connection: error creating error stream: Timeout occurred
I0227 08:10:21.409954   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#5, 1 open
I0227 08:10:51.411455   80029 portproxy.go:151] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: no connection: error creating data stream: Timeout occurred
I0227 08:10:51.411557   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#5, 1 open
I0227 08:10:51.413229   80029 portproxy.go:155] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: created a new connection openshift#5
I0227 08:10:51.413274   80029 portproxy.go:286] forward listener for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: got a new connection openshift#5
I0227 08:10:51.509508   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#6, 2 open
I0227 08:10:52.414862   80029 portproxy.go:322] forward connection openshift#5 for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: remote side closed the stream
I0227 08:10:52.414931   80029 portproxy.go:340] forward connection openshift#5 for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: closing our side
I0227 08:11:21.509879   80029 portproxy.go:151] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: no connection: error creating error stream: Timeout occurred
I0227 08:11:21.509934   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#6, 1 open
I0227 08:11:51.511519   80029 portproxy.go:151] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: no connection: error creating data stream: Timeout occurred
I0227 08:11:51.511568   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#6, 1 open
I0227 08:11:51.513519   80029 portproxy.go:155] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: created a new connection openshift#6
I0227 08:11:51.513571   80029 portproxy.go:286] forward listener for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: got a new connection openshift#6
I0227 08:11:51.609504   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#7, 2 open
I0227 08:11:52.517799   80029 portproxy.go:322] forward connection openshift#6 for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: remote side closed the stream
I0227 08:11:52.517918   80029 portproxy.go:340] forward connection openshift#6 for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: closing our side
I0227 08:12:21.609856   80029 portproxy.go:151] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: no connection: error creating error stream: Timeout occurred
I0227 08:12:21.609909   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#7, 1 open
I0227 08:12:51.611494   80029 portproxy.go:151] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: no connection: error creating data stream: Timeout occurred
I0227 08:12:51.611555   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#7, 1 open
I0227 08:12:51.613289   80029 portproxy.go:155] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: created a new connection openshift#7
I0227 08:12:51.613343   80029 portproxy.go:286] forward listener for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: got a new connection openshift#7
I0227 08:12:51.709535   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#8, 2 open
I0227 08:12:52.615858   80029 portproxy.go:322] forward connection openshift#7 for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: remote side closed the stream
I0227 08:12:52.615989   80029 portproxy.go:340] forward connection openshift#7 for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: closing our side
W0227 08:12:52.616116   80029 server.go:669] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams failed to receive the preface from client: EOF"
I0227 08:13:21.709934   80029 portproxy.go:151] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: no connection: error creating error stream: Timeout occurred
I0227 08:13:21.709997   80029 portproxy.go:148] port forwarding for csi-mock-volumes-4037-2061/csi-mockplugin-0:9000: trying to create a new connection openshift#8, 1 open
Feb 27 08:13:30.916: FAIL: Failed to register CSIDriver csi-mock-csi-mock-volumes-4037
Unexpected error:
    <*errors.errorString | 0xc002666220>: {
        s: "error waiting for CSI driver csi-mock-csi-mock-volumes-4037 registration on node kind-worker2: timed out waiting for the condition",
    }
    error waiting for CSI driver csi-mock-csi-mock-volumes-4037 registration on node kind-worker2: timed out waiting for the condition
occurred
vrutkovs pushed a commit to vrutkovs/kubernetes that referenced this pull request Mar 11, 2023
 This is the commit message for patch openshift#2 (refresh-temp):
atiratree pushed a commit to atiratree/kubernetes that referenced this pull request Oct 30, 2023
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>

fix (openshift#2)

Signed-off-by: Monis Khan <mok@microsoft.com>
ardaguclu pushed a commit to ardaguclu/kubernetes that referenced this pull request Oct 3, 2024
ardaguclu pushed a commit to ardaguclu/kubernetes that referenced this pull request May 7, 2025
[Attempt openshift#2] apiserver: Treat error decoding a mutating webhook patch as error calling the webhook
ardaguclu pushed a commit to ardaguclu/kubernetes that referenced this pull request Oct 2, 2025
Instead of creating a new test case, the permutation is passed down. This
enables adding the event numbers to the log output, which is useful to
understand better which output belongs to which input:

    === RUN   TestListPatchedResourceSlices/update-patch/2_3_0_1
    tracker.go:396: I0929 14:28:40.032318] event openshift#1: ResourceSlice add slice="s1"
    tracker.go:581: I0929 14:28:40.032404] event openshift#1: syncing ResourceSlice resourceslice="s1"
    tracker.go:659: I0929 14:28:40.032446] event openshift#1: ResourceSlice synced resourceslice="s1" change="add"
    tracker.go:396: I0929 14:28:40.032502] event openshift#2: ResourceSlice add slice="s2"
    tracker.go:581: I0929 14:28:40.032536] event openshift#2: syncing ResourceSlice resourceslice="s2"
    tracker.go:659: I0929 14:28:40.032568] event openshift#2: ResourceSlice synced resourceslice="s2" change="add"
    tracker.go:463: I0929 14:28:40.032609] event #0/#0: DeviceTaintRule add patch="rule"
    tracker.go:581: I0929 14:28:40.032639] event #0/#0: syncing ResourceSlice resourceslice="s1"
    tracker.go:703: I0929 14:28:40.032675] event #0/#0: processing DeviceTaintRule resourceslice="s1" deviceTaintRule="rule"
    tracker.go:807: I0929 14:28:40.032712] event #0/#0: applying matching DeviceTaintRule resourceslice="s1" deviceTaintRule="rule" device="driver1.example.com/pool-1/device-1"
    tracker.go:868: I0929 14:28:40.032780] event #0/#0: Assigned new taint ID, no matching taint resourceslice="s1" deviceTaintRule="rule" device="driver1.example.com/pool-1/device-1" taintID=0 taint="example.com/taint=tainted:NoExecute"
    tracker.go:654: I0929 14:28:40.033023] event #0/#0: ResourceSlice synced resourceslice="s1" change="update" diff=<
        	@@ -23,7 +23,32 @@
        	     "BindingConditions": null,
        	     "BindingFailureConditions": null,
        	     "AllowMultipleAllocations": null,
        	-    "Taints": null
        	+    "Taints": [
        	+     {
        	+      "Rule": {
        	+       "metadata": {
        	+        "name": "rule"
        	+       },
        	+       "spec": {
        	+        "deviceSelector": {
        	+         "pool": "pool-1"
        	+        },
        	+        "taint": {
        	+         "key": "example.com/taint",
        	+         "value": "tainted",
        	+         "effect": "NoExecute",
        	+         "timeAdded": "2006-01-02T15:04:05Z"
        	+        }
        	+       },
        	+       "status": {}
        	+      },
        	+      "ID": 1,
        	+      "key": "example.com/taint",
        	+      "value": "tainted",
        	+      "effect": "NoExecute",
        	+      "timeAdded": "2006-01-02T15:04:05Z"
        	+     }
        	+    ]
        	    }
        	   ],
        	   "Taints": null,
         >
    tracker.go:482: I0929 14:28:40.033224] event #0/openshift#1: DeviceTaintRule update patch="rule" diff=<
        	@@ -4,7 +4,7 @@
        	  },
        	  "spec": {
        	   "deviceSelector": {
        	-   "pool": "pool-1"
        	+   "pool": "pool-2"
        	   },
        	   "taint": {
        	    "key": "example.com/taint",
         >
    tracker.go:581: I0929 14:28:40.033285] event #0/openshift#1: syncing ResourceSlice resourceslice="s1"
    tracker.go:703: I0929 14:28:40.033319] event #0/openshift#1: processing DeviceTaintRule resourceslice="s1" deviceTaintRule="rule"
    tracker.go:654: I0929 14:28:40.033478] event #0/openshift#1: ResourceSlice synced resourceslice="s1" change="update" diff=<
        	@@ -23,32 +23,7 @@
        	     "BindingConditions": null,
        	     "BindingFailureConditions": null,
        	     "AllowMultipleAllocations": null,
        	-    "Taints": [
        	-     {
        	-      "Rule": {
        	-       "metadata": {
        	-        "name": "rule"
        	-       },
        	-       "spec": {
        	-        "deviceSelector": {
        	-         "pool": "pool-1"
        	-        },
        	-        "taint": {
        	-         "key": "example.com/taint",
        	-         "value": "tainted",
        	-         "effect": "NoExecute",
        	-         "timeAdded": "2006-01-02T15:04:05Z"
        	-        }
        	-       },
        	-       "status": {}
        	-      },
        	-      "ID": 1,
        	-      "key": "example.com/taint",
        	-      "value": "tainted",
        	-      "effect": "NoExecute",
        	-      "timeAdded": "2006-01-02T15:04:05Z"
        	-     }
        	-    ]
        	+    "Taints": null
        	    }
        	   ],
        	   "Taints": null,
         >
    tracker.go:581: I0929 14:28:40.033601] event #0/openshift#1: syncing ResourceSlice resourceslice="s2"
    tracker.go:703: I0929 14:28:40.033633] event #0/openshift#1: processing DeviceTaintRule resourceslice="s2" deviceTaintRule="rule"
    ...

Disabling event checking only worked when actually running all sub-tests. When
selectively running only one permutation with -run, the boolean variable was
wrong:

    $ go test -run='.*/^update-patch$' ./staging/src/k8s.io/dynamic-resource-allocation/resourceslice/tracker/
    ok  	k8s.io/dynamic-resource-allocation/resourceslice/tracker

    $ go test -run='.*/^update-patch$/3_2_0_1' ./staging/src/k8s.io/dynamic-resource-allocation/resourceslice/tracker/
    --- FAIL: TestListPatchedResourceSlices (0.01s)
        --- FAIL: TestListPatchedResourceSlices/update-patch (0.00s)
            --- FAIL: TestListPatchedResourceSlices/update-patch/3_2_0_1 (0.00s)

                tracker_test.go:762:
                     	Error Trace:	/nvme/gopath/src/k8s.io/kubernetes/staging/src/k8s.io/dynamic-resource-allocation/resourceslice/tracker/tracker_test.go:762
                     	            				/nvme/gopath/src/k8s.io/kubernetes/staging/src/k8s.io/dynamic-resource-allocation/resourceslice/tracker/tracker_test.go:856
                    	Error:      	Not equal:
                    	            	expected: []tracker.handlerEvent{tracker.handlerEvent{event:"add", oldObj:(*api.ResourceSlice)(nil), newObj:(*api.ResourceSlice)(0xc000301d40)}, tracker.handlerEvent{event:"add", oldObj:(*api.ResourceSlice)(nil), newObj:(*api.ResourceSlice)(0xc000346000)}}
                    	            	actual  : []tracker.handlerEvent{tracker.handlerEvent{event:"add", oldObj:(*api.ResourceSlice)(nil), newObj:(*api.ResourceSlice)(0xc0001f9ba0)}, tracker.handlerEvent{event:"add", oldObj:(*api.ResourceSlice)(nil), newObj:(*api.ResourceSlice)(0xc000301d40)}, tracker.handlerEvent{event:"update", oldObj:(*api.ResourceSlice)(0xc000301d40), newObj:(*api.ResourceSlice)(0xc0003dba00)}, tracker.handlerEvent{event:"update", oldObj:(*api.ResourceSlice)(0xc0003dba00), newObj:(*api.ResourceSlice)(0xc000301d40)}, tracker.handlerEvent{event:"update", oldObj:(*api.ResourceSlice)(0xc0001f9ba0), newObj:(*api.ResourceSlice)(0xc0003dbba0)}}

Now permutations are detected automatically based on the indices.

While at it, documentation gets moved around a bit to make reading test cases
easier without going to the implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants