4374 Commits

Author SHA1 Message Date
Andrei Ozerov
a28e5609f9 Provide a region to the K8S Fedora Atomic config
Kubernetes should initialize its Global configuration for the OpenStack
provider with the region specified in the Heat stack.
This will allow user to create Magnum Kubernetes clusters in
multiregional OpenStack installation with different public endpoint for
services.

Task: 22576
Story: 2002728
Change-Id: I66820369b889e16445cad7a48cd0f458aae1c41f
2018-07-10 10:19:29 +03:00
Zuul
3d136642b5 Merge "Revert "Rename scripts"" 2018-07-05 14:40:49 +00:00
Spyros Trigazis
97f086c19f Revert "Rename scripts"
This reverts commit 591a2dc94a1b2fd67fc89ba0f4a93719277a7a03.

Change-Id: I38cd4b2d745b811f83480cd298ceadb86898cdf0
2018-07-05 07:57:46 +00:00
Zuul
efe1fabd37 Merge "Sync service account keys for multi masters" 2018-06-29 08:22:30 +00:00
Zuul
1eb1f35a75 Merge "Add option to specify Cgroup driver for Kubelet" 2018-06-28 07:49:39 +00:00
Zuul
2063eb0f55 Merge "Rename scripts" 2018-06-28 06:45:14 +00:00
Feilong Wang
591a2dc94a Rename scripts
Scripts are the core of Magnum for COE deployment. To be more
clear and consistent, two changes proposed in this patch:

1. Rename network related script to xxx-flannel-xxx given they
are all for flannel and now we have calico driver.

2. Adding .sh for some scripts to be consistent with others.

Change-Id: I1a8dfe21d4ff0c58f7f52ebea05c9b22dff16bf0
2018-06-27 13:40:30 +12:00
Zuul
f0dec728e7 Merge "Allow multimaster lb with no floating ip option" 2018-06-26 20:36:35 +00:00
Jim Bach
393e70f0b0 Allow multimaster lb with no floating ip option
Currently the option of selecting no floating IP will not apply to
a multimaster configuration and loadbalancers will be expected to use
floating IPs. This patch allows the floating IP resources to be
disabled among the load balancers.

Task: 22121
Story: 2002557
Change-Id: I8f96fba8aa41319ac209baedd9d3a927aad0eb91
2018-06-25 11:51:13 -07:00
Zuul
5b4f25a7f9 Merge "Added error handling for discoveryurl" 2018-06-19 07:41:16 +00:00
Feilong Wang
043c57da74 Sync service account keys for multi masters
Multi master deployments for k8s driver use different service account
keys for each api/controller manager server which leads to 401 errors
for service accounts. This patch will create a signed cert and private
key for k8s service account keys explicitly, dedicatedly for the k8s
cluster to avoid the inconsistent keys issue.

Task:  21653
Story: 1766546

Change-Id: I61547405f866d3c5a84da63de66724b55af1066a
2018-06-19 19:23:40 +12:00
Jim Bach
003e27fb96 Added error handling for discoveryurl
This adds an immediate failure response if the etcd discovery service returns
a bad status code. Before Magnum would continue to run and fail to configure
but with vague information of its failure. This would cause Magnum to generally
wait until the entire timeout before failing.

Change-Id: Iebd51e5dc8a3e3c285cb0c2af35c19f6f37ed0a7
Task: 22193
Story: 2002584
2018-06-18 15:33:57 -07:00
Spyros Trigazis
4c5d38adef k8s_fedora: Create admin cluster-role
Create admin cluster role for k8s_fedora_atomic, it is defined in
the configuration but it wasn't applied.

story: 1766284
task: 22208

Change-Id: I112fe2ddb1d5400fcbc73bbdbc8d483d5a92d120
2018-06-18 13:59:14 +02:00
Ricardo Rocha
4292b862a3 k8s_fedora: enable tls in traefik ingress
Add explicit entrypoints to the traefik controller configuration, with
the existing http but also adding a tls enable entrypoint on port 443.

Add corresponding ports to service and container definitions.

Story: 2002555
Task: 22117

Change-Id: I3413947276019b584db15a92f62a1a427ac26594
2018-06-14 20:28:30 +02:00
Ricardo Rocha
1710f3a84b k8s_fedora: set ingress traefik log level to INFO
Explicitly pass --logLevel instead of using -d.

Also renamed option --web (deprecated) to --api.

Change-Id: I3bcc679eae833cec6086c744d48adfa86f6f51b8
Story: 2002556
Task: 22118
2018-06-14 10:48:47 +02:00
Zuul
e22215a3ef Merge "Use HostAddressOpt for opts that accept IP and hostnames" 2018-06-14 07:12:50 +00:00
Zuul
df2227e99c Merge "Fix race condition issue for k8s multi masters" 2018-06-14 07:12:47 +00:00
lingyongxu
e8ac68b33b Use HostAddressOpt for opts that accept IP and hostnames
Some configuration options were accepting both IP addresses
and hostnames. Since there was no specific OSLO opt type to
support this, we were using ``StrOpt``. The change [1] that
added support for ``HostAddressOpt`` type was merged in Ocata
and became available for use with oslo version 3.22.

This patch changes the opt type of configuration options to use
this more relevant opt type - HostAddressOpt.

[1] I77bdb64b7e6e56ce761d76696bc4448a9bd325eb

Change-Id: Id179ad55d4344a7dc2214896290890862b560e0c
2018-06-13 22:23:14 -04:00
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
Bharat Kunwar
ec58c23361 Add option to specify Cgroup driver for Kubelet
This patch allows specification of Cgroup driver for Kubelet service.
The necessity of this patch was realised after upgrading Docker to the
new community edition (17.3+) which defaults to  `cgroupfs` Cgroup
driver but on the other hand, Fedora Atomic (version 27) comes with
1.13. Cgroup drivers for Docker need to be identical for the two
services, Docker and Kubelet, need to be able to work together.

Story: 2002533
Task: 22079
Change-Id: Ia4b38a63ede59e18c8edb01e93acbb66f1e0b0e4
2018-06-12 12:31:14 +01:00
Zuul
fca5e95f22 Merge "fix tox python3 overrides" 2018-06-12 09:08:08 +00:00
Doug Hellmann
da910ace0f fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Idba5b407405e7d1457a02b074bf60b7fded284ee
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 16:06:01 -04:00
Piotr Mrowczynski
edee7030e4 Strip signed certificate
Certificate (ca.crt) has to be striped for some application parsers
as they might require pure base64 representation of
certificate itself, without empty characters
at the beginning nor the end of file

Change-Id: I5f58e19d03abdf040b9a5b5df2f4dd83b4c0e3a9
Closes-Bug: #1775342
2018-06-06 14:26:50 +02:00
Zuul
3d02fd7c99 Merge "Revert "Strip signed certificate"" 2018-06-06 10:38:40 +00:00
Spyros Trigazis
d66b4f2291 Revert "Strip signed certificate"
This reverts commit 69ffdae1d0cd0a5f24a0b6411afe1a91f175cd79.

Change-Id: Ie5dfdc4019fa9097bfecb96f43a107c08364303b
2018-06-06 07:38:39 +00:00
Zuul
5a60d23a51 Merge "Use pip_check_reqs module" 2018-06-05 07:19:48 +00:00
Zuul
35f6e9069e Merge "Devicemapper storage driver need specified volume" 2018-06-05 07:19:44 +00:00
PanFengyun
9e97c8b8a7 Devicemapper storage driver need specified volume
For the 'devicemapper' storage driver, must specify volume and
the minimum value is 3GB.

Change-Id: I2b5ab83ac00b4a5bc6f113924e022f8952dd7766
Closes-Bug: #1772782
2018-06-05 11:00:05 +08:00
Zuul
3522e99706 Merge "Release note for supporting Octavia as LoadBalancer type service backend" 2018-06-04 10:28:57 +00:00
Zuul
5c8997e363 Merge "Use Octavia for LoadBalancer type service" 2018-06-04 10:28:56 +00:00
Lingxian Kong
8996e35f86 Release note for supporting Octavia as LoadBalancer type service backend
Change-Id: Ia2f3b60332627e1f3864c3de98298bea35bd3a42
2018-06-04 09:42:18 +00:00
Piotr Mrowczynski
69ffdae1d0 Strip signed certificate
Certificate (ca.crt) has to be striped for some application parsers
as they might require pure base64 representation of
certificate itself, without empty characters
at the beginning nor the end of file

Change-Id: I85457e0e2adcf21003300fafc6e2502f74b1afb5
2018-05-31 12:37:43 +02:00
Lingxian Kong
2cc57c5386 Use Octavia for LoadBalancer type service
In the OpenStack deployment with Octavia service enabled, the octavia
service should be used not only for master nodes high availability, but
also for k8s LoadBalancer type service implementation as well.

Change-Id: Ib61f59507510253794a4780a91e49aa6682c8039
Closes-Bug: #1770133
2018-05-30 15:36:24 +12:00
Zuul
db89edf907 Merge "k8s_fedora: Make CoreDNS config a SoftwareDeployment" 2018-05-29 19:40:43 +00:00
Spyros Trigazis
38878fd642 k8s_fedora: Make CoreDNS config a SoftwareDeployment
After adding the autoscaler for coredns, the limit
for user_data was reached again. Make coredns
config a SoftwareDeployment.

Change-Id: I0a9852e9293842e859947acf0c4b6da20394436a
Closes-Bug: #1757554
2018-05-28 08:17:06 +00:00
Daniel Abad
a015193025 Update ca related magnum comands to osc
After merging https://review.openstack.org/#/c/503952
update the according documentation to walk towards
deprecation of the magnum client
In addition, update old reference to bay in cluster commands.

Change-Id: Idf316f93dbc897ea0558da9b26a349644d4b98cf
Partially-Implements: blueprint deprecate-magnum-client
2018-05-11 10:35:09 +02:00
Zuul
f4267405cc Merge "[doc] Correct the non-existent link for the Fedora image" 2018-05-07 08:50:19 +00:00
Zuul
dd33c53f7d Merge "[doc] fix coredns correct image verison" 2018-05-07 08:50:18 +00:00
Zuul
e2d3fee1b3 Merge "k8s_fedora: Add admin user" 2018-05-01 02:20:37 +00:00
Qian Min Chen
b319f720ad [doc] fix coredns correct image verison
queens coredns use 1.0.1 verison [1]

[1] https://github.com/openstack/magnum/blob/master/magnum/drivers/common/templates/kubernetes/fragments/core-dns-service.sh#L98

Change-Id: I553d3796993dcb90b8181b19c8e2f15f783af247
2018-04-28 09:44:10 +08:00
Qian Min Chen
b8fb70d610 [doc] Correct the non-existent link for the Fedora image
Change-Id: I7d94109d8917284bfed485c9ffb72b7b6dcb424d
2018-04-28 09:39:40 +08:00
PanFengyun
872999711c Open the 8472 port of master for vxlan
When the backend of flanneld service is vxlan(it listens to 8472
UDP port), magnum need open the port from master.

Closes-Bug: #1767546
Change-Id: Iac5beac5a90d9f81a0cd9f481531677a710608a8
2018-04-28 09:29:20 +08:00
Spyros Trigazis
91d5229b9c k8s_fedora: Add admin user
Add an admin service account and give it the
cluster role. It can be used for access apps
with token authentication like the
kubernetes-dashboard.

Remove the cluster role from the dashboard service account.

Change-Id: I7980c0e72b0d71921e42af7338d02b8a1e563c34
Closes-Bug: #1766284
2018-04-25 12:22:43 +00:00
Nguyen Hai
6215887bc1 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Remove the '[build_sphinx]' section as described in:
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Change-Id: Ibd6c6e9cca238821099ce190784d077ffe4c2dee
2018-04-25 12:11:07 +00:00
Zuul
9246fec0eb Merge "Fix incompatible requirement" 2018-04-25 12:08:28 +00:00
Zuul
d1281d6130 Merge "Replace CentOS package mysql-devel > mariadb-devel" 2018-04-25 10:25:34 +00:00
Zuul
1fc9d6c252 Merge "k8s_fedora: Add flannel to master nodes" 2018-04-25 10:25:33 +00:00
Zuul
a659856c24 Merge "Add calico-node on k8s master node" 2018-04-25 09:16:45 +00:00
OpenStack Proposal Bot
9eac5ed54c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I7ddbf8eda3a0ac8533c47614e44f21d37ae7ef6f
2018-04-25 06:24:42 +00:00
Nguyen Hai
338b045c23 Fix incompatible requirement
- Fix lower-constraints don't match the lower bounds
in the requirements file(s). It may cause fail in
requirements-check.

Example fail: https://review.openstack.org/#/c/555209/

REF:
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129056.html

- Fix incompatible of eventlet in requirement.txt

Change-Id: I85486f47e08bac6cfb481871861f37d692025f58
2018-04-25 02:38:39 +00:00