1. 03 Jun, 2016 23 commits
    • Alex Robinson's avatar
    • k8s-merge-robot's avatar
      Merge pull request #26773 from mwielgus/gke-autoscaling · 81c5cfc1
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Setup for cluster autoscaling tests in GKE
      
      cc: @piosz @jszczepkowski @fgrzadkowski 
      81c5cfc1
    • k8s-merge-robot's avatar
      Merge pull request #26745 from andyzheng0831/docker-reg · 8d57a441
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      GCI/Trusty: support the Docker registry mirror
      
      @roberthbailey @zmerlynn please review it.
      
      cc/ @fabioy @dchen1107 @kubernetes/goog-image FYI.
      
      cc/ @ojarjur it is very straightforward to add support for GCI, which is pretty much like the change to ContainerVM's configure-vm.sh in your original PR #25841.
      8d57a441
    • k8s-merge-robot's avatar
      Merge pull request #26737 from andyzheng0831/gci-path · 9023955b
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      GCI: correct the fix in #26363
      
      This PR is mainly for correcting the fix to 'find' command in #26363. I added "-maxdepth 1" in an earlier change, and #26363 tried to fix it by changing the search path. This is potentially incorrect, when yaml files are in more than one layer deep. The real fix should be removing the "-maxdepth 1" flag from 'find' command. This PR also updates two minor places in the file configure-helper.sh introduced by two previous PR #26413 and #26048.
      
      @roberthbailey @wonderfly 
      
      cc/ @dchen1107 @fabioy @kubernetes/goog-image 
      9023955b
    • Marcin Wielgus's avatar
      ab56306b
    • k8s-merge-robot's avatar
      Merge pull request #26734 from bprashanth/glbc_limits · 15c9ecb5
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Increase failure threshold for glbc liveness probe
      
      This pod fails a liveness probe on occasion, probably because the failure thresholds are too strict. Simple enough that either reviewer can review.
      15c9ecb5
    • k8s-merge-robot's avatar
      Merge pull request #26768 from wojtek-t/routecontroller_logs · 3157e87c
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Improve logging in routecontroller
      
      @zmerlynn 
      3157e87c
    • k8s-merge-robot's avatar
      Merge pull request #26733 from pmorie/pv-controller-typos · 59e008db
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Fix typo and linewrap comments in PV controller
      
      Fix some typos and linewrap long comments that I found while going over this code investigating something.
      59e008db
    • k8s-merge-robot's avatar
      Merge pull request #26677 from Random-Liu/add-image-pull-timeout · d93f80c8
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Add timeout for image pulling
      
      Fix #26300.
      
      With this PR, if image pulling makes no progress for *1 minute*, the operation will be cancelled. Docker reports progress for every 512kB block (See [here](https://github.com/docker/docker/blob/3d13fddd2bc4d679f0eaa68b0be877e5a816ad53/pkg/progress/progressreader.go#L32)), *512kB/min* means the throughput is *<= 8.5kB/s*, which should be kind of abnormal?
      
      It's a little hard to write unit test for this, so I just manually tested it. If I set the `defaultImagePullingStuckTimeout` to 0s, and `defaultImagePullingProgressReportInterval` to 1s, image pulling will be cancelled.
      ```
      E0601 18:48:29.026003   46185 kube_docker_client.go:274] Cancel pulling image "nginx:latest" because of no progress for 0, latest progress: "89732b811e7f: Pulling fs layer "
      E0601 18:48:29.026308   46185 manager.go:2110] container start failed: ErrImagePull: net/http: request canceled
      ```
      
      /cc @kubernetes/sig-node 
      [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
      d93f80c8
    • k8s-merge-robot's avatar
      Merge pull request #26629 from jsafrane/stabilize · 45aa24b6
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Stabilize persistent volume integration tests
      
      - add more logs
      - wait both for volume and claim to get bound
      
      When binding volumes to claims the controller saves PV first and PVC right
      after that. In theory, this saved PV could cause waitForPersistentVolumePhase
      to finish and PVC could be checked in the test before the controller saves it.
      So, wait for both PVC and PV to get bound and check the results only after
      that. This is only a theory, there are no usable logs in integration tests.
      
      Fixes #26499 (at least I hope so...)
      45aa24b6
    • Wojciech Tyczynski's avatar
      Improve logging in routecontroller · de1d35a6
      Wojciech Tyczynski authored
      de1d35a6
    • k8s-merge-robot's avatar
      Merge pull request #26582 from adityakali/ark.docker1.11 · 1ad3e11a
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      pin GCI version to milestone 52
      
      This is mainly for pinning the 1.2 branch to GCI milestone 52
      which contains correct docker and kubelet built in.
      Doing this allows us to upgrade docker to v1.11 (issue #26455)
      in GCI 53 without breaking the 1.2 release branch.
      
      @kubernetes/goog-image @dchen1107 @roberthbailey @andyzheng0831 
      1ad3e11a
    • k8s-merge-robot's avatar
      Merge pull request #26454 from thockin/licenses_again · 4adc00ec
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Don't allow deps with no discernible license
      
      This updates the few deps we had with no LICENSE file to current versions that do have that file.  It also disallows new deps without obvious licenses.
      4adc00ec
    • k8s-merge-robot's avatar
      Merge pull request #26529 from gitfred/deep-copy-svc · dbaf1802
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      DeepCopy Service instead of shallow copy #2049 
      
      fixes #2049
      dbaf1802
    • k8s-merge-robot's avatar
      Merge pull request #26351 from saad-ali/attachDetachControllerKubeletChanges · 75ef1ca2
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Attach/Detach Controller Kubelet Changes
      
      This PR contains changes to enable attach/detach controller proposed in #20262.
      
      Specifically it:
      * Introduces a new `enable-controller-attach-detach` kubelet flag to enable control by attach/detach controller. Default enabled.
      * Removes all references `SafeToDetach` annotation from controller.
      * Adds the new `VolumesInUse` field to the Node Status API object.
      * Modifies the controller to use `VolumesInUse` instead of `SafeToDetach` annotation to gate detachment.
      * Modifies kubelet to set `VolumesInUse` before Mount and after Unmount.
        * There is a bug in the `node-problem-detector` binary that causes `VolumesInUse` to get reset to nil every 30 seconds. Issue https://github.com/kubernetes/node-problem-detector/issues/9#issuecomment-221770924 opened to fix that.
        * There is a bug here in the mount/unmount code that prevents resetting `VolumeInUse in some cases, this will be fixed by mount/unmount refactor.
      * Have controller process detaches before attaches so that volumes referenced by pods that are rescheduled to a different node are detached first.
      * Fix misc bugs in controller.
      * Modify GCE attacher to: remove retries, remove mutex, and not fail if volume is already attached or already detached.
      
      Fixes #14642, #19953
      
      ```release-note
      Kubernetes v1.3 introduces a new Attach/Detach Controller. This controller manages attaching and detaching volumes on-behalf of nodes that have the "volumes.kubernetes.io/controller-managed-attach-detach" annotation.
      
      A kubelet flag, "enable-controller-attach-detach" (default true), controls whether a node sets the "controller-managed-attach-detach" or not.
      ```
      75ef1ca2
    • k8s-merge-robot's avatar
      Merge pull request #26553 from wojtek-t/test_path_prefix · c4874be3
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Test non-default etcdPrefixes.
      
      Fix #26489
      c4874be3
    • k8s-merge-robot's avatar
      Merge pull request #26518 from jsafrane/initial-sync · a41d8440
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Fill controller caches on startup
      
      The controller needs to fill its caches before it starts binding/recycling/ deleting or provisioning volumes and claims. This was done using blocking initial 'xxx added' from going through syncClaim/syncVolume. However, when the caches were full, the controller waited for the next sync period to do actual binding/recycling etc.
      
      In this patch, the controller fills its caches directly from etcd and then processes initial 'xxx added' events to reconcile the world and bind/recycle/ delete/provision stuff, resulting in faster binding after startup.
      
      Fixes #25967 (properly)
      a41d8440
    • k8s-merge-robot's avatar
      Merge pull request #26462 from mikedanese/fix-build-2 · 0e9d8091
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      fix go install ./pkg/...
      
      
      appearantly this package is not imported
      0e9d8091
    • k8s-merge-robot's avatar
      Merge pull request #26727 from janetkuo/deployment-list-once · dfb0d0eb
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      List RSes only once when getting old+new RSes in deployment controller
      
      Fixes #26204 #26509 
      
      [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
      dfb0d0eb
    • k8s-merge-robot's avatar
      Merge pull request #26741 from andyzheng0831/fix-trusty · 73d98166
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Trusty: fix 'find' commands and add k8s license and motd info
      
      This PR fixes several things which should be also cherry picked in release-1.2 branch:
      
      - Fix the 'find' command failure. See issue #26350 for the background;
      - Add k8s license file into /home/kubernetes and set /etc/motd info. We fixed this in cluster/gce/gci for 1.3 branch, but have not done it for 1.2 branch. This PR simply copies the code from the GCI support.
      
      Please note that the trusty code in master branch is under best-effort maintenance and we don't guarantee prompt fixes. But for 1.2 branch, we need to guarantee its correctness. I will test this in 1.2 branch.
      
      @roberthbailey and @zmerlynn please review it.
      
      cc/ @dchen1107 @fabioy @kubernetes/goog-image FYI.
      73d98166
    • k8s-merge-robot's avatar
      Merge pull request #26522 from xiangpengzhao/fix_noproxy · eb571245
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Export no_proxy if behind a proxy
      
      Fix #26261 
      eb571245
    • k8s-merge-robot's avatar
      Merge pull request #26226 from ArtfulCoder/reversedns · 693dae70
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Added DNS Reverse Record logic for service IPs
      
      693dae70
    • k8s-merge-robot's avatar
      Merge pull request #26528 from johscheuer/hack-update-api-docs · 0a2a7a9d
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Fixes #26526 - hack/update-api-reference-docs.sh
      
      I opened a Pull request to fix this issue https://github.com/kubernetes/kubernetes/issues/26526
      
      The problem is that the update script ignores white spaces but the verify script doesn't which leads to a strange behaviour -> you use the update script but the verify script tells you that the api docs are not up to date.
      0a2a7a9d
  2. 02 Jun, 2016 17 commits
    • Tim Hockin's avatar
      Fix call-sites after dep updates · 3c6ce53b
      Tim Hockin authored
      3c6ce53b
    • Tim Hockin's avatar
      Update deps without licenses · 372e904e
      Tim Hockin authored
      The following packes did not have discernible LICENSE files at the hash we have
      vendored:
        github.com/beorn7/perks
        github.com/daviddengcn/go-colortext
        github.com/garyburd/redigo
        github.com/prometheus/common
        github.com/shurcooL/sanitized_anchor_name
        github.com/stretchr/objx
      
      This commit updates all of them and updates the central LICENSE file.
      372e904e
    • Saad Ali's avatar
      Attach/Detach Controller Kubelet Changes · 9dbe9434
      Saad Ali authored
      This PR contains Kubelet changes to enable attach/detach controller control.
      * It introduces a new "enable-controller-attach-detach" kubelet flag to
        enable control by controller. Default enabled.
      * It removes all references "SafeToDetach" annoation from controller.
      * It adds the new VolumesInUse field to the Node Status API object.
      * It modifies the controller to use VolumesInUse instead of SafeToDetach
        annotation to gate detachment.
      * There is a bug in node-problem-detector that causes VolumesInUse to
        get reset every 30 seconds. Issue https://github.com/kubernetes/node-problem-detector/issues/9
        opened to fix that.
      9dbe9434
    • Tim Hockin's avatar
      Abort if we can't find a license · aae0c90d
      Tim Hockin authored
      aae0c90d
    • Tim Hockin's avatar
      Update license for go4.org · 392c5dc6
      Tim Hockin authored
      Add it as a special case package root and import the license file.  This was
      the only UNKNOWN license, prior to the change to not look at upstream repo
      state.
      392c5dc6
    • k8s-merge-robot's avatar
      Merge pull request #25851 from euank/fixJournaldUsage · 4c316979
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      rkt: Get logs via syslog identifier
      
      This change works around https://github.com/coreos/rkt/issues/2630
      Without this change, logs cannot reliably be collected for containers
      with short lifetimes.
      
      With this change, logs cannot be collected on rkt versions v1.6.0 and
      before.
      
      I'd like to also bump the required rkt version, but I don't want to do that until there's a released version that can be pointed to (so the next rkt release).
      
      I haven't added tests (which were missing) because this code will be removed if/when logs are retrieved via the API. I have run E2E tests with this merged in and verified the tests which previously failed no longer fail.
      
      cc @yifan-gu 
      4c316979
    • Andy Zheng's avatar
    • Andy Zheng's avatar
    • David McMahon's avatar
      Update CHANGELOG.md for v1.3.0-alpha.5. · 24ddec1c
      David McMahon authored
      24ddec1c
    • Prashanth Balasubramanian's avatar
      bd5467bb
    • Aditya Kali's avatar
      pin GCI version to milestone 52 · f7c26248
      Aditya Kali authored
      This is mainly for pinning the 1.2 branch to GCI milestone 52
      which contains correct docker and kubelet built in.
      Doing this allows us to upgrade docker to v1.11 (issue #26455)
      in GCI 53 without breaking the 1.2 release branch.
      f7c26248
    • k8s-merge-robot's avatar
      Merge pull request #26289 from derekwaynecarr/enable_accounting · c114f329
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Enable node e2e accounting on systemd
      
      Updated the e2e setup.sh script to enable cpu and memory accounting.
      
      Related to https://github.com/kubernetes/kubernetes/issues/26198
      
      /cc @pwittrock 
      c114f329
    • k8s-merge-robot's avatar
      Merge pull request #24808 from screeley44/gluster_errors · 0b7f8e5b
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      read gluster log to surface glusterfs plugin errors properly in describe events
      
      glusterfs.go does not properly expose errors as all mount errors go to a log file, I propose we read the log file to expose the errors without asking the users to 'go look at this log'
      
      This PR does the following:
      1.  adds a gluster option for log-level=ERROR to remove all noise from log file
      2.  change log file name and path based on PV + Pod name - so specific per PV and Pod
      3.  create a utility to read the last two lines of the log file when failure occurs
      
      old behavior:
      ```
        13s	13s	1	{kubelet 127.0.0.1}		Warning	FailedMount	Unable to mount volumes for pod "bb-gluster-pod2_default(34b18c6b-070d-11e6-8e95-52540092b5fb)": glusterfs: mount failed: Mount failed: exit status 1
      Mounting arguments: 192.168.234.147:myVol2 /var/lib/kubelet/pods/34b18c6b-070d-11e6-8e95-52540092b5fb/volumes/kubernetes.io~glusterfs/pv-gluster glusterfs [log-file=/var/lib/kubelet/plugins/kubernetes.io/glusterfs/pv-gluster/glusterfs.log]
      Output: Mount failed. Please check the log file for more details.
      ```
      
      improved behavior: (updated after suggestions from community)
      ```
        34m		34m		1	{kubelet 127.0.0.1}			Warning		FailedMount	Unable to mount volumes for pod "bb-multi-pod1_default(e7d7f790-0d4b-11e6-a275-52540092b5fb)": glusterfs: mount failed: Mount failed: exit status 1
      Mounting arguments: 192.168.123.222:myVol2 /var/lib/kubelet/pods/e7d7f790-0d4b-11e6-a275-52540092b5fb/volumes/kubernetes.io~glusterfs/pv-gluster2 glusterfs [log-level=ERROR log-file=/var/lib/kubelet/plugins/kubernetes.io/glusterfs/pv-gluster2/bb-multi-pod1-glusterfs.log]
      Output: Mount failed. Please check the log file for more details.
      
       the following error information was pulled from the log to help resolve this issue: 
      [2016-04-28 14:21:29.109697] E [socket.c:2332:socket_connect_finish] 0-glusterfs: connection to 192.168.123.222:24007 failed (Connection timed out)
      [2016-04-28 14:21:29.109767] E [glusterfsd-mgmt.c:1819:mgmt_rpc_notify] 0-glusterfsd-mgmt: failed to connect with remote-host: 192.168.123.222 (Transport endpoint is not connected)
      
      ```
      
      also this PR is alternate approach to :  #24624 
      
      0b7f8e5b
    • Paul Morie's avatar
      277c0a4e
    • Janet Kuo's avatar
    • k8s-merge-robot's avatar
      Merge pull request #26533 from gmarek/retries · b6a7be6f
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Add retries for make in start-kubemark
      
      Fix. #25872
      b6a7be6f
    • Random-Liu's avatar
      Add timeout for image pulling · 49c8683c
      Random-Liu authored
      49c8683c