Commit Graph

72073 Commits

Author SHA1 Message Date
Mike Danese
62c3ec969d Fix a race in the scheduler.
Loop over priorityConfigs seperately. The node loop can only safely
modify result[i][index]. Before this change it sometimes modified
result[i] concurrently with other loops.

Fixes: 7164967662

==================== Test output for //pkg/scheduler/core:go_default_test:
==================
WARNING: DATA RACE
Read at 0x00c0005e8ed0 by goroutine 22:
  k8s.io/kubernetes/pkg/scheduler/core.PrioritizeNodes.func2()
      pkg/scheduler/core/generic_scheduler.go:667 +0x2ea
  k8s.io/kubernetes/vendor/k8s.io/client-go/util/workqueue.ParallelizeUntil.func1()
      staging/src/k8s.io/client-go/util/workqueue/parallelizer.go:65 +0x9e

Previous write at 0x00c0005e8ed0 by goroutine 21:
  k8s.io/kubernetes/pkg/scheduler/core.PrioritizeNodes.func2()
      pkg/scheduler/core/generic_scheduler.go:668 +0x450
  k8s.io/kubernetes/vendor/k8s.io/client-go/util/workqueue.ParallelizeUntil.func1()
      staging/src/k8s.io/client-go/util/workqueue/parallelizer.go:65 +0x9e

Goroutine 22 (running) created at:
  k8s.io/kubernetes/vendor/k8s.io/client-go/util/workqueue.ParallelizeUntil()
      staging/src/k8s.io/client-go/util/workqueue/parallelizer.go:57 +0x1a3
  k8s.io/kubernetes/pkg/scheduler/core.PrioritizeNodes()
      pkg/scheduler/core/generic_scheduler.go:682 +0x592
  k8s.io/kubernetes/pkg/scheduler/core.(*genericScheduler).Schedule()
      pkg/scheduler/core/generic_scheduler.go:186 +0x77d
  k8s.io/kubernetes/pkg/scheduler/core.TestGenericScheduler.func1()
      pkg/scheduler/core/generic_scheduler_test.go:464 +0x91f
  testing.tRunner()
      GOROOT/src/testing/testing.go:827 +0x162

Goroutine 21 (running) created at:
  k8s.io/kubernetes/vendor/k8s.io/client-go/util/workqueue.ParallelizeUntil()
      staging/src/k8s.io/client-go/util/workqueue/parallelizer.go:57 +0x1a3
  k8s.io/kubernetes/pkg/scheduler/core.PrioritizeNodes()
      pkg/scheduler/core/generic_scheduler.go:682 +0x592
  k8s.io/kubernetes/pkg/scheduler/core.(*genericScheduler).Schedule()
      pkg/scheduler/core/generic_scheduler.go:186 +0x77d
  k8s.io/kubernetes/pkg/scheduler/core.TestGenericScheduler.func1()
      pkg/scheduler/core/generic_scheduler_test.go:464 +0x91f
  testing.tRunner()
      GOROOT/src/testing/testing.go:827 +0x162
==================
--- FAIL: TestGenericScheduler (0.01s)
    --- FAIL: TestGenericScheduler/test_6 (0.00s)
        testing.go:771: race detected during execution of test
    testing.go:771: race detected during execution of test
FAIL
2018-11-09 15:21:22 -08:00
Patrick Barker
54fd930d0e adds dynamic audit plugins generated 2018-11-09 15:38:08 -07:00
Patrick Barker
8eb2150689 adds dynamic audit plugins 2018-11-09 15:38:00 -07:00
k8s-ci-robot
f49464e848
Merge pull request #70811 from humblec/heketi-vendor-update
Update heketi dependencies to sha@558b29266ce0a873991ecfb3edc41a668a998514
2018-11-09 14:31:47 -08:00
k8s-ci-robot
c8b3d0cf82
Merge pull request #70797 from mborsz/addon
Update addon-manager to 1.8.4
2018-11-09 14:31:37 -08:00
k8s-ci-robot
d90f868c00
Merge pull request #70793 from rosti/use-hyperkube
kubeadm: UnifiedControlPlaneImage string -> UseHyperKubeImage bool
2018-11-09 14:31:28 -08:00
k8s-ci-robot
54fe139d4e
Merge pull request #70761 from luxas/rename_apiendpoint
kubeadm v1beta1: InitConfiguration.APIEndpoint -> LocalAPIEndpoint
2018-11-09 14:31:19 -08:00
k8s-ci-robot
daea190bee
Merge pull request #70753 from logicalhan/healthz-test
fix healthz checkerNames test so that it tests against the expected output
2018-11-09 14:31:09 -08:00
Mehdy Bohlool
ea54a0c504 E2E Test 2018-11-09 12:50:22 -08:00
Mehdy Bohlool
8235e389fb Example webhook implementation (used in E2E test) 2018-11-09 12:50:21 -08:00
k8s-ci-robot
c3d05c816d
Merge pull request #70757 from ereslibre/remove-cluster-name-from-join-configuration
kubeadm: Remove cluster name from JoinConfiguration
2018-11-09 12:46:09 -08:00
Masaki Kimura
f98b87cac1 Make csi alpha failing test skip
Fixes: #70760
2018-11-09 20:42:55 +00:00
Deep Debroy
923df464fb Add multi PVC versions of tests for delayed binding
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2018-11-09 12:17:31 -08:00
Sean Sullivan
c814f61510 kubectl get: remove internal resource dependency 2018-11-09 11:33:11 -08:00
Sean Sullivan
6b0f66d864 kubectl: remove redundant test 2018-11-09 11:12:20 -08:00
Daniel Smith
6195d1005d add a metric that can be used to notice stuck worker threads 2018-11-09 10:50:11 -08:00
Michael Taufen
1089cb629f Don't compare interface values in dynamic config controller
This previously caused a panic when moving lastKnownGood between two
non-nil values, because we were comparing the interface wrapper instead
of comparing the NodeConfigSources. The case of moving from one non-nil
lastKnownGood config to another doesn't appear to be tested by the e2e
node tests. I added a unit test and an e2e node test to help catch bugs
with this case in the future.
2018-11-09 10:45:12 -08:00
k8s-ci-robot
06e737367d
Merge pull request #69589 from oomichi/issue/69588
Add the existence check of /proc/net/nf_conntrack
2018-11-09 10:20:01 -08:00
Aniket Kulkarni
62770789d3 fix for test failure #70774 2018-11-09 12:15:16 -05:00
Humble Chirammal
92fa290ead Update heketi dependencies to sha@558b29266ce0a873991ecfb3edc41a668a998514.
Fixes #
https://github.com/kubernetes/kubernetes/issues/70802

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2018-11-09 21:08:56 +05:30
Rostislav M. Georgiev
b551ad596a kubeadm: UnifiedControlPlaneImage -> UseHyperKubeImage
Up until now UnifiedControlPlaneImage existed as a string value as part of the
ClusterConfiguration. This provided an override for the Kubernetes core
component images with a single custom image. It is mostly used to override the
control plane images with the hyperkube image. This saves both bandwith and
disk space on the control plane nodes.
Unfortunately, this specified an entire image string (complete with its prefix,
image name and tag). This disables upgrades of setups that use hyperkube.
Therefore, to enable upgrades on hyperkube setups and to make configuration
more convenient, the UnifiedControlPlaneImage option is replaced with a boolean
option, called UseHyperKubeImage. If set to true, this option replaces the
image name of any Kubernetes core components with hyperkube, thus allowing for
upgrades and respecting the image repository and version, specified in the
ClusterConfiguration.

Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
2018-11-09 17:35:20 +02:00
k8s-ci-robot
e133ab274d
Merge pull request #70515 from davidz627/feature/csiNodeInfo
Add explicit "Installed" field to CSINodeInfo and change update semantics
2018-11-09 06:42:09 -08:00
Lucas Käldström
48c273b07e
autogenerated 2018-11-09 14:47:58 +02:00
Lucas Käldström
5656338b6e
Update unit tests after the rename 2018-11-09 14:47:45 +02:00
Lucas Käldström
731bcdc864
kubeadm: InitConfiguration.APIEndpoint -> LocalAPIEndpoint 2018-11-09 14:47:21 +02:00
k8s-ci-robot
8825843126
Merge pull request #70323 from qingsenLi/git181010
[kubeadm/app/..add other packages]Switch to github.com/pkg/errors
2018-11-09 01:02:06 -08:00
qingsenLi
e94dd19e03 [kubeadm/app/..add other packages]Switch to github.com/pkg/errors 2018-11-09 18:54:03 +08:00
lojies
e3d69d8c33 code cleanup for kubectl taint 2018-11-09 16:22:00 +08:00
k8s-ci-robot
e0ce8478b2
Merge pull request #70825 from mikedanese/cleanup
finish controller name change and don't double check feature flag
2018-11-08 23:45:55 -08:00
k8s-ci-robot
8c2509de5b
Merge pull request #70716 from jingxu97/Nov/versionupdate
Move Regional PD to GA
2018-11-08 23:45:45 -08:00
Maciej Borsz
2ca6334d45 Update addon-manager to 1.8.4 2018-11-09 08:27:25 +01:00
k8s-ci-robot
8d5ddd6de3
Merge pull request #70780 from saad-ali/fixCSICRD
Fix CSI CRD installation for Alpha clusters
2018-11-08 21:51:54 -08:00
k8s-ci-robot
b3a160d0cf
Merge pull request #68481 from duglin/minorFixes
Some minor fixes for warnings while running the tests
2018-11-08 20:10:48 -08:00
David Zhu
06f3b26012 Change semantics of driver install and uninstall in CSINodeInfo to use new fields. 2018-11-08 19:45:01 -08:00
David Zhu
4621887037 Updated test files with new fields 2018-11-08 19:45:01 -08:00
David Zhu
3595dee6cc Add fields available and volumePluginMechanism to CSINodeInfo CRD API Object. Split CSINodeInfo into Spec and Status. 2018-11-08 19:44:51 -08:00
Babak "Bobby" Salamat
a2c0958428
Revert "Hold mutex lock shorter when processing inter-pod affinity/anti-affin…" 2018-11-08 18:26:26 -08:00
Minhan Xia
55d88c5d0b add description for pod readiness gate 2018-11-08 18:17:59 -08:00
k8s-ci-robot
34be549935
Merge pull request #70727 from yagonobre/bootstrap-token
kubeadm graduate bootstrap-token phase
2018-11-08 17:36:24 -08:00
k8s-ci-robot
be800e623a
Merge pull request #69663 from sttts/sttts-scheduler-secure-serving
scheduler: enable secure port and authn/z
2018-11-08 17:36:14 -08:00
seunghunee
c0cacd2525 Fix conformance test error with log level 8
Fix: #70788
e2e conformance test completely passed with log level 5,
but failed only with log level 8.
2018-11-09 00:30:52 +00:00
Renaud Gaubert
11fef8ba3b Pluginwatcher should prevent kubelet from starting if we cannot watch the plugin root 2018-11-09 00:20:22 +00:00
Mike Danese
1469bb413e finish controller name change and don't double check feature flag 2018-11-08 15:51:49 -08:00
Renaud Gaubert
3a467ff44b Pluginwatcher: log error when walking fs rather than fail 2018-11-08 23:22:07 +00:00
Renaud Gaubert
3f5039a2d1 Fix pluginwatcher panic on failed startup 2018-11-08 23:22:07 +00:00
Rafael Fernández López
47b4e04842
kubeadm: Remove cluster name from JoinConfiguration 2018-11-08 23:29:52 +01:00
k8s-ci-robot
b2b25462c1
Merge pull request #70755 from ereslibre/remove-feature-gates-from-join-configuration
kubeadm: Remove feature gates from JoinConfiguration
2018-11-08 14:27:08 -08:00
k8s-ci-robot
62d9999f8f
Merge pull request #66409 from roycaihw/remove-unused-openapi-gen-cmd
Clean up unused openapi-gen cmd
2018-11-08 14:26:58 -08:00
k8s-ci-robot
91d6d75303
Merge pull request #70796 from detiber/revCoreDNS
[kubeadm] Update CoreDNS Version
2018-11-08 12:13:10 -08:00
Sean Sullivan
62ec499d6f kubectl convert: add deprecation warning for 1.13 2018-11-08 11:50:49 -08:00