1. 30 Nov, 2016 25 commits
    • Alexander Kanevskiy's avatar
      Fallback to known good stable version in case of network errors. · 6338b7fd
      Alexander Kanevskiy authored
      Hardcoded known stable version will be returned if user
      didn't request specific version and kubeadm for some reason
      not able to fetch latest stable information from release servers.
      
      For now, fallback version is v1.4.6
      6338b7fd
    • Alexander Kanevskiy's avatar
      39f55cb4
    • Alexander Kanevskiy's avatar
      Implement support for symbolic labels in --use-kubernetes-version · 78e28923
      Alexander Kanevskiy authored
      Now, defaults can be pointing to "stable" and users will always get
      latest available stable build of Kubernetes via kubeadm.
      There is no need anymore to hardcode version string inside kubeadm
      binary.
      
      It is also possible to use labels like "latest" or point to exact
      branch: "stable-1.4"
      78e28923
    • Kubernetes Submit Queue's avatar
      Merge pull request #37353 from nikhiljindal/serviceDelete · d51f07b6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Stop deleting underlying services when federation service is deleted
      
      Fixes https://github.com/kubernetes/kubernetes/issues/36799
      
      Fixing federation service controller to not delete services from underlying clusters when federated service is deleted.
      None of the federation controller should do this unless explicitly asked by the user using DeleteOptions. This is the only federation controller that does that.
      
      cc @kubernetes/sig-cluster-federation @madhusudancs
      
      ```release-note
      federation service controller: stop deleting services from underlying clusters when federated service is deleted.
      ```
      d51f07b6
    • Filip Grzadkowski's avatar
      Merge pull request #37675 from mwielgus/fix_kubectl_e2e · cf25ac26
      Filip Grzadkowski authored
      Fix kubectl call in autoscaling e2e test
      cf25ac26
    • Kubernetes Submit Queue's avatar
      Merge pull request #37431 from liggitt/namespace-leftovers · b01e6f68
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      hold namespaces briefly before processing deletion
      
      possible fix for #36891
      
      in HA scenarios (either HA apiserver or HA etcd), it is possible for deletion of resources from namespace cleanup to race with creation of objects in the terminating namespace
      
      HA master timeline:
      1. "delete namespace n" API call goes to apiserver 1, deletion timestamp is set in etcd
      2. namespace controller observes namespace deletion, starts cleaning up resources, lists deployments
      3. "create deployment d" API call goes to apiserver 2, gets persisted to etcd
      4. apiserver 2 observes namespace deletion, stops allowing new objects to be created
      5. namespace controller finishes deleting listed deployments, deletes namespace
      
      HA etcd timeline:
      1. "create deployment d" API call goes to apiserver, gets persisted to etcd
      2. "delete namespace n" API call goes to apiserver, deletion timestamp is set in etcd
      3. namespace controller observes namespace deletion, starts cleaning up resources, lists deployments
      4. list call goes to non-leader etcd member that hasn't observed the new deployment or the deleted namespace yet
      5. namespace controller finishes deleting the listed deployments, deletes namespace
      
      In both cases, simply waiting to clean up the namespace (either for etcd members to observe objects created at the last second in the namespace, or for other apiservers to observe the namespace move to terminating phase and disallow additional creations) resolves the issue
      
      Possible other fixes:
      * do a second sweep of objects before deleting the namespace
      * have the namespace controller check for and clean up objects in namespaces that no longer exist
      * ...?
      b01e6f68
    • Kubernetes Submit Queue's avatar
      Merge pull request #36915 from jayunit100/kubelet_fail_local_up · 09bb1561
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      [local-up-cluster] fail fast if kubelet start failed
      
      Fixes #36832
      09bb1561
    • Kubernetes Submit Queue's avatar
      Merge pull request #36726 from xilabao/fix-get-podsecuritypolicy · 3c618a81
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fix kubectl get psp
      
      old result:
      ```shell
      ./cluster/kubectl.sh --token=/system:masters get psp
      NAME         PRIV      CAPS      VOLUMEPLUGINS   SELINUX    RUNASUSER
      privileged   true      []        RunAsAny        RunAsAny   RunAsAny   RunAsAny   false     [*]
      restricted   false     []        RunAsAny        RunAsAny   RunAsAny   RunAsAny   false     [*]
      ```
      
      new result:
      ```shell
      ./cluster/kubectl.sh --token=/system:masters get psp
      NAME         PRIV      CAPS      SELINUX    RUNASUSER   FSGROUP    SUPGROUP   READONLYROOTFS   VOLUMES
      privileged   true      []        RunAsAny   RunAsAny    RunAsAny   RunAsAny   false            [*]
      restricted   false     []        RunAsAny   RunAsAny    RunAsAny   RunAsAny   false            [*]
      ```
      
      test.yaml
      ```
      apiVersion: extensions/v1beta1
      kind: PodSecurityPolicy
      metadata:
        name: privileged
      spec:
        fsGroup:
          rule: RunAsAny
        privileged: true
        runAsUser:
          rule: RunAsAny
        seLinux:
          rule: RunAsAny
        supplementalGroups:
          rule: RunAsAny
        volumes:
        - '*'
      ---
      apiVersion: extensions/v1beta1
      kind: PodSecurityPolicy
      metadata:
        name: restricted
      spec:
        fsGroup:
          rule: RunAsAny
        runAsUser:
          rule: RunAsAny
        seLinux:
          rule: RunAsAny
        supplementalGroups:
          rule: RunAsAny
        volumes:
        - '*'
      ```
      3c618a81
    • Kubernetes Submit Queue's avatar
      Merge pull request #37604 from ymqytw/fix_issues_with_drain · 6b465788
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      make drain retry forever and use a new graceful period
      
      Implemented the 1st approach according to https://github.com/kubernetes/kubernetes/issues/37460#issuecomment-263437516
      1) Make drain retry forever if the error is always Too Many Requests (429) generated by Pod Disruption Budget.
      2) Use a new graceful period per #37460
      3) Update the message printed out when successfully deleting or evicting a pod.
      
      fixes #37460
      
      cc: @davidopp @erictune
      6b465788
    • Marcin Wielgus's avatar
      Fix kubectl call in autoscaling e2e test · b8e7d089
      Marcin Wielgus authored
      b8e7d089
    • Kubernetes Submit Queue's avatar
      Merge pull request #37006 from jayunit100/skip_dont_fail · 50fb2845
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Skip rather than fail networking tests on single node
      
      **What this PR does / why we need it**:
      
      Needed for the general e2e tidying we need to do for flakey slow tests, imo pre 1.5, see #31402  and so on.
      
      **Which issue this PR fixes** * 
      
      Dont fail multinode tests if on a single node cluster, skip instead.
      50fb2845
    • Kubernetes Submit Queue's avatar
      Merge pull request #37535 from yarntime/fix_typo_in_volume_manager · ef079a31
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fix typo in volume_manager
      
      fix typo in volume_manager.
      ef079a31
    • Kubernetes Submit Queue's avatar
      Merge pull request #37230 from hongchaodeng/km · b229ceee
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubemark: add KUBEMARK_NUM_NODES and KUBEMARK_MASTER_SIZE config
      
      A lot of test infra scripts are using these two parameters and repeatedly set NUM_NODES and MASTER_SIZE before running kubemark. When we try to use those scripts, we need to manually set these again and again.
      
      It would come handy if kubemark config could take these into account and reduce duplication.
      b229ceee
    • Kubernetes Submit Queue's avatar
      Merge pull request #37280 from gmarek/scheduler · 74dd2656
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Minor scheduler cleanup
      74dd2656
    • Kubernetes Submit Queue's avatar
      Merge pull request #37287 from bryk/release-v1.5.0-beta1 · 73fa0c8e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Set Dashboard UI version to v1.5.0-beta1
      
      There will be one more such PR coming for 1.5 release. In one week.
      
      Setting release note to none. Will set notes for final version PR. 
      
      Github release info:
      https://github.com/kubernetes/dashboard/releases/tag/v1.5.0-beta1
      73fa0c8e
    • gmarek's avatar
      Minor scheduler cleanup · cd2cceb3
      gmarek authored
      cd2cceb3
    • Kubernetes Submit Queue's avatar
      Merge pull request #37583 from mtaufen/test-fr-ssh-issue · 320b3047
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix nil pointer dereference in test framework
      
      Checking the `result.Code` prior to `err` in the if statement causes a panic if result is `nil`. It turns out the formatting of the error is already in `IssueSSHCommandWithResult`, so removing redundant code is enough to fix the issue. Logging the SSH result was also redundant, so I removed that as well.
      320b3047
    • Kubernetes Submit Queue's avatar
      Merge pull request #37392 from Random-Liu/final-cleanup-for-nct · 42d5a1a9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Node Conformance Test: Final cleanup for node conformance test.
      
      This PR fits node conformance test with recent change.
      * Remove `--manifest-path` because the test will get kubelet configuration through `/configz` now. https://github.com/kubernetes/kubernetes/pull/36919
      * Add `$TEST_ARGS` so that we can override arguments inside the container.
      * Fix a bug in garbage_collector_test.go which will cause the framework tries to connect docker no matter running the test or not. @dashpole 
      * Add `${REGISTRY}/node-test:${VERSION}` for convenience. 
      * Bump up the image version to `0.2`. (the one released with v1.4 is `v0.1`)
      
      I've run the test both with `run_test.sh` script and directly `docker run`. Both of them passed.
      
      After this gets merged, I'll build and push the new test image.
      
      @dchen1107 
      /cc @kubernetes/sig-node
      42d5a1a9
    • Kubernetes Submit Queue's avatar
      Merge pull request #33955 from dashpole/inode_exhaust_tests · 517c1c30
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Per-container inode accounting test
      
      Test spins up two pods: one pod uses all inodes, other pod acts normally. Test ensures correct pressure is encountered, inode-hog-pod is evicted, and the pod acting normally is not evicted. Test ensures conditions return to normal after the test.
      517c1c30
    • Kubernetes Submit Queue's avatar
      Merge pull request #37322 from xiang90/fix_36555 · d4947093
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      etcd: fix rollback
      
      fix #36555 
      
      tested manually. worked.
      
      /cc @mml @wojtek-t
      d4947093
    • Kubernetes Submit Queue's avatar
      Merge pull request #31617 from jsafrane/default-storage-class · 85ff5559
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Deploy a default StorageClass instance on AWS and GCE
      
      This needs a newer kubectl in kube-addons-manager container. It's quite tricky to test as I cannot push new container image to gcr.io and I must copy the newer container manually.
      
      cc @kubernetes/sig-storage
      
      **Release note**:
      ```release-note
      Kubernetes now installs a default StorageClass object when deployed on AWS, GCE and
      OpenStack with kube-up.sh scripts. This StorageClass will automatically provision
      a PeristentVolume in corresponding cloud for a PersistentVolumeClaim that cannot be
      satisfied by any existing matching PersistentVolume in Kubernetes.
      
      To override this default provisioning, administrators must manually delete this default StorageClass.
      ```
      85ff5559
    • Kubernetes Submit Queue's avatar
      Merge pull request #37640 from philips/add-owners-status-notes · c6aba202
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      docs: devel: Add some notes about OWNERS process
      
      docs: devel: point people at place for OWNERS status
      
      All of the tracking is happening here
      https://github.com/kubernetes/contrib/issues/1389 point people at it.
      
      docs: devel: describe the current state of adding approvers
      
      Document that we are currently holding off on adding new approvers until
      the reviewers process is in place. And set a target deadline.
      
      cc @calebamiles @bgrant0607 @apelisse
      c6aba202
    • Kubernetes Submit Queue's avatar
      Merge pull request #37606 from foxish/foxish-remove-google-cla · 33b3a0d8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Removing references to the Google CLA & adding FAQ link
      
      Previously reviewed at: https://github.com/kubernetes/kubernetes/pull/37028
      Closed the old one as it was a branch on the main repo making it difficult to squash.
      33b3a0d8
    • Kubernetes Submit Queue's avatar
      Merge pull request #37487 from wojtek-t/kubernetes_service · 985079a8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix TestServiceAlloc flakes
      
      Fix #37040
      985079a8
    • Kubernetes Submit Queue's avatar
      Merge pull request #37562 from roberthbailey/node-upgrade · 987cb799
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Use gsed on the mac.
      
      **What this PR does / why we need it**: Fixes node upgrades when run from a mac
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #37474
      
      **Special notes for your reviewer**:
      987cb799
  2. 29 Nov, 2016 15 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #36600 from MrHohn/e2e-dnsautoscaling-fix · ea576b7c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fixes dns autoscaling test flakes
      
      Fixes  #36457 and fixes #36569.
      
      #36457 is flake due to the 10 minutes timeout for scaling down cluster. Changes to use `scaleDownTimeout` from [test/e2e/cluster_size_autoscaling.go](https://github.com/kubernetes/kubernetes/blob/master/test/e2e/cluster_size_autoscaling.go), which is 15 minutes.
      
      The failure in #36569 is because we get the schedulable nodes number at the beginning of the test and assume it will not change unless we manually change the cluster size. But below logs indicate there may be nodes become ready after the test has begun. 
      
      ```
      [BeforeEach] [k8s.io] DNS horizontal autoscaling
        /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/dns_autoscaling.go:71
      Nov 10 00:36:26.951: INFO: Condition Ready of node jenkins-e2e-minion-group-x6w1 is false instead of true. Reason: KubeletNotReady, message: Kubenet does not have netConfig. This is most likely due to lack of PodCIDR
      STEP: Replace the dns autoscaling parameters with testing parameters
      Nov 10 00:36:26.961: INFO: DNS autoscaling ConfigMap updated.
      STEP: Wait for kube-dns scaled to expected number
      Nov 10 00:36:26.961: INFO: Waiting up to 5m0s for kube-dns reach 8 replicas
      ...
      Expected error:
            <*errors.errorString | 0xc420b17ef0>: {
                s: "err waiting for DNS replicas to satisfy 8, got 9: timed out waiting for the condition",
            }
            err waiting for DNS replicas to satisfy 8, got 9: timed out waiting for the condition
        not to have occurred
      ```
      
      This fix puts the logic of counting schedulable nodes into the polling loop. By doing so, the test will have the correct expected replicas count even if schedulable nodes change in between.
      
      @bowei @bprashanth
      
      ---
      
      Updates: all `ExpectNoError(err)` are changed to `Expect(err).NotTo(HaveOccurred())`
      ea576b7c
    • Kubernetes Submit Queue's avatar
      Merge pull request #37225 from thockin/no-bad-word-in-names · 356170fe
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Remove vowels from rand.String, to avoid 'bad words'
      
      As reported by users via email.
      
      @aronchick
      356170fe
    • ymqytw's avatar
      make drain retry forever and use new timeout · b358b2df
      ymqytw authored
      b358b2df
    • Kubernetes Submit Queue's avatar
      Merge pull request #37139 from MrHohn/addon-manager-6.0 · 223c167d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Bumps up Addon Manager to v6.0 with full support of kubectl apply
      
      Below images are built and pushed:
      - gcr.io/google-containers/kube-addon-manager:v6.0
      - gcr.io/google-containers/kube-addon-manager-amd64:v6.0
      - gcr.io/google-containers/kube-addon-manager-arm:v6.0
      - gcr.io/google-containers/kube-addon-manager-arm64:v6.0
      - gcr.io/google-containers/kube-addon-manager-ppc64le:v6.0
      
      The actual change made is upgrade kubectl version from `v1.5.0-alpha.1` to `v1.5.0-beta.1`, which is released today.
      
      @mikedanese 
      
      @saad-ali This need to get into 1.5 because Addon Manager v6.0-alpha.1 (currently in used) does not have full support of `kubectl apply --prune`.
      223c167d
    • Brandon Philips's avatar
      docs: devel: point people at place for OWNERS status · cf676f9c
      Brandon Philips authored
      All of the tracking is happening here https://github.com/kubernetes/contrib/issues/1389 point people at it.
      cf676f9c
    • Brandon Philips's avatar
      docs: devel: describe the current state of adding approvers · 0dbe7f25
      Brandon Philips authored
      Document that we are currently holding off on adding new approvers until
      the reviewers process is in place. And set a target deadline.
      0dbe7f25
    • Kubernetes Submit Queue's avatar
      Merge pull request #37195 from wojtek-t/fix_hanging_cacher · a2d5df40
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Better waiting for watch event delivery in cacher
      
      @lavalamp - I think we should do something simple for now (and merge for 1.5), and do something a bit more sophisticated right after 1.5, WDYT?
      a2d5df40
    • Kubernetes Submit Queue's avatar
      Merge pull request #37569 from caesarxuchao/fix-kubelet-map-race · e5b559ac
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix concurrent read/write to map error in kubelet
      
      Fix #37560.
      
      The concurrent read/write is to the pod annotations. The call in apiserver.go reads the annotations, and the config.go writes the annotations. I moved the reads to config.go to avoid the race.
      e5b559ac
    • Kubernetes Submit Queue's avatar
      Merge pull request #37624 from deads2k/test-01-text · 7d611fe3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      add wrapper to provide stderr on command errors
      
      The go standard library doesn't include stderr in the error message, but in many cases it is present: https://golang.org/src/os/exec/exec.go#L389 .  This adds a wrapper to display that information. I've added in it on spot where the kops test is having trouble.  If it works well, we can add it elsewhere. 
      
      @wojtek-t ptal
      7d611fe3
    • Kubernetes Submit Queue's avatar
      Merge pull request #37323 from nikhiljindal/firstClusterPR · 63161202
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fixing the logic to select first cluster in federated ingress controller
      
      Ref https://github.com/kubernetes/kubernetes/issues/36074.
      
      Before this change, ingress controller was using cluster with clusterIndex = 0 as the first cluster to create the ingress in.
      But the ordering of clusters can change and hence ingress controller ended up creating the ingress in multiple clusters.
      This PR fixes it by using an annotation on federated ingress. Controller now picks up a cluster randomly as the first cluster and creates ingress there. This clusters name is stored as an annotation on the federated ingress. Contoller does not create an ingress in any other cluster if this annotation is set on the federated ingress and IP has not been propagated. Once IP has been propagated, controller creates the ingress in all clusters.
      
      cc @kubernetes/sig-cluster-federation @madhusudancs
      63161202
    • Kubernetes Submit Queue's avatar
      Merge pull request #37379 from wojtek-t/safe_schedulercache · a894bde2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Try self-repair scheduler cache or panic
      
      Fix #37232
      a894bde2
    • Kubernetes Submit Queue's avatar
      Merge pull request #37091 from kargakis/doc-fix · 460619ec
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      extensions: fix api doc for maxUnavailable
      
      Fixes https://github.com/kubernetes/kubernetes/issues/37083
      
      @kubernetes/deployment
      460619ec
    • Kubernetes Submit Queue's avatar
      Merge pull request #37200 from lvjiangzhao/branch · 3e5de191
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix wrong comment in authn.go
      3e5de191
    • Kubernetes Submit Queue's avatar
      Merge pull request #36857 from Shrugs/fix/elasticsearch-template-mapping · d77610fc
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fix: elasticsearch template mapping to parse kubernetes.labels
      
      **What this PR does / why we need it**:
      
      This PR updates the field mappings for the elasticsearch template that ships with the EFK stack implementation.
      
      Specifically, elasticsearch cannot parse the `kubernetes.labels` object because it attempts to treat it as a string and produces an error. This update treats `kubernetes.labels` as an object and all of the properties within as a string, allowing accurate indexing and allowing users in kibana to search on `kubernetes.labels.*`.
      
      **Release note**:
      ```release-note
      Fluentd/Elastisearch add-on: correctly parse and index kubernetes labels
      ```
      d77610fc
    • Kubernetes Submit Queue's avatar
      Merge pull request #37301 from Random-Liu/fix-remote-node-e2e-focus · 00aae980
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Node E2E: Fix remote node e2e focus.
      
      Before, we use `'focus'` and `'skip'` in `hack/make-rules/test-e2e-node.sh`.
      
      When we run `make test-e2e-node REMOTE=true FOCUS="Some Thing"`, it will eventually be translated to `-focus='Some Thing'` [here](https://github.com/kubernetes/kubernetes/blob/master/test/e2e_node/remote/remote.go#L284-L285).
      
      However, golang `exec.Command` wraps each argument with single quote, the argument will become `'xx -focus='Some Thing' xx'`, and cause error because of the 2 layer single quote.
      00aae980