magnum/magnum
Feilong Wang 3c72d7b88b Fix race condition issue for k8s multi masters
When creating a multi-master cluster, all master nodes will attempt to
create kubernetes resources in the cluster at this same time, like
coredns, the dashboard, calico etc. This race conditon shouldn't be
a problem when doing declarative calls instead of imperative (kubectl
apply instead of create). However, due to [1], kubectl fails to apply
the changes and the deployemnt scripts fail causing cluster to creation
to fail in the case of Heat SoftwareDeployments. This patch passes the
ResourceGroup index of every master so that resource creation will be
attempted only from the first master node.

[1] https://github.com/kubernetes/kubernetes/issues/44165

Task: 21673
Story: 1775759

Change-Id: I83f78022481aeef945334c37ac6c812bba9791fd
2018-06-14 09:16:32 +12:00
..
api Devicemapper storage driver need specified volume 2018-06-05 11:00:05 +08:00
cmd federation api: api endpoints 2018-02-09 00:59:31 -03:00
common Strip signed certificate 2018-06-06 14:26:50 +02:00
conductor Cache barbican certs for periodic tasks 2018-04-03 06:15:58 +00:00
conf Cache barbican certs for periodic tasks 2018-04-03 06:15:58 +00:00
db Enables MySQL Cluster Support for Magnum 2018-02-19 12:15:58 +00:00
drivers Fix race condition issue for k8s multi masters 2018-06-14 09:16:32 +12:00
hacking Fix typo in magnum/hacking/checks.py for consistency 2017-06-16 15:43:27 +08:00
objects federation api: api endpoints 2018-02-09 00:59:31 -03:00
service Add send_cluster_metrics configuration parameter 2018-02-01 10:34:54 -08:00
servicegroup Cleanup MagnumService Object usage 2016-01-29 15:39:28 +08:00
tests Strip signed certificate 2018-06-06 14:26:50 +02:00
__init__.py Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
i18n.py Remove log translations 2017-03-30 17:05:10 +08:00
version.py Remove coding:utf-8 2015-08-03 23:28:22 +08:00