Commit Graph

27651 Commits (26c99fee0095eb15b4a843b657f43ec7323a04f7)

Author SHA1 Message Date
Ryan Hitchman 5683c0b087 Make test-history generator create pages for individual suites
This makes it easier to determine which tests cause particular suites to
fail.

All static HTML pages are now generated by one invocation of gen_html.py.

- make index include good/flake/fail numbers for each link
- consistently use % for string interpolation
2016-04-12 18:07:59 -07:00
Jeff Grafton d82a8cb282 Add a verify check to check Jenkins job config changes 2016-04-12 16:49:28 -07:00
Jeff Grafton 47967d0756 Add script to compute diff in Jenkins job config changes 2016-04-12 16:49:22 -07:00
Jeff Grafton 5bcd1f8d7b Rename "gcloud-update" jobs to "daily-maintenace" and add Docker cleanup 2016-04-12 16:43:34 -07:00
Lantao Liu 41953bae49 Add unit test for generateAPIPodStatus 2016-04-12 16:37:26 -07:00
Lantao Liu b49357be22 Cleanup the waiting state related code 2016-04-12 16:37:26 -07:00
Andy Zheng b5a1595c98 Trusty: Fix master kubelet command assembly 2016-04-12 15:53:16 -07:00
Abhi Shah 405656eff8 Merge pull request #24149 from ihmccreery/upgrade-clean
e2e-runner: don't clean old binaries before upgrade
2016-04-12 15:19:56 -07:00
Jeff Lowdermilk f8c135dc1f Fix log dump for new gcloud 2016-04-12 14:40:13 -07:00
Jeff Grafton 0fb747882d Merge pull request #24109 from ixdy/dockerized-e2e
Run most GCE, GKE, and Kubemark e2e jobs inside Docker
2016-04-12 14:38:04 -07:00
k8s-merge-robot 95871a3582 Merge pull request #24066 from wonderfly/serial_tests_trusty
Automatic merge from submit-queue

Start running [Serial] tests in Trusty CI jobs and the release job of Trusty-dev

Adding these tests as requested in https://github.com/kubernetes/kubernetes/issues/23956#issuecomment-207096136

@spxtr Can you review this?
cc/ @dchen1107 @andyzheng0831
2016-04-12 13:28:40 -07:00
k8s-merge-robot 21f4d1f1d6 Merge pull request #22649 from rootfs/nfs-fix
Automatic merge from submit-queue

disable nfsv4 and use nfsv3

fix #22529
2016-04-12 13:28:38 -07:00
Yifan Gu cc4336829d rkt: Add pre-stop lifecycle hooks for rkt.
When a pod is being terminated, the pre-stop hooks of all the containers
will be run before the containers are stopped.
2016-04-12 13:10:51 -07:00
Isaac Hollander McCreery 7fb421bdc3 e2e-runner: don't clean old binaries before upgrade 2016-04-12 11:12:59 -07:00
k8s-merge-robot e9c1d59174 Merge pull request #24003 from yujuhong/metrics_test
Automatic merge from submit-queue

e2e: adapt kubelet_perf.go to use the new summary metrics API

This commit switch most functions in kubelet_stats.go to use the new API.
However, the functions that perform one-time resource usage retrieval remain
unchanged to be compatible with reource_usage_gatherer.go. They should be
handled separately.

Also, the new summary API does not provide the RSS memory yet, so all memory
checking tests will *always* pass. We plan to add this metrics in the API and
restore the functionality of the test.
2016-04-12 11:01:48 -07:00
k8s-merge-robot 6ff05bb9e1 Merge pull request #23827 from derekwaynecarr/remove_sc_deny_vagrant
Automatic merge from submit-queue

Remove SecurityContextDeny from vagrant setup

This should not be needed in the vagrant setup.
2016-04-12 10:23:35 -07:00
k8s-merge-robot f4a421d4bb Merge pull request #24008 from liggitt/watch_cache
Automatic merge from submit-queue

Make watch cache treat resourceVersion consistent with uncached watch

Fixes #24004

This makes the watch cache handle resourceVersion consistent with an uncached watch API call, and the documented behavior. Watching from resourceVersion=X delivers watch events *after* version X (X is not included):

> // When specified with a watch call, shows changes that occur after that particular version of a resource.
> // Defaults to changes from the beginning of history.
> ResourceVersion string
2016-04-12 10:23:33 -07:00
Chao Xu f315ffd8b1 make default thirdparty resource preferredVersion; adding back discovery tests 2016-04-12 10:09:09 -07:00
k8s-merge-robot 828ea5a728 Merge pull request #24110 from vishh/node-conformance
Automatic merge from submit-queue

Convert the node conformance tests to use dedicated images.

This PR will de-flake the node e2e.
2016-04-12 09:38:48 -07:00
Alex Robinson 80a75ff76c Merge pull request #24075 from a-robinson/multizone
Add an e2e test suite for multi-zone GKE clusters.
2016-04-12 09:31:24 -07:00
Yu-Ju Hong a8c685921f e2e: adapt kubelet_perf.go to use the new summary metrics API
This commit switch most functions in kubelet_stats.go to use the new API.
However, the functions that perform one-time resource usage retrieval remain
unchanged to be compatible with reource_usage_gatherer.go. They should be
handled separately.

Also, the new summary API does not provide the RSS memory yet, so all memory
checking tests will *always* pass. We plan to add this metrics in the API and
restore the functionality of the test.
2016-04-12 09:27:46 -07:00
Huamin Chen 3a914c2583 fix #22529: disable nfsv4 and use nfsv3 2016-04-12 16:23:28 +00:00
k8s-merge-robot e93c0d727f Merge pull request #20204 from HaiyangDING/predlib
Automatic merge from submit-queue

Move predicates into library

This PR tries to implement #12744 

Any suggestions/ideas are welcome. @davidopp 

current state: integration test fails if including podCount check in Kubelet.
    
DONE:
    1. refactor all predicates: predicates return fitOrNot(bool) and error(Error) in which the latter is of type PredicateFailureError or InsufficientResourceError
    2. GeneralPredicates() is a predicate function, which includes serveral other predicate functions (PodFitsResource, PodFitsHost, PodFitsHostPort). It is registered as one of the predicates in DefaultAlgorithmProvider, and is also called in canAdmitPod() in Kubelet and should be called by other components (like rescheduler, etc if necessary. See discussion in issue #12744
TODO:
    1. determine which predicates should be included in GeneralPredicates()
    2. separate GeneralPredicates() into: a.) GeneralPredicatesEvictPod() and b.) GeneralPredicatesNotEvictPod()
    3. DaemonSet should use GeneralPredicates()
2016-04-12 07:44:45 -07:00
Jordan Liggitt ada60236f7 Make watch cache behave like uncached watch 2016-04-12 10:14:07 -04:00
k8s-merge-robot fcddb9cba5 Merge pull request #16964 from liggitt/json_precision
Automatic merge from submit-queue

Preserve int data when unmarshaling

There are several places we use `json.Unmarshal` into an unstructured map (StrategicMergePatch, UnstructuredJSONScheme, many others).

In this scenario, the json package converts all numbers to float64. This exposes many of the int64 fields in our API types to corruption when the unstructured map is marshalled back to json.

A simple example is a pod with an `"activeDeadlineSeconds": 1000000`. Trying to use `kubectl label`, `annotate`, `patch`, etc results in that int64 being converted to a float64, submitted to the server, and the server rejecting it with an error about "cannot unmarshal number 1e+6 into Go value of type int64"

The json package provides a way to defer conversion of numbers (`json.Decoder#UseNumber`), but does not actually do conversions to int or float. This PR makes use of that feature, and post-processes the unmarshalled map to convert json.Number objects to either int64 or float64 values
2016-04-12 07:09:32 -07:00
k8s-merge-robot acf9492cb1 Merge pull request #23660 from goltermann/vetclean
Automatic merge from submit-queue

Additional go vet fixes

Mostly:
- pass lock by value
- bad syntax for struct tag value
- example functions not formatted properly
2016-04-12 06:22:16 -07:00
k8s-merge-robot fda8ec2f5d Merge pull request #24015 from yujuhong/rss_memory
Automatic merge from submit-queue

kubele: add RSS memroy to the summary API
2016-04-12 05:51:35 -07:00
James Ravn 5bb0595260 Make deserialization cache size configurable
Instead of the default 50K entries, allow users to specify more sensible
sizes for their cluster.
2016-04-12 13:42:27 +01:00
k8s-merge-robot af1803bfb9 Merge pull request #23763 from david-mcmahon/build-regex
Automatic merge from submit-queue

Fix valid CI version regex in parse_and_validate_release_version().

Ref: #23759
cc @ihmccreery
2016-04-12 05:19:55 -07:00
Salvatore Dario Minonne 15b7577454 Adding nodeports services to quota 2016-04-12 11:09:16 +02:00
Ruddarraju, Uday Kumar Raju 6df648d018 Updating go-restful dependency to fix thirdparty 2016-04-12 02:06:26 -07:00
Thomas Liu ad9f9d2ce0 Create cmd to generate kubectl yaml docs 2016-04-11 17:07:45 -07:00
Thomas Liu a57bba498f Bump up yaml.v2 version 2016-04-11 17:07:45 -07:00
k8s-merge-robot 31de62216d Merge pull request #23381 from kinvolk/alban/apache-log
Automatic merge from submit-queue

examples/guestbook/php-redis: don't reopen stdio fds

/etc/apache2/apache2.conf was configured to log in this way:
> ErrorLog /proc/self/fd/2
> CustomLog /proc/self/fd/1 combined

This causes apache to reopen the already-opened fds. It works fine when
the file descriptors are pipes or ttys but it fails when they are Unix
sockets because sockets cannot be opened with the open() syscall. The
issue happens when apache is connected to systemd-journald, like in the
rkt container run-time.

This patch uses "cat" to directly write to the stdio fds without
reopening them. apache2.conf now looks like:
> ErrorLog "|$/bin/cat 1>&2"
> CustomLog "|/bin/cat" combined

It works both with Docker and rkt (tested with and without
--interactive).

Symptoms:
> [ 2673.478868] apache2-foreground[4]: (6)No such device or address:
> AH00091: apache2: could not open error log file /proc/self/fd/2.

See also: https://github.com/coreos/rkt/issues/2300

-----

/cc @sjpotter @yifan-gu @jonboulle
2016-04-11 16:58:23 -07:00
Matt Liggett e6af5ee296 Rewrite docker-checker.sh to make it less kill-happy.
Also a little more organized and easier to re-use.
Should minimize the incidence of #23461.
2016-04-11 16:57:29 -07:00
Clayton Coleman 53b48fb414 Move a kubelet flag default to the right place
All defaults belong in the struct, not the flags
2016-04-11 19:30:37 -04:00
Andy Zheng 988f16a1e2 Trusty: Avoid unnecessary in-memory temp files 2016-04-11 15:55:01 -07:00
CJ Cullen 5a785698aa Strip comments from configure-vm.sh for gce 2016-04-11 15:13:02 -07:00
Vishnu kannan d100e3147f Convert the node conformance tests to use dedicated images.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-04-11 14:38:43 -07:00
Jeff Grafton a639e702f0 Run most GCE, GKE, and Kubemark e2e jobs inside Docker
Explicitly pin all <= 1.1 e2e jobs, upgrade, soak, and AWS jobs to
the master node and "legacy" e2e runner.
2016-04-11 14:26:00 -07:00
Jordan Liggitt 37c86041ca Preserve int64 data when patching 2016-04-11 16:23:28 -04:00
David McMahon fbe5f70267 Update CHANGELOG.md for v1.3.0-alpha.2. 2016-04-11 12:54:06 -07:00
Vishnu kannan d4db40e87f Adding an e2e test for oom score adjust handling.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-04-11 12:51:42 -07:00
Jeff Grafton 391ff9dba6 Merge pull request #24105 from ixdy/dirty-workspace
Remove "dirty workspace" check in e2e-runner.sh
2016-04-11 12:14:09 -07:00
Jeff Grafton 1816582fda Remove "dirty workspace" check in e2e-runner.sh 2016-04-11 12:02:14 -07:00
Jeff Grafton 94d4a3eca3 Merge pull request #24010 from ixdy/dockerized-e2e
Run kubernetes-e2e-g[ck]e-flaky inside Docker
2016-04-11 11:36:18 -07:00
Vishnu kannan b06bb6bb8e OOM Score adjusting logic in kubelet should handle containers that exit quickly.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-04-11 11:21:48 -07:00
k8s-merge-robot bf0e6e0047 Merge pull request #23261 from hongchaodeng/sched
Automatic merge from submit-queue

kube-scheduler: cleanup duplicate GetAlgorithmProvider()

See [here](ae88f08af0/plugin/pkg/scheduler/factory/factory.go (L177-L180)).
The check is duplicate since CreateFromProvider will also do it.
2016-04-11 10:01:16 -07:00
Isaac Hollander McCreery f9ffeb8244 Merge pull request #24077 from ihmccreery/upgrade-version-1.1
Fix upgrade jobs again
2016-04-11 09:52:46 -07:00
Clayton Coleman 3474911736 Implement a streaming serializer for watch
Changeover watch to use streaming serialization. Properly version the
watch objects. Implement simple framing for JSON and Protobuf (but not
YAML).
2016-04-11 11:22:05 -04:00