Commit Graph

586 Commits

Author SHA1 Message Date
Sergiusz Urbaniak
71bd54adc6 scheduler: remove shadowed offer var in doSchedule
The variable `offer` is shadowed in the if block causing the `then`
branch to be non-effective.
2015-11-10 14:39:56 +01:00
Sergiusz Urbaniak
d53b716e97 scheduler: add newlines for readibility in doSchedule 2015-11-10 14:39:56 +01:00
Sergiusz Urbaniak
0ad0c1f2b1 scheduler: remove error param from doSchedule func
doSchedule currently accepts err values from previous invocation delegating
error handling in a location different from the caller which can be hard
to debug and is not a good practice.

We still maintain the same invariants after the refactoring. If an err
happened in a previous invocation to Register, the returned task object
was nil causing task.AcceptedOffer() to return false.

By not invoking doSchedule in case of an error we can eliminate the
first `err == nil` check in doScheduler.
2015-11-10 14:34:53 +01:00
Sergiusz Urbaniak
9bbfc35fa9 scheduler: add err check for procurement 2015-11-10 14:12:05 +01:00
Dr. Stefan Schimanski
9b00b7ef35 Avoid MockPodsListWatch deadlock of blocked channel while lock is hold 2015-11-05 13:20:29 +01:00
Daniel Smith
241551e36e set-gen example 2015-11-03 15:14:51 -08:00
k8s-merge-robot
9b953d75d2 Merge pull request #16111 from mesosphere/sttts-sandbox-overlay
Auto commit by PR queue bot
2015-11-03 03:00:57 -08:00
Dr. Stefan Schimanski
8fb77ce13e Exit scheduler if sandbox overlay does not exist 2015-11-03 11:27:41 +01:00
Dr. Stefan Schimanski
ed09e5c29d Add supported archive format for --mesos-sandbox-overlay 2015-11-03 11:27:41 +01:00
Dr. Stefan Schimanski
60ac1b932f Simplify serveFrameworkArtifact with library function for basenames 2015-11-03 11:27:41 +01:00
Dr. Stefan Schimanski
4062e2be2f Add executor sandbox overlay mechanism to distribute nsenter and socat 2015-11-03 11:27:40 +01:00
Wojciech Tyczynski
aac55d4795 Unify List() signature in clients 2015-10-30 15:43:40 +01:00
Wojciech Tyczynski
d47e21f19f Reuse TCP connections in Reflector between resync periods. 2015-10-26 19:35:25 +01:00
Wojciech Tyczynski
f4d75e0a0a Support timeout in watch requests 2015-10-24 13:12:49 +02:00
Steve Milner
8da2d4002f Fixes remaining imports per #15319 2015-10-20 07:13:13 -04:00
k8s-merge-robot
09a3871506 Merge pull request #15755 from zhengguoyong/del_capatical_packagename_for_cadvisorApi2
Auto commit by PR queue bot
2015-10-18 04:04:11 -07:00
k8s-merge-robot
d329a66434 Merge pull request #15518 from ravilr/mesos_graceful_termination_tasklost
Auto commit by PR queue bot
2015-10-17 02:51:21 -07:00
eulerzgy
31c09bdcb8 Del capatical local packagename for cadvisorApi 2015-10-16 11:03:50 +08:00
James DeFelice
b28333ca43 enable profiling for the kubelet/executor when turned on at the scheduler 2015-10-15 21:22:41 +00:00
James DeFelice
df246991e0 avoid blocking on full-pipe conditions for procs that write to stdout, which we continue to ignore 2015-10-15 21:20:23 +00:00
Ravi L R
99b03baa9b handle task lost status update from executor on docker daemon crash/restart by deleting the pod, so that the RC creates a new one, if the pod is backed by RC 2015-10-15 12:03:50 -07:00
Ravi L R
0e296c3dcd while deleting pod on terminal task status update, delete with grace_period=0 as the corresponding pod is already gone 2015-10-15 12:03:50 -07:00
Brendan Burns
0c730f4ea7 update 2015-10-14 18:22:19 -07:00
Wojciech Tyczynski
647aa1bc8c Unify per-resource List for unversioned client 2015-10-14 08:37:57 +02:00
eulerzgy
4ed5f9d240 adjust package name for pkg/controller directory 2015-10-12 09:51:27 +08:00
k8s-merge-robot
f051cb71b1 Merge pull request #14260 from mesosphere/sttts-kubelet-capacity
Auto commit by PR queue bot
2015-10-10 13:09:06 -07:00
k8s-merge-robot
40b5d0583f Merge pull request #15376 from mesosphere/sttts-fix-default-limits-in-predicate
Auto commit by PR queue bot
2015-10-10 12:20:27 -07:00
Dr. Stefan Schimanski
1435077820 Set executor cpu resources to an integer to avoid rounding errors
This avoid that we either waste cpu resources due to rounding or that we report
to much to the kubelet such that the e2e tests think they can schedule more than
resources are available.

This fixes https://github.com/mesosphere/kubernetes-mesos/issues/437
2015-10-10 21:19:08 +02:00
Dr. Stefan Schimanski
ae7830b4be Pass Mesos cpu and mem values to cadvisor 2015-10-10 21:19:08 +02:00
Dr. Stefan Schimanski
aea7985b85 Take default limits for cpu and mem into account in FitPredicate 2015-10-10 12:29:52 +02:00
Dr. Stefan Schimanski
0d8384c820 Replace all executor_test timeouts by util.ForeverTestTimeout 2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
b629278d7d Set static pods dir to 0750 instead of world readible 0755 2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
d74950cfb9 Re-use CreateAndInitKubelet 2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
4ec703174b Simplify executorKubelet decorator and move to kubelet.go
- simplify
- rename kubeletExecutor -> executorKubelet
- move executorKubelet code into kubelet.go
- remove duplicated executorKubelet.ListenAndServe
- fix executorKubelet.Run comment
2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
0feb1bceb5 Re-use KubeletServer.KubeletConfig and KubeletServer.Run 2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
dd5bafdba5 Decouple startup of executor and kubelet 2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
a60df400fd Decouple executor initialization from kubelet
This patch reduces the dependencies of the executor from the kubelet. This
makes it possible launch the kubelet after the executor.

This considerably reduces the complexity of the startup code.

Moreover, this work is a requirement to use a standalone kubelet some day.
2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
93ae257af4 Consolidate executor driver initialization code 2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
efdd726027 Un-knot static pods creation in executor 2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
686b767f28 Remove redundant kubelet dependency of executor 2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
6af86cbaad Avoid panics during executor shutdown due to write to closed channel 2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
9366ac4143 Pass PodLW to executor in tests 2015-10-10 11:54:27 +02:00
Mike Danese
392f33e417 Merge pull request #14054 from mikedanese/register-master
register master kubelet with the apiserver
2015-10-09 17:12:37 -07:00
Yu-Ju Hong
a3e60cc32e Rename imported package local name kubeletTypes to kubetypes
According to the naming guidelines, package name should not include mixedCaps.
2015-10-09 10:24:31 -07:00
k8s-merge-robot
b793c3edf1 Merge pull request #14700 from liggitt/kubelet_authz
Auto commit by PR queue bot
2015-10-09 03:01:43 -07:00
k8s-merge-robot
538cf72208 Merge pull request #15051 from feiskyer/kubelet/garbage-collection
Auto commit by PR queue bot
2015-10-09 02:11:47 -07:00
k8s-merge-robot
7b68ff5778 Merge pull request #15023 from mesosphere/jdef-fix14898-miniontestflake2
Auto commit by PR queue bot
2015-10-09 01:16:21 -07:00
Jordan Liggitt
9d6b52881d Add authentication/authorization interfaces to kubelet, always include /metrics with /stats 2015-10-09 03:10:00 -04:00
Mike Danese
fa60bbe8e6 add flag to kubelet to ignore the cidr passed down by the apiserver on the master 2015-10-08 21:21:19 -07:00
feisky
43a654ed7b Refacotor gcPolicy in contrib/mesos 2015-10-09 06:57:10 +08:00