- 21 Mar, 2017 6 commits
-
-
Jordan Liggitt authored
-
Jordan Liggitt authored
-
Jordan Liggitt authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Unify test timeouts under a common name. Some timeouts were too aggressive and since we've slowly been moving every controller to 5 minutes, consolidate everyone under ``federatedDefaultTestTimeout``. To aid in debugging some service-related issues, if a service cannot be deleted, we issue a kubectl describe on it prior to failing.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Use uid in config.go instead of pod full name. For https://github.com/kubernetes/kubernetes/issues/43397. In config.go, use pod uid in pod cache. Previously, if we update the static pod, even though a new UID is generated in file.go, config.go will only reference the pod with pod full name, and never update the pod UID in the internal cache. This causes: 1) If we change container spec, kubelet will restart the corresponding container because the container hash is changed. 2) If we change pod spec, kubelet will do nothing. With this fix, kubelet will always restart pod whenever pod spec (including container spec) is changed. @yujuhong @bowei @dchen1107 /cc @kubernetes/sig-node-bugs
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Use Semantic.DeepEqual to compare DaemonSet template on updates Switch to `Semantic.DeepEqual` when comparing templates on DaemonSet updates, since we can't distinguish between `null` and `[]` in protobuf. This avoids unnecessary DaemonSet pods restarts. I didn't touch `reflect.DeepEqual` used in controller because it's close to release date, and the DeepEqual in the controller doesn't cause serious issues (except for maybe causing more enqueues than needed). Fixes #43218 @liggitt @kargakis @lukaszo @kubernetes/sig-apps-pr-reviews
-
- 20 Mar, 2017 22 commits
-
-
Random-Liu authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 42452, 43399) Fix faulty assumptions in summary API testing **What this PR does / why we need it**: 1. on systemd, launch kubelet in dedicated part of cgroup hierarchy 1. bump allowable memory usage for busy box containers as my own local testing often showed values > 1mb which were valid per the memory limit settings we impose 1. there is a logic flaw today in how we report node.memory.stats that needs to be fixed in follow-on. for the last issue, we look at `/sys/fs/cgroup/memory.stat[rss]` value which if you have global accounting enabled on systemd machines (as expected) will report 0 because nothing runs local to the root cgroup. we really want to be showing the total_rss value for non-leaf cgroups so we get the full hierarchy of usage.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 42452, 43399) Modify getInstanceByName to avoid calling getInstancesByNames This PR modify getInstanceByname to loop through all management zones directly instead of calling getInstancesByNames. Currently getInstancesByNames use a node name prefix as a filter to list the instances. If the prefix does not match, it will return all instances which is very wasteful since getInstanceByName only query one instance with a specific name. Partially fix issue #42445
-
Christian Bell authored
-
Janet Kuo authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43398, 43368) CRI: add support for dns cluster first policy **What this PR does / why we need it**: PR #29378 introduces ClusterFirstWithHostNet policy but only dockertools was updated to support the feature. This PR updates kuberuntime to support it for all runtimes. **Which issue this PR fixes** fixes #43352 **Special notes for your reviewer**: Candidate for v1.6. **Release note**: ```release-note NONE ``` cc @thockin @luxas @vefimova @Random-Liu
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Deflake TestSyncDeploymentDeletionRace **What this PR does / why we need it**: The cache was sometimes catching up while we were testing the case where the cache is not yet caught up. Before this fix, I could reproduce the failure with the following command. After the fix, it passes. ``` go test -count 100000 -run TestSyncDeploymentDeletionRace ``` I checked the other controllers, and they all were already not starting informers for the deletion race test. I also checked that the deletion race tests for other controllers all pass with `-count 100000`. **Which issue this PR fixes**: Fixes #43390 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 42659, 43370) dockershim: process protocol correctly for port mapping **What this PR does / why we need it**: dockershim: process protocol correctly for port mapping. **Which issue this PR fixes** Fixes #43365. **Special notes for your reviewer**: Should be included in v1.6. **Release note**: ```release-note NONE ``` cc/ @Random-Liu @justinsb @kubernetes/sig-node-pr-reviews
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 42659, 43370) RC/RS: Fixes for ControllerRef. **What this PR does / why we need it**: This fixes some issues with RC/RS ControllerRef handling that were brought up in reviews for other controller types, after #41984 was merged. See the individual commit messages for details. **Which issue this PR fixes**: **Special notes for your reviewer**: **Release note**: ```release-note ```
-
Derek Carr authored
-
Anthony Yeh authored
The cache was sometimes catching up while we were testing the case where the cache is not yet caught up. Before this fix, I could reproduce the failure with the following command. After the fix, it passes. ``` go test -count 100000 -run TestSyncDeploymentDeletionRace ```
-
Anthony Yeh authored
-
Anthony Yeh authored
Otherwise, we may confuse a former controller by that name with a new one that has the same name.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Loosen requirements of cluster logging e2e tests, make them more stable There should be an e2e test for cloud logging in the main test suite, because this is the important part of functionality and it can be broken by different components. However, existing cluster logging e2e tests were too strict for the current solution, which may loose some log entries, which results in flakes. There's no way to fix this problem in 1.6, so this PR makes basic cluster logging e2e tests less strict.
-
Pengfei Ni authored
PR #29378 introduces ClusterFirstWithHostNet, but docker doesn't support setting dns options togather with hostnetwork. This commit rewrites resolv.conf same as dockertools.
-
Pengfei Ni authored
PR #29378 introduces ClusterFirstWithHostNet policy but only dockertools was updated to support the feature. This PR updates kuberuntime to support it for all runtimes. Also fixes #43352.
-
Pengfei Ni authored
-
Pengfei Ni authored
-
Pengfei Ni authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue GC: Fix re-adoption race when orphaning dependents. **What this PR does / why we need it**: The GC expects that once it sees a controller with a non-nil DeletionTimestamp, that controller will not attempt any adoption. There was a known race condition that could cause a controller to re-adopt something orphaned by the GC, because the controller is using a cached value of its own spec from before DeletionTimestamp was set. This fixes that race by doing an uncached quorum read of the controller spec just before the first adoption attempt. It's important that this read occurs after listing potential orphans. Note that this uncached read is skipped if no adoptions are attempted (i.e. at steady state). **Which issue this PR fixes**: Fixes #42639 **Special notes for your reviewer**: **Release note**: ```release-note ``` cc @kubernetes/sig-apps-pr-reviews
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue [Federation] Fix deletion logic in service controller This is a regression from 1.5 exposed by cascading deletions. In order to apply updates, the service controller locks access to a cached service and spawns go routines without waiting for them. When updates and deletions arrive in quick succession, previous goroutines remain active and race with the deletion logic. Coupled with this, the service_helper was not re-evaluating the value of the DeletionTimestamp. Without this patch, federation will sometimes leak resources at destruction time about half the time. In e2e land, about 4-5 test runs cause service tests to eat up all global fwd-ing rules and in turn, every subsequent ingress test will fail until we manually clean up leaked resources. No possibility to go green in fed e2e until this is merged.
-
Christian Bell authored
This is a regression from 1.5 exposed by cascading deltions. In order to apply updates, the service controller locks access to a cached service and spawns go routines without waiting for them. When updates and deletions arrive in quick succession, previous goroutines remain active and race with the deletion logic. Coupled with this, the service_helper was not re-evaluating the value of the DeletionTimestamp. Without this patch, federation will sometimes leak resources at destruction time.
-
- 19 Mar, 2017 5 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43355, 42827) [Federation] Rewrite ReplicaSet CRUD and Preferences tests. I think `should create replicasets and rebalance them` test is still flaky. I still don't know the source of this flakiness. I will continue hunting. But it is a lot less flaky than before (or perhaps it even never passed before?). This PR could be merged now and flake hunting can happen in parallel. ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43355, 42827) kubeadm: In-cluster DNS should be used when self-hosting **What this PR does / why we need it**: I noticed that the master components doesn't use the built-in cluster DNS which they really should do in order to be able to discover other services inside the cluster (like extension API Servers like service catalog). This is a really small change that fixes a misconfiguration that had slipped though earlier. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ``` @jbeda @bowei @MrHohn
-
Lucas Käldström authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue kubeadm: Default to v1.6.0 stable in offline scenarios in beforehand **What this PR does / why we need it**: In offline scenarios, kubeadm will fallback to the latest well-known version. This PR bumps that to v1.6. We can merge now, and in the small gap between the merge of this PR and the actual v1.6 release, kubeadm devs will have to explicitely set k8s version. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ``` @jbeda
-
Madhusudan.C.S authored
-
- 18 Mar, 2017 7 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue [Federation][e2e] Provide less strict timeouts on destruction paths The CI tests show that some timeouts are too strict. This PR harmonizes some of the "ForeverWaitTimeouts" in one place. The goal is to reduce the e2e flakiness.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Export KUBE_VERSION for consumption by get-kube-binaries.sh /assign @ixdy https://github.com/kubernetes/kubernetes/pull/43331 will not have any effect until we update get-kube.sh to export KUBE_VERSION
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fix federated config map unit tests Fixes #41419 and #42847 and possibly other issues in this area. cc: @nikhiljindal @csbell @perotinus
-
Christian Bell authored
-
Erick Fejta authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43331, 43336) Mark failing PersistentVolumes:GCEPD tests flaky Move failing `PersistentVolumes:GCEPD` tests to flaky, Fixes https://github.com/kubernetes/kubernetes/issues/43200. PR https://github.com/kubernetes/kubernetes/pull/40609 incorrectly removed the flaky tag. PR https://github.com/kubernetes/kubernetes/pull/40924 re-added the flaky tag, but did not get all the tests. This PR marks these as flaky as well: ``` [k8s.io] PersistentVolumes [Volume][Serial] [k8s.io] PersistentVolumes:GCEPD should test that deleting a PVC before the pod does not cause pod deletion to fail on PD detach [k8s.io] PersistentVolumes [Volume][Serial] [k8s.io] PersistentVolumes:GCEPD should test that deleting the Namespace of a PVC and Pod causes the successful detach of Persistent Disk [k8s.io] PersistentVolumes [Volume][Serial] [k8s.io] PersistentVolumes:GCEPD should test that deleting the PV before the pod does not cause pod deletion to fail on PD detach ``` CC @copejon @jeffvance @kubernetes/sig-storage-pr-reviews
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43331, 43336) Do not override KUBERNETES_RELEASE if already set /assign @ixdy If the user calls `get-kube.sh` with `KUBERNETES_RELEASE` and `KUBERNETES_RELEASE_URL` already set, continue to use these values.
-