magnum/magnum
Diogo Guerra 1ecec95b8c Fix api-cert-manager=true blocking cluster creation
In the current release, cert-api-manager runs on kubecluster.yaml [1],
but in the kubemaster.yaml [2] the script [3] expects the existance of
the ca.key file (if the cert_api_manager_enabled=true), otherwise it gets blocked.
This file (ca.key), in turn, it's created only when enable-cert-api-manager.sh runs [4]

So, we have a dead lock...
So we need to change the call enable-cert-api-manager.sh into the kubemaster.yaml

[1] https://github.com/openstack/magnum/blob/master/magnum/drivers/k8s_fedora_atomic_v1/templates/kubecluster.yaml#L1158-L1161
[2] https://github.com/openstack/magnum/blob/master/magnum/drivers/k8s_fedora_atomic_v1/templates/kubemaster.yaml#L760
[3] https://github.com/openstack/magnum/blob/master/magnum/drivers/common/templates/kubernetes/fragments/enable-services-master.sh#L12-L16
[4] https://github.com/openstack/magnum/blob/master/magnum/drivers/common/templates/kubernetes/fragments/enable-cert-api-manager.sh#L11

On other issue, the chown of this file (ca.key) it's not working. Moving the
call of this file into kubemaster.yaml makes cluster creation FAILS because of
an error [7] in [5]. If we check a cluster created in stein [6] we notice that
the file is owned by root:root. Knowing this we can comment [5] for now.

[5] https://github.com/openstack/magnum/blob/master/magnum/drivers/common/templates/kubernetes/fragments/enable-cert-api-manager.sh#L13
[6] http://paste.openstack.org/show/788534/
[7] http://paste.openstack.org/show/788537/

Change-Id: Ibee2df435c3f7c34bff74e9146fb28d8367124b1
Signed-off-by: Diogo Guerra <diogo.filipe.tomas.guerra@cern.ch>
2020-01-17 14:29:36 +01:00
..
api Merge "nodegroup list with --limit gives wrong next URL" 2019-12-13 09:22:02 +00:00
cmd ng-8: APIs for nodegroup CRUD operations 2019-09-26 08:45:57 +00:00
common No new NGs for clusters without an api_address 2019-10-23 10:04:57 +00:00
conductor ng-13: Support nodegroup upgrade 2019-10-16 11:53:44 +00:00
conf [fedora atomic k8s] Add boot from volume support 2019-09-20 05:00:29 +00:00
db ng-6: Add new fields to nodegroup objects 2019-09-25 12:26:00 +00:00
drivers Fix api-cert-manager=true blocking cluster creation 2020-01-17 14:29:36 +01:00
hacking Fix typo in magnum/hacking/checks.py for consistency 2017-06-16 15:43:27 +08:00
objects Improve log of k8s health status check 2019-10-01 18:29:16 +00:00
service Add information about the cluster in magnum event notifications 2019-07-29 11:23:42 +03:00
servicegroup Trivial code cleanups 2018-10-02 19:41:34 +00:00
tests Merge "Support verifying the digest for hyperkube image" 2020-01-16 04:22:21 +00: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