This job view page is being replaced by Spyglass soon. Check out the new job view.
PRFedosin: Allow to define exec credential plugin config options from kubectl
ResultFAILURE
Tests 1 failed / 795 succeeded
Started2019-02-11 11:36
Elapsed7m15s
Revision
Buildergke-prow-containerd-pool-99179761-cnsm
Refs master:d820b502
73230:1111c7fc
pod2454e4cf-2df1-11e9-ae2d-0a580a6c0714
infra-commit0e19c7061
pod2454e4cf-2df1-11e9-ae2d-0a580a6c0714
repok8s.io/kubernetes
repo-commitfd634f82e2e07091291a32249a40757688762465
repos{u'k8s.io/kubernetes': u'master:d820b5024e8d074ceda1982e63d185f7db38844d,73230:1111c7fcfdb2b5459368934dc0f44f52dc51b2a7'}

Test Failures


//pkg/kubectl/cmd/config:go_default_test 0.00s

bazel test //pkg/kubectl/cmd/config:go_default_test
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //pkg/kubectl/cmd/config:go_default_test
-----------------------------------------------------------------------------
Sets a user entry in kubeconfig 

Specifying a name that already exists will merge new fields on top of existing values. 

  Client-certificate flags:
  --client-certificate=certfile --client-key=keyfile
  
  Bearer token flags:
    --token=bearer_token
  
  Basic auth flags:
    --username=basic_user --password=basic_password
  
Bearer token and basic auth are mutually exclusive.

Usage:
  config set-credentials NAME [--client-certificate=path/to/certfile] [--client-key=path/to/keyfile] [--token=bearer_token] [--username=basic_user] [--password=basic_password] [--auth-provider=provider_name] [--auth-provider-arg=key=value] [--exec-command=exec_command] [--exec-api-version=exec_api_version] [--exec-arg=arg] [--exec-arg-remove=arg] [--exec-env=key=value]

Examples:
  # Set only the "client-key" field on the "cluster-admin"
  # entry, without touching other values:
  kubectl config set-credentials cluster-admin --client-key=~/.kube/admin.key
  
  # Set basic auth for the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --username=admin --password=uXFGweU9l35qcif
  
  # Embed client certificate data in the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --client-certificate=~/.kube/admin.crt --embed-certs=true
  
  # Enable the Google Compute Platform auth provider for the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --auth-provider=gcp
  
  # Enable the OpenID Connect auth provider for the "cluster-admin" entry with additional args
  kubectl config set-credentials cluster-admin --auth-provider=oidc --auth-provider-arg=client-id=foo --auth-provider-arg=client-secret=bar
  
  # Remove the "client-secret" config value for the OpenID Connect auth provider for the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --auth-provider=oidc --auth-provider-arg=client-secret-
  
  # Enable new exec auth plugin for the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --exec-command=/path/to/the/executable
  
  # Specify an exec API version other than the default for the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --exec-command=/path/to/the/executable --exec-api-version=client.authentication.k8s.io/v1
  
  # Enable new exec auth plugin for the "cluster-admin" entry with additional args
  kubectl config set-credentials cluster-admin --exec-command=/path/to/the/executable --exec-arg=arg1 --exec-arg=arg2
  
  # Remove the "arg-to-remove" argument for the exec plugin for the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --exec-command=/path/to/the/executable --exec-arg-remove=arg-to-remove
  
  # Enable new exec auth plugin for the "cluster-admin" entry with additional environment variables
  kubectl config set-credentials cluster-admin --exec-command=/path/to/the/executable --exec-env=key1=val1 --exec-env=key2=val2
  
  # Remove the "env-to-remove" environment variable for the exec plugin for the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --exec-command=/path/to/the/executable --exec-env=env-to-remove-

Flags:
      --auth-provider string          Auth provider for the user entry in kubeconfig
      --auth-provider-arg strings     'key=value' arguments for the auth provider
      --client-certificate string     Path to client-certificate file for the user entry in kubeconfig
      --client-key string             Path to client-key file for the user entry in kubeconfig
      --embed-certs tristate[=true]   Embed client cert/key for the user entry in kubeconfig
      --exec-api-version string       API version of the exec credential plugin for the user entry in kubeconfig. Defaults to client.authentication.k8s.io/v1beta1
      --exec-arg strings              new arguments for the exec credential plugin command for the user entry in kubeconfig
      --exec-arg-remove strings       arguments to remove from the exec credential plugin command for the user entry in kubeconfig
      --exec-command string           Command for the exec credential plugin for the user entry in kubeconfig
      --exec-env stringArray          'key=value' environment values for the exec credential plugin
  -h, --help                          help for set-credentials
      --password string               password for the user entry in kubeconfig
      --token string                  token for the user entry in kubeconfig
      --username string               username for the user entry in kubeconfig

Global Flags:
      --context string      The name of the kubeconfig context to use
      --kubeconfig string   use a particular kubeconfig file
error: Error: trying to get stringSlice value of flag of type stringArray

				from junit_bazel.xml

Filter through log files | View test history on testgrid


Show 795 Passed Tests

Error lines from build-log.txt

... skipping 122 lines ...
W0211 11:38:24.804] [481 / 1,989] GoStdlib external/io_bazel_rules_go/linux_amd64_race_stripped/stdlib%/pkg; 5s remote-cache ... (5 actions, 3 running)
W0211 11:38:30.182] [2,249 / 7,369] 3 / 796 tests; GoStdlib external/io_bazel_rules_go/linux_amd64_race_stripped/stdlib%/pkg; 10s remote-cache ... (3 actions, 2 running)
W0211 11:38:36.331] [3,419 / 7,822] 3 / 796 tests; GoCompile vendor/github.com/vmware/govmomi/vim25/types/linux_amd64_race_stripped/go_default_library%/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/vim25/types.a; 0s remote-cache ... (8 actions, 7 running)
W0211 11:38:41.060] INFO: From  <rule context for //pkg/generated/openapi:zz_generated.openapi>:
W0211 11:38:41.060] 2019/02/08 15:02:52 Code for OpenAPI definitions generated
W0211 11:38:43.402] [4,134 / 7,838] 3 / 796 tests; GoCompile staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/v1/linux_amd64_race_stripped/go_default_library%/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/apis/testapigroup/v1.a; 0s remote-cache ... (7 actions, 6 running)
W0211 11:38:49.704] WARNING: Error reading from the remote cache:
W0211 11:38:49.704] Exhausted retry attempts (0)
W0211 11:38:51.635] [4,601 / 7,873] 3 / 796 tests; GoLink pkg/api/persistentvolumeclaim/linux_amd64_race_stripped/go_default_test; 1s linux-sandbox ... (8 actions, 7 running)
W0211 11:39:01.086] [4,949 / 7,904] 3 / 796 tests; GoLink pkg/proxy/userspace/linux_amd64_race_stripped/go_default_test; 1s remote-cache ... (8 actions, 7 running)
W0211 11:39:11.873] [5,342 / 7,939] 3 / 796 tests; GoCompile pkg/registry/certificates/certificates/linux_amd64_race_stripped/go_default_test%/k8s.io/kubernetes/pkg/registry/certificates/certificates.a; 0s remote-cache ... (7 actions, 6 running)
W0211 11:39:24.300] [5,743 / 7,959] 3 / 796 tests; GoLink pkg/kubectl/cmd/auth/linux_amd64_race_stripped/go_default_test; 0s remote-cache ... (8 actions, 7 running)
W0211 11:39:38.559] [5,947 / 7,983] 3 / 796 tests; GoLink pkg/kubectl/cmd/config/linux_amd64_race_stripped/go_default_test; 1s linux-sandbox ... (8 actions, 7 running)
W0211 11:39:55.112] [6,218 / 8,007] 3 / 796 tests; GoLink pkg/controller/deployment/linux_amd64_race_stripped/go_default_test; 0s remote-cache ... (8 actions, 7 running)
W0211 11:40:14.202] [6,522 / 8,042] 3 / 796 tests; GoCompile pkg/controller/volume/expand/linux_amd64_race_stripped/go_default_library%/k8s.io/kubernetes/pkg/controller/volume/expand.a; 1s remote-cache ... (8 actions, 7 running)
W0211 11:40:36.149] [6,834 / 8,081] 3 / 796 tests; GoLink cmd/kube-apiserver/app/options/linux_amd64_race_stripped/go_default_test; 1s remote-cache ... (8 actions, 7 running)
W0211 11:41:01.184] [8,080 / 8,218] 327 / 796 tests; GoCompile staging/src/k8s.io/client-go/informers/apps/v1beta2/linux_amd64_stripped/go_default_library%/k8s.io/kubernetes/vendor/k8s.io/client-go/informers/apps/v1beta2.a; 0s remote-cache ... (8 actions, 7 running)
W0211 11:41:29.979] [9,017 / 9,040] 461 / 796 tests; GoLink pkg/controller/endpoint/linux_amd64_race_stripped/go_default_test; 2s remote-cache ... (8 actions, 7 running)
W0211 11:42:03.089] [10,045 / 10,060] 654 / 796 tests; Testing //hack:verify-boilerplate; 30s linux-sandbox ... (8 actions running)
W0211 11:42:35.782] FAIL: //pkg/kubectl/cmd/config:go_default_test (see /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test_attempts/attempt_1.log)
W0211 11:42:41.172] [10,656 / 10,663] 792 / 796 tests; Testing //hack:verify-boilerplate; 68s linux-sandbox ... (4 actions running)
W0211 11:42:54.400] FAIL: //pkg/kubectl/cmd/config:go_default_test (see /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test_attempts/attempt_2.log)
W0211 11:42:54.877] 
W0211 11:42:54.878] FAILED: //pkg/kubectl/cmd/config:go_default_test (Summary)
W0211 11:42:54.878]       /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test_attempts/attempt_1.log
W0211 11:42:54.878]       /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test_attempts/attempt_2.log
W0211 11:42:54.878]       /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test.log
W0211 11:42:54.879] FAIL: //pkg/kubectl/cmd/config:go_default_test (see /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test.log)
W0211 11:42:54.879] INFO: From Testing //pkg/kubectl/cmd/config:go_default_test:
I0211 11:42:54.979] ==================== Test output for //pkg/kubectl/cmd/config:go_default_test:
I0211 11:42:54.980] Sets a user entry in kubeconfig 
I0211 11:42:54.980] 
I0211 11:42:54.980] Specifying a name that already exists will merge new fields on top of existing values. 
I0211 11:42:54.980] 
... skipping 65 lines ...
I0211 11:42:54.988]       --token string                  token for the user entry in kubeconfig
I0211 11:42:54.988]       --username string               username for the user entry in kubeconfig
I0211 11:42:54.988] 
I0211 11:42:54.988] Global Flags:
I0211 11:42:54.989]       --context string      The name of the kubeconfig context to use
I0211 11:42:54.989]       --kubeconfig string   use a particular kubeconfig file
I0211 11:42:54.989] error: Error: trying to get stringSlice value of flag of type stringArray
I0211 11:42:54.989] ================================================================================
I0211 11:42:54.989] ==================== Test output for //pkg/kubectl/cmd/config:go_default_test:
I0211 11:42:54.989] Sets a user entry in kubeconfig 
I0211 11:42:54.989] 
I0211 11:42:54.989] Specifying a name that already exists will merge new fields on top of existing values. 
I0211 11:42:54.989] 
... skipping 65 lines ...
I0211 11:42:54.997]       --token string                  token for the user entry in kubeconfig
I0211 11:42:54.997]       --username string               username for the user entry in kubeconfig
I0211 11:42:54.997] 
I0211 11:42:54.997] Global Flags:
I0211 11:42:54.998]       --context string      The name of the kubeconfig context to use
I0211 11:42:54.998]       --kubeconfig string   use a particular kubeconfig file
I0211 11:42:54.998] error: Error: trying to get stringSlice value of flag of type stringArray
I0211 11:42:54.998] ================================================================================
I0211 11:42:54.998] ==================== Test output for //pkg/kubectl/cmd/config:go_default_test:
I0211 11:42:54.998] Sets a user entry in kubeconfig 
I0211 11:42:54.998] 
I0211 11:42:54.998] Specifying a name that already exists will merge new fields on top of existing values. 
I0211 11:42:54.998] 
... skipping 65 lines ...
I0211 11:42:55.006]       --token string                  token for the user entry in kubeconfig
I0211 11:42:55.006]       --username string               username for the user entry in kubeconfig
I0211 11:42:55.006] 
I0211 11:42:55.006] Global Flags:
I0211 11:42:55.006]       --context string      The name of the kubeconfig context to use
I0211 11:42:55.006]       --kubeconfig string   use a particular kubeconfig file
I0211 11:42:55.007] error: Error: trying to get stringSlice value of flag of type stringArray
I0211 11:42:55.007] ================================================================================
W0211 11:43:05.227] INFO: Elapsed time: 315.991s, Critical Path: 103.95s
W0211 11:43:05.227] INFO: 9018 processes: 9003 remote cache hit, 15 linux-sandbox.
W0211 11:43:05.227] INFO: Build completed, 1 test FAILED, 10665 total actions
I0211 11:43:05.328] //cluster:clientbin_test                                        (cached) PASSED in 0.1s
I0211 11:43:05.328] //cluster:common_test                                           (cached) PASSED in 0.0s
I0211 11:43:05.329] //cluster:kube-util_test                                        (cached) PASSED in 0.0s
I0211 11:43:05.329] //cluster/gce/cos:go_default_test                               (cached) PASSED in 0.0s
I0211 11:43:05.329] //cluster/gce/custom:go_default_test                            (cached) PASSED in 0.0s
I0211 11:43:05.329] //cluster/gce/gci:go_default_test                               (cached) PASSED in 0.0s
... skipping 783 lines ...
I0211 11:43:05.498] //third_party/forked/etcd237/pkg/fileutil:go_default_test       (cached) PASSED in 0.0s
I0211 11:43:05.498] //third_party/forked/golang/expansion:go_default_test           (cached) PASSED in 0.0s
I0211 11:43:05.499] //third_party/forked/golang/reflect:go_default_test             (cached) PASSED in 0.0s
I0211 11:43:05.499] //third_party/forked/gonum/graph/simple:go_default_test         (cached) PASSED in 0.0s
I0211 11:43:05.499] //hack:verify-boilerplate                                                PASSED in 75.4s
I0211 11:43:05.499] //pkg/kubectl/cmd:go_default_test                                        PASSED in 3.1s
I0211 11:43:05.499] //pkg/kubectl/cmd/config:go_default_test                                 FAILED in 3 out of 3 in 33.6s
I0211 11:43:05.500]   Stats over 3 runs: max = 33.6s, min = 0.5s, avg = 17.8s, dev = 13.6s
I0211 11:43:05.500]   /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test_attempts/attempt_1.log
I0211 11:43:05.500]   /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test_attempts/attempt_2.log
I0211 11:43:05.501]   /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test.log
I0211 11:43:05.501] 
I0211 11:43:05.501] Executed 3 out of 796 tests: 795 tests pass and 1 fails locally.
I0211 11:43:05.501] There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.
W0211 11:43:05.602] INFO: Build completed, 1 test FAILED, 10665 total actions
W0211 11:43:05.602] Run: ('/workspace/./test-infra/jenkins/../scenarios/../hack/coalesce.py',)
I0211 11:43:06.180] Build passed, tests failed or timed out
E0211 11:43:06.186] Command failed
I0211 11:43:06.187] process 523 exited with code 3 after 5.9m
E0211 11:43:06.187] FAIL: pull-kubernetes-bazel-test
I0211 11:43:06.187] Call:  gcloud auth activate-service-account --key-file=/etc/service-account/service-account.json
W0211 11:43:10.308] Activated service account credentials for: [pr-kubekins@kubernetes-jenkins-pull.iam.gserviceaccount.com]
I0211 11:43:10.368] process 2814 exited with code 0 after 0.1m
I0211 11:43:10.368] Call:  gcloud config get-value account
I0211 11:43:10.763] process 2828 exited with code 0 after 0.0m
I0211 11:43:10.763] Will upload results to gs://kubernetes-jenkins/pr-logs using pr-kubekins@kubernetes-jenkins-pull.iam.gserviceaccount.com
I0211 11:43:10.763] Upload result and artifacts...
I0211 11:43:10.764] Gubernator results at https://gubernator.k8s.io/build/kubernetes-jenkins/pr-logs/pull/73230/pull-kubernetes-bazel-test/75407
I0211 11:43:10.764] Call:  gsutil ls gs://kubernetes-jenkins/pr-logs/pull/73230/pull-kubernetes-bazel-test/75407/artifacts
W0211 11:43:17.260] CommandException: One or more URLs matched no objects.
E0211 11:43:17.443] Command failed
I0211 11:43:17.444] process 2840 exited with code 1 after 0.1m
W0211 11:43:17.444] Remote dir gs://kubernetes-jenkins/pr-logs/pull/73230/pull-kubernetes-bazel-test/75407/artifacts not exist yet
I0211 11:43:17.444] Call:  gsutil -m -q -o GSUtil:use_magicfile=True cp -r -c -z log,txt,xml /workspace/_artifacts gs://kubernetes-jenkins/pr-logs/pull/73230/pull-kubernetes-bazel-test/75407/artifacts
I0211 11:43:20.169] process 2982 exited with code 0 after 0.0m
W0211 11:43:20.169] metadata path /workspace/_artifacts/metadata.json does not exist
W0211 11:43:20.170] metadata not found or invalid, init with empty metadata
... skipping 23 lines ...