Commit Graph

35226 Commits

Author SHA1 Message Date
Kubernetes Submit Queue
0764aa0b68 Merge pull request #32140 from deads2k/restmapper-02-match-partial-groups
Automatic merge from submit-queue

add group prefix matching for kubectl usage

Adds prefix matching for groups so that `kubectl get storageclass.storage` matches `storageclass.storage.k8s.io`.

@kubernetes/kubectl
2016-09-09 23:43:53 -07:00
Kubernetes Submit Queue
87526da3d9 Merge pull request #32198 from deads2k/storage-01-make-easier-to-inspect
Automatic merge from submit-queue

add logging for enabled/disabled API Groups

Adds logging to the apiserver to indicate which API groups are enabled and disabled as go through.  This will make it easier to identify what's gone wrong in cases where the API server is down during diagnoses and the config is inaccessible, like in GKE tests.  For example https://github.com/kubernetes/kubernetes/issues/32185#issuecomment-245255700 .

@wojtek-t This may have made the problem more obvious.
2016-09-09 23:05:07 -07:00
Kubernetes Submit Queue
8b5317bf87 Merge pull request #32141 from deads2k/client-01-fix-swagger
Automatic merge from submit-queue

make swaggerschema agnostic about which version to use

`Factory.SwaggerSchema` was reliant on having a non-generated client bits filled in so that it could get the adapted client it wanted.  There's no need since discovery ignores configured GroupVersions.  This eliminates the unneeded dependency.
2016-09-09 22:27:52 -07:00
Kubernetes Submit Queue
56242964ca Merge pull request #32148 from yifan-gu/hostnetwork_mount
Automatic merge from submit-queue

rkt: Refactor host file mounts for host network.

Do not mount /etc/hosts/ /etc/resolv.conf if they are already mounted.

Ref https://github.com/coreos/rkt/issues/2430#issuecomment-244343576
2016-09-09 21:50:39 -07:00
Kubernetes Submit Queue
0afe04e85e Merge pull request #32354 from caesarxuchao/validate-adding-finalizers
Automatic merge from submit-queue

Add validation rule to prevent adding finalizers if the object is being deleted

To implement the behavior described in comments: https://github.com/kubernetes/kubernetes/blob/master/pkg/api/types.go#L149-L150

This purpose of this behavior is to disallow user manually changes from cascading deletion to orphaning after the deletion starts.

Fix #32339
2016-09-09 21:14:24 -07:00
Kubernetes Submit Queue
da4f0ca6f4 Merge pull request #24629 from david-mcmahon/release-deprecation
Automatic merge from submit-queue

Deprecate release infrastructure and doc - moved to kubernetes/release

Part 2 of https://github.com/kubernetes/release/pull/1
This PR finalizes the split between the main kubernetes repo and the release tooling now under kubernetes/release.

ref #16529
2016-09-09 19:15:12 -07:00
Kubernetes Submit Queue
09efe0457d Merge pull request #32163 from mtaufen/more-eviction-logging
Automatic merge from submit-queue

Log pressure condition, memory usage, events in memory eviction test

I want to log this to help us debug some of the latest memory eviction test flakes, where we are seeing burstable "fail" before the besteffort. I saw (in the logs) attempts by the eviction manager to evict besteffort a while before burstable phase changed to "Failed", but the besteffort's phase appeared to remain "Running". I want to see the pressure condition interleaved with the pod phases to get a sense of the eviction manager's knowledge vs. pod phase.
2016-09-09 18:37:55 -07:00
Kubernetes Submit Queue
a400a8b7f4 Merge pull request #32397 from luxas/etcd_fix_makefile
Automatic merge from submit-queue

Fix etcd2 cross-build in the Makefile

fixes https://github.com/kubernetes/kubernetes/issues/32328

Make it possible to compile both etcd2 and etcd3 in the Makefile and compile attachlease for multiple arches as well.

@lavalamp The etcd build-from-source semantics changed between etcd2 and etcd3.
I updated it to etcd3 in my last PR, and didn't think we were gonna build etcd2 more.
However, I've now fixed it to build for both versions.
Thanks!
2016-09-09 18:00:09 -07:00
Kubernetes Submit Queue
4d244ff169 Merge pull request #32404 from caesarxuchao/etcd-2.2.1
Automatic merge from submit-queue

Stick to 2.2.1 etcd

Fixes #32253. See https://github.com/kubernetes/kubernetes/issues/32253#issuecomment-245974746. We are sticking with etcd 2.2.1 until we have a recommended rollforward/rollback process for etcd.

See https://github.com/kubernetes/kubernetes/issues/32253#issuecomment-245735209 for etcd roadmap.

I guess I also need to build the image like https://github.com/kubernetes/kubernetes/issues/32253#issuecomment-245744295, and update build/build-image/cross/VERSION?

@lavalamp @timothysc
2016-09-09 18:00:04 -07:00
Kubernetes Submit Queue
8a8ebbbc60 Merge pull request #32424 from bprashanth/glbc_version
Automatic merge from submit-queue

Fix glbc name to match image version

Risk is low, we should get it into 1.4 to avoid confusion. Image is 0.7.1 (bumped in 1.3.6) so name and label should match.
2016-09-09 17:59:57 -07:00
David McMahon
4e07b43d70 Deprecate kubernetes/kubenetes release infrastructure and doc. 2016-09-09 17:51:20 -07:00
Chao Xu
7e92025cfd stick to 2.2.1 etcd 2016-09-09 16:35:05 -07:00
Kubernetes Submit Queue
57604d13cd Merge pull request #32420 from ixdy/e2e-teardown-on-up
Automatic merge from submit-queue

e2e: only tear down existing cluster if it exists

Jenkins won't actually test this change, since `e2e.go` is now sourced from `kubekins-e2e`. :(

Probably fixes https://github.com/kubernetes/test-infra/issues/539, once a new `kubekins-e2e` is pushed.

cc @maisem @davidopp
2016-09-09 16:15:31 -07:00
Kubernetes Submit Queue
e43f605759 Merge pull request #32413 from freehan/hostportfix
Automatic merge from submit-queue

Fix a bug in kubelet hostport logic which flushes KUBE-MARK-MASQ iptables chain

Fixes #32415
2016-09-09 16:15:26 -07:00
bprashanth
46dae270ef Fix glbc name to match image version 2016-09-09 16:00:20 -07:00
Kubernetes Submit Queue
f5077ff806 Merge pull request #31990 from girishkalele/esipp_portleaks
Automatic merge from submit-queue

Fix service health check node port leaks

Fixed #31757
2016-09-09 15:36:38 -07:00
Chao Xu
c5e1decc13 add validation rule to prevent adding finalizers if the object is being deleted 2016-09-09 15:29:08 -07:00
Jeff Grafton
af9a922d6e e2e: only tear down existing cluster if it exists 2016-09-09 15:26:47 -07:00
Kubernetes Submit Queue
a69752c81f Merge pull request #31944 from m1093782566/m109-master-fix-found
Automatic merge from submit-queue

[Pet Set] Clean up code

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->

**What this PR does / why we need it**:

Clean code of petset, from:

```
func (p *apiServerPetClient) getPVC(pvcName, pvcNamespace string) (*api.PersistentVolumeClaim, bool, error)
```

to:

```
func (p *apiServerPetClient) getPVC(pvcName, pvcNamespace string) (*api.PersistentVolumeClaim, error) 
```

I think the 2nd(bool type) return value of [getPVC](https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/petset/pet.go#L228) is unnecessary, as the caller can be responsible for checking the error type and tell if it exists via the [error type](https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/petset/pet.go#L231-L233).

So, I remove the 2nd return value of `getPVC()`.

The benefit of this change is that we can simplify the code of `getPVC()` while don't increase the caller's code.
2016-09-09 15:00:22 -07:00
Minhan Xia
118ebd57aa fix a bug in hostport where it flushes KUBE-MARK-MASQ chain 2016-09-09 14:39:47 -07:00
Kubernetes Submit Queue
9d06efb2d1 Merge pull request #31606 from wojtek-t/scheuler_map_reduce
Automatic merge from submit-queue

POC: MapReduce-like scheduler priority functions

Ref #24246
2016-09-09 14:24:05 -07:00
Kubernetes Submit Queue
7536eb2691 Merge pull request #32351 from caesarxuchao/fix-finalizer
Automatic merge from submit-queue

Make sure finalizers prevent deletion on storage that supports graceful deletion

Fixing bug:
Non-empty Finalizers fails to prevent a pod from being deleted, if deleteOptions.GracefulPeriod=0. See https://github.com/kubernetes/kubernetes/issues/32157#issuecomment-245778483

We didn't hit any issue with orphan finalizer because all our tests set finalizers on RC or RS, whose storage doesn't support graceful deletion.

cc @thockin @lavalamp
2016-09-09 13:47:47 -07:00
Michael Taufen
b9f0bd959e Log the following items in memory eviction test:
- memory working set
- pressure condition
- events for the default and test namespaces, after the test completes
2016-09-09 13:42:26 -07:00
Kubernetes Submit Queue
65f3fa9caf Merge pull request #31828 from girishkalele/esipp_toggle
Automatic merge from submit-queue

Service behaviour not correct when ESIPP annotation is toggled or deleted

Fixes #31649 

GCE controller: Correctly add/remove http health checks based on whether the annotation was added or removed

kube-proxy: Create/Delete XLB local-endpoints balancer chain and change jump actions from KUBE-FW- chain based on the annotation.
2016-09-09 13:09:59 -07:00
Kubernetes Submit Queue
e317af87cc Merge pull request #31819 from mtaufen/plumb-feature-gates
Automatic merge from submit-queue

Plumb --feature-gates from TEST_ARGS to components in node e2e tests

This means you can set `TEST_ARGS` on the command line, in a `.properties` config for a Jenkins job, etc, to toggle gated features. For example:

`TEST_ARGS='--feature-gates=DynamicKubeletConfig=true'`

/cc @vishh @jlowdermilk
2016-09-09 12:31:00 -07:00
Kubernetes Submit Queue
ba4dba8be2 Merge pull request #31607 from jsafrane/describe-storageclass
Automatic merge from submit-queue

Add kubectl describe storageclass.

Sample output:

```
Name:		fast
Annotations:	storage.beta.kubernetes.io/default-class=true
Provisioner:	kubernetes.io/aws-ebs
Parameters:	type=gp2
No events.

Name:		slow
Annotations:	<none>
Provisioner:	kubernetes.io/aws-ebs
Parameters:	type=sc1
No events.
```
(it looks nicely aligned in terminal)

Proposing 1.4, it's bugfix, not a feature.
2016-09-09 11:52:42 -07:00
Kubernetes Submit Queue
1d0404466d Merge pull request #32396 from adityakali/cleanup
Automatic merge from submit-queue

Update Container-VM Image product name in docs
2016-09-09 11:11:15 -07:00
Kubernetes Submit Queue
bdb44671da Merge pull request #32327 from Kashomon/hazelcast
Automatic merge from submit-queue

Update the hazelcast version to 0.6.1 fix some flakiness.

**What this PR does / why we need it**:

Should fix flaky test

**Which issue this PR fixes**

https://github.com/kubernetes/kubernetes/issues/30672

**Special notes for your reviewer**:

Note: I manually updated the readme because mungedocs was having
trouble.

**Release note**:
NONE
2016-09-09 11:11:10 -07:00
Kubernetes Submit Queue
3ddd39cd97 Merge pull request #32239 from zmerlynn/aws-bringup-fail
Automatic merge from submit-queue

AWS: Change default networking for kube-up to kubenet

**What this PR does / why we need it**: Fixes AWS bring-up. Again.

There's a kubelet bug that prevents NETWORK_PROVIDER=none from working right now, and we should migrate AWS to `kubenet` anyways.

Working on reproing the `none` issue on GCE, then I'll file a bug on the main issue. But this fixes AWS, so quick tactical fix.
2016-09-09 10:32:20 -07:00
Lucas Käldström
c9e794e1cb Make it possible to compile both etcd2 and etcd3 in the Makefile and compile attachlease for multiple arches as well 2016-09-09 20:25:15 +03:00
Aditya Kali
d5e4cfa2c0 Update Container-VM Image product name in docs 2016-09-09 10:08:56 -07:00
Kubernetes Submit Queue
f535aea7fd Merge pull request #32359 from wojtek-t/rollback_etcd
Automatic merge from submit-queue

Use etcd 2.3.7

This will switch to etcd 2.3.7 for release 1.4, to resolve issues rolling back from 1.4 to 1.3 (while preventing those same issues rolling back to 1.4.0 from a release including etcd 3.0.x).

Fixes #32253.

See #32253 (comment) for etcd roadmap.
2016-09-09 09:53:02 -07:00
deads2k
0e37530b09 add logging for enabled/disabled API groups 2016-09-09 11:31:15 -04:00
deads2k
5185f4c67b fixup storage examples 2016-09-09 11:31:15 -04:00
Kubernetes Submit Queue
cd30526b44 Merge pull request #32379 from wojtek-t/allow_for_notready_nodes_in_scalability
Automatic merge from submit-queue

Allow for not-ready nodes in WaitForAllNodesSchedulable

Ref #31215
2016-09-09 06:47:36 -07:00
Kubernetes Submit Queue
603212f33e Merge pull request #32201 from soltysh/audit_namespace
Automatic merge from submit-queue

Fix namespace in audit logs

@sttts apparently previous logic was not good enough to read the namespace, which I haven't noticed on time. ptal
2016-09-09 06:47:31 -07:00
Wojciech Tyczynski
dc3dcc27d2 Allow for not-ready nodes in WaitForAllNodesSchedulable 2016-09-09 14:56:43 +02:00
Wojciech Tyczynski
80f56d831c Merge pull request #32376 from deads2k/storage-04-re-disable-test
skip dynamic provisision test on gke until gke enables it
2016-09-09 13:53:48 +02:00
deads2k
786879aa9b skip dynamic provisision test on gke until gke enables it 2016-09-09 07:45:40 -04:00
Kubernetes Submit Queue
0e7f8f9f02 Merge pull request #32298 from wojtek-t/hwm_in_cacher
Automatic merge from submit-queue

Log water mark for incoming queue in cacher

Ref #32257
2016-09-09 04:06:57 -07:00
Kubernetes Submit Queue
d139177529 Merge pull request #32317 from sdodson/master
Automatic merge from submit-queue

Fix 127.0.01 typo

**What this PR does / why we need it**:
Fixes a small typo, though typo seems inconsequential

**Release note**:
none
2016-09-09 04:06:52 -07:00
Kubernetes Submit Queue
61f321fc12 Merge pull request #32363 from gmarek/limits
Automatic merge from submit-queue

Remove explicit limits from manifest files

Current setting make those addons OOM in 2k Node clusters.

cc @piosz @mwielgus @bprashanth
2016-09-09 04:06:48 -07:00
Maciej Szulik
b19fcdce29 Fix namespace in audit logs 2016-09-09 11:43:28 +02:00
Kubernetes Submit Queue
dfb6c5c3ba Merge pull request #31946 from thockin/dont-assign-to-sami
Automatic merge from submit-queue

Don't assign anything to Sami anymore

@pwittrock anything new to do to tag for cherry pick to 1.4?
2016-09-09 02:36:45 -07:00
Kubernetes Submit Queue
a0fed361e0 Merge pull request #32200 from deads2k/storage-03-enable-test
Automatic merge from submit-queue

re-enable provisioning test

Reverts https://github.com/kubernetes/kubernetes/pull/32199 for when the gke control plane is updated.  This should be merged AFTER gke is ready.

@kubernetes/sig-storage @wojtek-t
2016-09-09 02:36:41 -07:00
Wojciech Tyczynski
03a23aed09 Log water mark for incoming queue in cacher 2016-09-09 11:35:05 +02:00
gmarek
c304fa1f06 Remove explicit limits from manifest files 2016-09-09 11:19:54 +02:00
Kubernetes Submit Queue
ff9e1daf33 Merge pull request #32358 from wojtek-t/fix_nodes_checking
Automatic merge from submit-queue

Fix checking for allowed not-ready nodes in test framework

Ref #31215
2016-09-09 01:37:49 -07:00
Kubernetes Submit Queue
95771b12e9 Merge pull request #32340 from lavalamp/serveralloctest
Automatic merge from submit-queue

add more details to TestServiceAlloc failure

To debug #32028
2016-09-09 01:37:45 -07:00
Kubernetes Submit Queue
dceb33d120 Merge pull request #32097 from brendandburns/dev
Automatic merge from submit-queue

Don't return an error if a file doesn't exist for IsPathDevice(...)

Fixes https://github.com/kubernetes/kubernetes/issues/30455

@saad-ali @thockin fyi, since linux devices and storage.
2016-09-09 01:37:40 -07:00