1. 25 May, 2016 2 commits
  2. 24 May, 2016 31 commits
    • Mike Danese's avatar
      Merge pull request #26197 from wonderfly/update_default_master_image · 1ef19062
      Mike Danese authored
      Replace containervm with GCI as default master image for GCE clusters
      1ef19062
    • k8s-merge-robot's avatar
      Merge pull request #26192 from Random-Liu/fix-node-e2e-log-print · 107fedf6
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Fix node e2e log print
      
      Fix bad log print:
      ```
      W0524 18:20:41.679642    2069 container_list.go:56] Could not pre-pull image %s %v output:  %sgcr.io/google_containers/pause-amd64:3.0exit status 1 [69 114 114 111 114 32 114 101 115 112 111 110 115 101 32 102 114 111 109 32 100 97 101 109 111 110 58 32 71 101 116 32 104 116 116 112 115 58 47 47 103 99 114 46 105 111 47 118 50 47 103 111 111 103 108 101 95 99 111 110 116 97 105 110 101 114 115 47 112 97 117 115 101 45 97 109 100 54 52 47 109 97 110 105 102 101 115 116 115 47 51 46 48 58 32 71 101 116 32 104 116 116 112 115 58 47 47 103 99 114 46 105 111 47 118 50 47 116 111 107 101 110 63 115 99 111 112 101 61 114 101 112 111 115 105 116 111 114 121 37 51 65 103 111 111 103 108 101 95 99 111 110 116 97 105 110 101 114 115 37 50 70 112 97 117 115 101 45 97 109 100 54 52 37 51 65 112 117 108 108 38 115 101 114 118 105 99 101 61 103 99 114 46 105 111 58 32 110 101 116 47 104 116 116 112 58 32 114 101 113 117 101 115 116 32 99 97 110 99 101 108 101 100 32 119 104 105 108 101 32 119 97 105 116 105 110 103 32 102 111 114 32 99 111 110 110 101 99 116 105 111 110 32 40 67 108 105 101 110 116 46 84 105 109 101 111 117 116 32 101 120 99 101 101 100 101 100 32 119 104 105 108 101 32 97 119 97 105 116 105 110 103 32 104 101 97 100 101 114 115 41 10]
      ```
      
      /cc @pwittrock 
      
      [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
      107fedf6
    • Daniel Wang's avatar
    • k8s-merge-robot's avatar
      Merge pull request #26196 from nikhiljindal/renameFedAPIServer · f5b5d2bc
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Renaming federated-apiserver to federation-apiserver
      
      Its not a "federated" apiserver. Its an apiserver for federation.
      
      The corresponding controller manager is also called federation-controller-manager.
      
      If we are going to rename, it should be done in 1.3 before people write scripts referencing the binary name.
      f5b5d2bc
    • k8s-merge-robot's avatar
      Merge pull request #26100 from rootfs/fix-pd · db74335f
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      in e2e test, when kubectl exec fails to find the container to run a command, it should retry
      
      fix #26076 
      Without retrying upon "container not found" error, `Pod Disks` test failed on the following error:
      ```console
      [k8s.io] Pod Disks 
        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]
        /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:271
      [BeforeEach] [k8s.io] Pod Disks
        /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:108
      STEP: Creating a kubernetes client
      May 23 19:18:02.254: INFO: >>> TestContext.KubeConfig: /root/.kube/config
      
      STEP: Building a namespace api object
      STEP: Waiting for a default service account to be provisioned in namespace
      [BeforeEach] [k8s.io] Pod Disks
        /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:69
      [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]
        /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:271
      STEP: creating PD1
      May 23 19:18:06.678: INFO: Successfully created a new PD: "rootfs-e2e-11dd5f5b-211b-11e6-a3ff-b8ca3a62792c".
      STEP: creating PD2
      May 23 19:18:11.216: INFO: Successfully created a new PD: "rootfs-e2e-141f062d-211b-11e6-a3ff-b8ca3a62792c".
      May 23 19:18:11.216: INFO: PD Read/Writer Iteration #0
      STEP: submitting host0Pod to kubernetes
      W0523 19:18:11.279910    4984 request.go:347] Field selector: v1 - pods - metadata.name - pd-test-16d3653c-211b-11e6-a3ff-b8ca3a62792c: need to check if this is versioned correctly.
      STEP: writing a file in the container
      May 23 19:18:39.088: INFO: Running '/srv/dev/kubernetes/_output/dockerized/bin/linux/amd64/kubectl kubectl --server=https://130.211.199.187 --kubeconfig=/root/.kube/config exec --namespace=e2e-tests-pod-disks-3t3g8 pd-test-16d3653c-211b-11e6-a3ff-b8ca3a62792c -c=mycontainer -- /bin/sh -c echo '1394466581702052925' > '/testpd1/tracker0''
      May 23 19:18:40.250: INFO: Wrote value: "1394466581702052925" to PD1 ("rootfs-e2e-11dd5f5b-211b-11e6-a3ff-b8ca3a62792c") from pod "pd-test-16d3653c-211b-11e6-a3ff-b8ca3a62792c" container "mycontainer"
      STEP: writing a file in the container
      May 23 19:18:40.251: INFO: Running '/srv/dev/kubernetes/_output/dockerized/bin/linux/amd64/kubectl kubectl --server=https://130.211.199.187 --kubeconfig=/root/.kube/config exec --namespace=e2e-tests-pod-disks-3t3g8 pd-test-16d3653c-211b-11e6-a3ff-b8ca3a62792c -c=mycontainer -- /bin/sh -c echo '1740704063962701662' > '/testpd2/tracker0''
      May 23 19:18:41.433: INFO: Wrote value: "1740704063962701662" to PD2 ("rootfs-e2e-141f062d-211b-11e6-a3ff-b8ca3a62792c") from pod "pd-test-16d3653c-211b-11e6-a3ff-b8ca3a62792c" container "mycontainer"
      STEP: reading a file in the container
      May 23 19:18:41.433: INFO: Running '/srv/dev/kubernetes/_output/dockerized/bin/linux/amd64/kubectl kubectl --server=https://130.211.199.187 --kubeconfig=/root/.kube/config exec --namespace=e2e-tests-pod-disks-3t3g8 pd-test-16d3653c-211b-11e6-a3ff-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker0'
      May 23 19:18:42.585: INFO: Read file "/testpd1/tracker0" with content: 1394466581702052925
      
      STEP: reading a file in the container
      May 23 19:18:42.585: INFO: Running '/srv/dev/kubernetes/_output/dockerized/bin/linux/amd64/kubectl kubectl --server=https://130.211.199.187 --kubeconfig=/root/.kube/config exec --namespace=e2e-tests-pod-disks-3t3g8 pd-test-16d3653c-211b-11e6-a3ff-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker0'
      May 23 19:18:43.779: INFO: Read file "/testpd2/tracker0" with content: 1740704063962701662
      
      STEP: deleting host0Pod
      May 23 19:18:44.048: INFO: PD Read/Writer Iteration #1
      STEP: submitting host0Pod to kubernetes
      W0523 19:18:44.132475    4984 request.go:347] Field selector: v1 - pods - metadata.name - pd-test-16d3653c-211b-11e6-a3ff-b8ca3a62792c: need to check if this is versioned correctly.
      STEP: reading a file in the container
      May 23 19:18:45.186: INFO: Running '/srv/dev/kubernetes/_output/dockerized/bin/linux/amd64/kubectl kubectl --server=https://130.211.199.187 --kubeconfig=/root/.kube/config exec --namespace=e2e-tests-pod-disks-3t3g8 pd-test-16d3653c-211b-11e6-a3ff-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker0'
      May 23 19:18:46.290: INFO: error running kubectl exec to read file: exit status 1
      stdout=
      stderr=error: error executing remote command: error executing command in container: container not found ("mycontainer")
      )
      May 23 19:18:46.290: INFO: Error reading file: exit status 1
      May 23 19:18:46.290: INFO: Unexpected error occurred: exit status 1
      ```
      Now I've run this fix on e2e pd test 5 times and no longer see any failure
      db74335f
    • k8s-merge-robot's avatar
      Merge pull request #20672 from brendandburns/dump · 50524c78
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Add a 'kubectl clusterinfo dump' option
      
      Ref: #3500 
      
      @bgrant0607 @smarterclayton @jszczepkowski 
      
      Usage:
      ```
        # Dump current cluster state to stdout
        kubectl clusterinfo dump
        
        # Dump current cluster state to /tmp
        kubectl clusterinfo dump --output-directory=/tmp
        
        # Dump all namespaces to stdout
        kubectl clusterinfo dump --all-namespaces
        
        # Dump a set of namespaces to /tmp
        kubectl clusterinfo dump --namespaces default,kube-system --output-directory=/tmp
      ```
      
      <!-- Reviewable:start -->
      ---
      This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/20672)
      <!-- Reviewable:end -->
      50524c78
    • Mike Danese's avatar
      Merge pull request #26122 from yujuhong/no_timeout · 73508972
      Mike Danese authored
      docker: don't set timeout for image pulling requests
      73508972
    • Zach Loafman's avatar
      Merge pull request #26195 from Q-Lee/addon-resizer · 6e4f494a
      Zach Loafman authored
      Don't try executing bash variable in assignment.
      6e4f494a
    • Quintin Lee's avatar
      3ca4c36e
    • nikhiljindal's avatar
      991eb753
    • Mike Danese's avatar
      Merge pull request #26105 from mhrgoog/godeps_skip_example · caa2e171
      Mike Danese authored
      Removing unreferenced code in github/com/emicklei
      caa2e171
    • Random-Liu's avatar
      Fix node e2e log print · 22e4df74
      Random-Liu authored
      22e4df74
    • Wojciech Tyczynski's avatar
      Merge pull request #26170 from wojtek-t/log_requests_to_gce · 7ad337a2
      Wojciech Tyczynski authored
      Log requests to GCE
      7ad337a2
    • Wojciech Tyczynski's avatar
      Log requests to GCE · 55fdc1c0
      Wojciech Tyczynski authored
      55fdc1c0
    • k8s-merge-robot's avatar
      Merge pull request #25787 from liggitt/update-admission · 5303794e
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      plumb Update resthandler to allow old/new comparisons in admission
      
      Rework how updated objects are passed to rest storage Update methods (first pass at https://github.com/kubernetes/kubernetes/pull/23928#discussion_r61444342)
      
      * allows centralizing precondition checks (uid and resourceVersion)
      * allows admission to have the old and new objects on patch/update operations (sets us up for field level authorization, differential quota updates, etc)
      * allows patch operations to avoid double-GETting the object to apply the patch
      
      Overview of important changes:
      * pkg/api/rest/rest.go
        * changes `rest.Update` interface to give rest storage an `UpdatedObjectInfo` interface instead of the object directly. To get the updated object, the storage must call `UpdatedObject()`, passing in the current object
      * pkg/api/rest/update.go
        * provides a default `UpdatedObjectInfo` impl
        * passes a copy of the updated object through any provided transforming functions and returns it when asked
        * builds UID preconditions from the updated object if they can be extracted
      * pkg/apiserver/resthandler.go
        * Reworks update and patch operations to give old objects to admission
      * pkg/registry/generic/registry/store.go
        * Calls `UpdatedObject()` inside `GuaranteedUpdate` so it can provide the old object
      
      Todo:
      - [x] Update rest.Update interface:
        * Given the name of the object being updated
        * To get the updated object data, the rest storage must pass the current object (fetched using the name) to an `UpdatedObject(ctx, oldObject) (newObject, error)` func. This is typically done inside a `GuaranteedUpdate` call.
      - [x] Add old object to admission attributes interface
      - [x] Update resthandler Update to move admission into the UpdatedObject() call
      - [x] Update resthandler Patch to move the patch application and admission into the UpdatedObject() call
      - [x] Add resttest tests to make sure oldObj is correctly passed to UpdatedObject(), and errors propagate back up
      
      Follow-up:
      * populate oldObject in admission for delete operations?
      * update quota plugin to use `GetOldObject()` in admission attributes
      * admission plugin to gate ownerReference modification on delete permission
      * Decide how to handle preconditions (does that belong in the storage layer or in the resthander layer?)
      5303794e
    • k8s-merge-robot's avatar
      Merge pull request #26071 from gmarek/kube-up · 04d6162e
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Make node-instance-group base names unique to prevent collisions
      
      We create multiple IGMs for >1000 Node clusters. When we have a conflict on base name IGMs will fight over ownership of the VM that happen to have the name belonging to multiple IGMs.
      
      This change will increase reliability of starting big clusters.
      
      cc @wojtek-t @alex-mohr @roberthbailey @mikedanese 
      04d6162e
    • Huamin Chen's avatar
    • Wojciech Tyczynski's avatar
      Merge pull request #26159 from wojtek-t/fix_gci · 01e79b88
      Wojciech Tyczynski authored
      Fix GCI after #26109 breakage
      01e79b88
    • Wojciech Tyczynski's avatar
      Fix GCI after #26109 breakage · e515da45
      Wojciech Tyczynski authored
      e515da45
    • Filip Grzadkowski's avatar
      Merge pull request #26069 from fgrzadkowski/unschedulable_pod · 1ab5fc43
      Filip Grzadkowski authored
      Refactor scheduler to expose predicates to cluster autoscaler
      1ab5fc43
    • Wojciech Tyczynski's avatar
      Merge pull request #26146 from wojtek-t/avoid_dumb_logs · 31610387
      Wojciech Tyczynski authored
      Avoid dumping all information in large clusters
      31610387
    • Wojciech Tyczynski's avatar
      bd920de4
    • Wojciech Tyczynski's avatar
      Merge pull request #26140 from zmerlynn/rate-limit-everything · e58788be
      Wojciech Tyczynski authored
      GCE provider: Rate limit all API calls
      e58788be
    • Filip Grzadkowski's avatar
    • k8s-merge-robot's avatar
      Merge pull request #26115 from janetkuo/edit-pod-flake · ac3b3158
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Add pre-condition before editing pod in test-cmd.sh
      
      Ref #25925
      
      [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
      ac3b3158
    • Zach Loafman's avatar
      GCE provider: Rate limit all API calls · 9b5cdfb7
      Zach Loafman authored
      Instead of just rate limits to operation polling, send all API calls
      through a rate limited RoundTripper.
      
      This isn't a perfect solution, since the QPS is obviously getting
      split between different controllers, etc., but it's also spread across
      different APIs, which, in practice, rate limit differently.
      
      Fixes #26119 (hopefully)
      9b5cdfb7
    • Wojciech Tyczynski's avatar
      Merge pull request #26109 from Q-Lee/addon-resizer · 307767ec
      Wojciech Tyczynski authored
      Fixing heapster memory requirements.
      307767ec
    • k8s-merge-robot's avatar
      Merge pull request #19872 from nagarjung/kube_tarball · a68fc248
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Add kubernetes.tar.gz to .gitignore
      
      This patch avoids adding kubernetes.tar.gz to git staging as it gets downloaded during get-kube.sh script.
      a68fc248
    • k8s-merge-robot's avatar
      Merge pull request #25990 from caesarxuchao/remove-configmap-ex · 2dbda8c7
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      remove ConfigMap example from GC proposal
      
      We need more thoughts on the design. Remove it to avoid causing confusion.
      
      @derekwaynecarr  @lavalamp 
      2dbda8c7
    • Jordan Liggitt's avatar
      Change rest storage Update interface to retrieve updated object · 29252acd
      Jordan Liggitt authored
      Add OldObject to admission attributes
      
      Update resthandler Patch/Update admission plumbing
      29252acd
    • Mike Danese's avatar
      Merge pull request #26089 from spxtr/flakyflaky · 1e97583f
      Mike Danese authored
      Move PD tests to flaky suite.
      1e97583f
  3. 23 May, 2016 7 commits