Commit Graph

31005 Commits

Author SHA1 Message Date
k8s-merge-robot
db43b68640 Merge pull request #27891 from mml/fed-nil-node
Automatic merge from submit-queue

Catch the case where we cannot find any nodes.
2016-06-22 13:43:12 -07:00
k8s-merge-robot
a505958f2b Merge pull request #27878 from dcbw/cni-cleanup
Automatic merge from submit-queue

Make kubelet CNI network plugin runtime-agnostic

cni.go has a couple docker-isms in it still, so let's remove those and make the plugin runtime-agnostic.  Also fixes some docker-isms in kubenet that snuck in with the HostPort changes.
2016-06-22 13:43:04 -07:00
Marcin
21661ba1e6 Bump Cluster Autoscaler to 0.2.1 2016-06-22 22:41:36 +02:00
Chao Xu
d9f07925be let dynamic client handle non-registered ListOptions;
register ListOptions for apis/policy
2016-06-22 13:18:50 -07:00
k8s-merge-robot
036ef940b5 Merge pull request #27795 from aveshagarwal/master-node-e2e-stats-summary-issue
Automatic merge from submit-queue

Fixes a node e2e test error

Fixes following node e2e test error:
[k8s.io] Kubelet metrics api when querying /stats/summary [It] it should report resource usage through the stats api

And the logs show following error:
```
Jun 21 15:57:13 localhost journal: tee: /test-empty-dir-mnt: Is a directory
```
And the test fails with:
```
------------------------------
• Failure [310.665 seconds]
[k8s.io] Kubelet
/root/upstream-code/gocode/src/k8s.io/kubernetes/test/e2e/framework/framework.go:685
  metrics api
  /root/upstream-code/gocode/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:161
    when querying /stats/summary
    /root/upstream-code/gocode/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:160
      it should report resource usage through the stats api [It]
      /root/upstream-code/gocode/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:159

      Timed out after 300.000s.
      Expected
          <*errors.errorString | 0xc82026b6f0>: {
              s: "expected \"volume used\" to not be zero",
          }
      to be nil

      /root/upstream-code/gocode/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:158
------------------------------
```

@kubernetes/rh-cluster-infra
2016-06-22 13:08:49 -07:00
nikhiljindal
ff1264bc33 Pushing a new KubeDNS image and updating the YAML files 2016-06-22 13:08:41 -07:00
Daniel Wang
cc8aaf195d e2e-runner: Get rid of the uses of JENKINS_GCI_IMAGE_TYPE
It's now `JENKINS_GCI_IMAGE_FAMILY`.
2016-06-22 13:02:48 -07:00
saadali
dfe8e606c1 Fix device path used by volume WaitForAttach 2016-06-22 12:56:58 -07:00
Madhusudan.C.S
ea9cedab3a Dumbed down version of providing a separate IP range for each cluster in the federation. 2016-06-22 12:48:47 -07:00
Matt Liggett
d6ab379275 Catch the case where we cannot find any nodes.
It's possible to fall through the loops above with node still nil.  This
catches this and reports an error.

Found this working on #27819.
2016-06-22 12:35:48 -07:00
Dan Williams
e47d020cb6 kubelet/kubenet: simplify getting nsenter path 2016-06-22 14:26:11 -05:00
Dan Williams
a657d0587b kubelet/kubenet: Fix getRunningPods() to support rkt pods
Don't assume there's an infra container.
2016-06-22 13:45:13 -05:00
k8s-merge-robot
b7ac841e7f Merge pull request #27810 from hpcloud/lbaas-v2-liberty-fix
Automatic merge from submit-queue

Removing name field from Member for compatibility with OpenStack Liberty

In OpenStack Mitaka, the name field for members was added as an optional field but does not exist in Liberty.  Therefore the current implementation for lbaas v2 will not work in Liberty.
2016-06-22 11:22:48 -07:00
k8s-merge-robot
73b0b31313 Merge pull request #27869 from bryk/dashboard-v1.1.0
Automatic merge from submit-queue

Set Dashboard UI version to v1.1.0

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

This is our final release for this quarter.

Release info and changelog will go there:
https://github.com/kubernetes/dashboard/releases/tag/v1.1.0
2016-06-22 11:22:43 -07:00
CJ Cullen
ae67a4e209 Check HTTP Status code in webhook authorizer/authenticator. 2016-06-22 11:15:33 -07:00
k8s-merge-robot
b9bc756aa9 Merge pull request #27803 from fabioy/fix-multizone-groups
Automatic merge from submit-queue

Fix NODE_INSTANCE_GROUPS resolution in GKE to only

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

Fix NODE_INSTANCE_GROUPS resolution in GKE to only include single cluster groups. 
Add NODE_INSTANCE_GROUPS_URLS for multi-zone groups.

fixes #27692
2016-06-22 10:45:54 -07:00
k8s-merge-robot
5e16101aab Merge pull request #27807 from luxas/revert_proxy_ds
Automatic merge from submit-queue

Revert kube-proxy as a DaemonSet in hyperkube for the v1.3 release

It was a bit sad, but I was a bit too fast with the kube-proxy DaemonSet thing, so we have to target v1.4 for that one. Reverting to a static-pod

This one is for v1.3
@mikedanese @cheld @zreigz
2016-06-22 10:11:03 -07:00
k8s-merge-robot
5289de0501 Merge pull request #27837 from saad-ali/blockKubeletDetachFix
Automatic merge from submit-queue

Prevent detach before node status update

The PR prevents the attach/detach controller from start a detach operation before updating the node status (to remove the volume from the list of attached volumes).

Fixes https://github.com/kubernetes/kubernetes/issues/27836
2016-06-22 10:10:58 -07:00
Dan Williams
db078dbea4 kubelet/cni/kubenet: use common container IP address functions 2016-06-22 11:36:10 -05:00
Dan Williams
9865ac325c kubelet/cni: make cni plugin runtime agnostic
Use the generic runtime method to get the netns path.  Also
move reading the container IP address into cni (based off kubenet)
instead of having it in the Docker manager code.  Both old and new
methods use nsenter and /sbin/ip and should be functionally
equivalent.
2016-06-22 11:36:10 -05:00
bryk
aba33495dd Set Dashboard UI version to v1.1.0
This is our final release for this quarter.

Release info, changelog will go there:
https://github.com/kubernetes/dashboard/releases/tag/v1.1.0
2016-06-22 15:15:41 +02:00
k8s-merge-robot
4e2433cfab Merge pull request #27776 from mikedanese/addon-limit
Automatic merge from submit-queue

increase addon check interval

Do static pods have a crash loop back off? If so, this test would be much faster if we restarted the kubelet to clear that.

Fixes #26770
2016-06-22 05:57:49 -07:00
k8s-merge-robot
cd66fb7a55 Merge pull request #27772 from jsafrane/kubelet-volume-not-found
Automatic merge from submit-queue

Rephrase 'pv not found in cache' warnings.

When kubelet starts a pod that refers to non-existing PV, PVC or Node, it should clearly show that the requested element does not exist.

Previous `PersistentVolumeClaim 'default/ceph-claim-wm' is not in cache` looks like random kubelet hiccup, while `PersistentVolumeClaim 'default/ceph-claim-wm' not found` suggests that the object may not exist at all and it might be an user error.

Fixes #27523
2016-06-22 05:16:02 -07:00
gmarek
6d201c9c57 kube-down deletes instance templates created by the cluster upgrade 2016-06-22 14:09:37 +02:00
saadali
773ac20880 Prevent detach before node status update 2016-06-22 04:45:50 -07:00
k8s-merge-robot
7454bc464a Merge pull request #27845 from nikhiljindal/fixNodesStore
Automatic merge from submit-queue

Initialising nodesStore in KubeDNS

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

cc @kubernetes/sig-cluster-federation @mml
2016-06-22 04:38:47 -07:00
k8s-merge-robot
de1719ed87 Merge pull request #27831 from quinton-hoole/2016-06-21-fix-panic-in-dns-zone-creation
Automatic merge from submit-queue

Add unit test for zone addition to all dnsproviders.  Fixes #27785
2016-06-22 04:03:34 -07:00
Piotr Szczesniak
1de2bddae7 Merge pull request #27846 from wojtek-t/fix_master_ready
Fix not-ready master node after upgrade.
2016-06-22 11:45:26 +02:00
k8s-merge-robot
1e2f70d64c Merge pull request #27823 from nikhiljindal/waitForSecret
Automatic merge from submit-queue

federation e2e: Adding retries to fetching secret in controller manager

Ref: https://github.com/kubernetes/kubernetes/pull/27708

Trying to fix the following failure in fed controller manager:
```
error in fetching secret: Get https://10.0.0.1:443/api/v1/namespaces/federation/secrets/federation-apiserver-secret: dial tcp 10.0.0.1:443: i/o timeout
```

I am not sure why that error is happening in the first place. kube-proxy should have been configured before fed controller manager pod comes up. I didnt find anything wrong in kube-proxy logs.
The request never reaches fed apiserver.
Lets see if adding retries helps.

cc @kubernetes/sig-cluster-federation @mml @colhom
2016-06-22 02:43:15 -07:00
k8s-merge-robot
41b5bbdd1c Merge pull request #27569 from wongma7/pvc-selector-expression
Automatic merge from submit-queue

Add integration test for binding PVs using label selectors

Adds an integration test for persistent volume claim 'MatchExpressions' label selector.
2016-06-22 02:06:22 -07:00
Wojciech Tyczynski
e029f9523b Fix not-ready master node after upgrade. 2016-06-22 10:53:51 +02:00
nikhiljindal
5875397a3f Initialising nodesStore in KubeDNS 2016-06-22 01:28:02 -07:00
k8s-merge-robot
07471cf90f Merge pull request #27553 from justinsb/pvc_zone_spreading_2
Automatic merge from submit-queue

AWS/GCE: Spread PetSet volume creation across zones, create GCE volumes in non-master zones

Long term we plan on integrating this into the scheduler, but in the
short term we use the volume name to place it onto a zone.
    
We hash the volume name so we don't bias to the first few zones.
    
If the volume name "looks like" a PetSet volume name (ending with
-<number>) then we use the number as an offset.  In that case we hash
the base name.
2016-06-22 01:22:16 -07:00
David Oppenheimer
8d7d0cdb0f Merge pull request #27841 from davidopp/sched1
Small fix to #27838
2016-06-22 01:09:27 -07:00
nikhiljindal
c59de79d5f Adding retries to fetching secret in controller manager 2016-06-22 00:57:53 -07:00
k8s-merge-robot
48f2b11c48 Merge pull request #27829 from zmerlynn/fix-tp-max-2
Automatic merge from submit-queue

GCE provider: Create TargetPool with 200 instances, then update with rest

GCE provider: Create TargetPool with 200 instances, then update with rest
 
Tested with 2000 nodes, this actually meets the GCE API specifications (which is nutty). Previous PR (#25178) was based on a mistaken understanding of a poorly documented set of limitations, and even poorer testing, for which I am embarassed.

Also includes the revert of #25178 (review commits separately).

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-22 00:48:30 -07:00
David Oppenheimer
57141a6676 Small fix to #27838 2016-06-22 00:20:36 -07:00
k8s-merge-robot
d3a7daf449 Merge pull request #27353 from jsafrane/cinder-attach-test
Automatic merge from submit-queue

Add Cinder volume plugin attach tests.

@kubernetes/sig-storage
2016-06-22 00:15:17 -07:00
k8s-merge-robot
ee28e1ebc3 Merge pull request #27280 from jsafrane/aws-cinder-attach-test
Automatic merge from submit-queue

Add AWS volume plugin attach tests.

@kubernetes/sig-storage 

This it a test, it does not really matter if it catches 1.3 train or the next one.
2016-06-21 23:31:32 -07:00
David Oppenheimer
50618ec6cc Merge pull request #27838 from davidopp/sched1
Fix removeLabelOffNode() in SchedulerPredicates e2e test.
2016-06-21 23:05:39 -07:00
Zach Loafman
f9d1737299 Copy and display source location prominently on Kubernetes instances
Following from #27830, this copies the source onto the instance and
displays the location of it prominently (keeping the download link for
anyone that just wants to curl it).

Example output (this tag doesn't exist yet):

---
Welcome to Kubernetes v1.4.0!

You can find documentation for Kubernetes at:
  http://docs.kubernetes.io/

The source for this release can be found at:
  /usr/local/share/doc/kubernetes/kubernetes-src.tar.gz
Or you can download it at:
  https://storage.googleapis.com/kubernetes-release/release/v1.4.0/kubernetes-src.tar.gz

It is based on the Kubernetes source at:
  https://github.com/kubernetes/kubernetes/tree/v1.4.0

For Kubernetes copyright and licensing information, see:
  /usr/local/share/doc/kubernetes/LICENSES
---
2016-06-21 23:03:30 -07:00
k8s-merge-robot
1ea5e12bef Merge pull request #27830 from david-mcmahon/lawyercats
Automatic merge from submit-queue

Add sources to server tarballs.
2016-06-21 22:49:39 -07:00
Marek Grabowski
95d492603d Merge pull request #27824 from andyzheng0831/upgrade
Fix the node upgrade failure issue #27764
2016-06-22 07:32:35 +02:00
David Oppenheimer
75a8e6c2d7 Fix removeLabelOffNode() in SchedulerPredicates e2e test. 2016-06-21 22:09:41 -07:00
k8s-merge-robot
faf1644ef8 Merge pull request #27020 from timstclair/manager
Automatic merge from submit-queue

Rename **/manager.go for better logging

Rename `pkg/kubelet/*/manager.go` to `pkg/kubelet/*/*_manager.go`.

**Justification:** Our current logging library, [glog](https://github.com/golang/glog), logs the filename where the log was generated, but not the full path. Ex:
```
I0608 00:28:25.116905    2847 manager.go:1024] Started watching for new ooms in manager
```
We have too many files named `manager.go`, which makes it difficult to identify log messages originating from them:
```console
$ find . -name "manager.go"
./pkg/kubelet/status/manager.go
./pkg/kubelet/dockertools/manager.go
./pkg/kubelet/eviction/manager.go
./pkg/kubelet/pod/manager.go
./pkg/kubelet/prober/manager.go
./vendor/github.com/vmware/govmomi/session/manager.go
./vendor/github.com/google/cadvisor/manager/manager.go
./vendor/github.com/coreos/go-oidc/key/manager.go
```

/cc @kubernetes/sig-node This change will probably invoke rebase hell, but now seems like a reasonable time for it (with less churn leading up to release).
2016-06-21 21:03:28 -07:00
k8s-merge-robot
14fb855048 Merge pull request #27576 from jingxu97/populator
Automatic merge from submit-queue

implement desiredWorld populator to sync up with informer

fixes #26994
This change implements the desiredStateOfWorld populator to sync up with
the pod informer. It periodically check each pod in the
desiredStateOfworld and verify whether it is still in pod informer
cache. If it not, remove it from the desiredStateOfWorld
2016-06-21 20:28:16 -07:00
mfanjie
669bf0773f add kubernetes service back when it is deleted in kubernetes cluster 2016-06-22 10:46:31 +08:00
k8s-merge-robot
24c3be145c Merge pull request #27509 from janetkuo/retry-update-e2e-rolling-update
Automatic merge from submit-queue

Retry Pod/RC updates in kubectl rolling-update

Fixes #27328

@kubernetes/kubectl 

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-21 18:52:43 -07:00
Quinton Hoole
37ce95e107 Add unit test for zone addition to all dnsproviders. Fixes #27785 2016-06-21 18:38:39 -07:00
Colin Hom
5bacc4830e Federation e2e supports aws 2016-06-21 18:22:46 -07:00