4554 Commits

Author SHA1 Message Date
Ricardo Rocha
b555f90c10 Allow overwriting labels on swarm mode creation
Allow passing label values on cluster creation for swarm mode. This is
available in all kubernetes drivers as well as swarm, but somehow missed
on swarm mode.

Story: 2004942
Task: 29343

Change-Id: Ie3ac66f45e27cc92993116c3df0b33873dc67e24
2019-02-06 14:28:59 +01:00
Zuul
a4164eddd8 Merge "[k8s_fedora_atomic] Delete floating ip for load balancer" 2019-02-01 15:19:26 +00:00
Zuul
dad2bdfbbe Merge "[k8s-fedora-atomic] Update k8s default version" 2019-02-01 11:34:53 +00:00
Zuul
2d07719867 Merge "heat-agent: Add openssh-clients" 2019-02-01 11:34:51 +00:00
Spyros Trigazis
e7efb49aac heat-agent: Add openssh-clients
Add openssh-client to the heat-agent to act on the
host.

story: 2002210
task: 29142

Change-Id: I6e52291e4fc750418c70a22cc386034fa729d765
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-01-30 23:08:27 +00:00
Feilong Wang
f69a54d979 [k8s-fedora-atomic] Update k8s default version
And also update the default value of keystone_auth_enabled from False
to True in favor of prompting the integration of OpenStack and K8s.

Change-Id: I0fcea762d467e1afeecb175f65b9b13ad9ee1f71
2019-01-31 11:15:45 +13:00
Feilong Wang
0a5fd471c3 Support multi k8s image versions
Change-Id: Icae30a7d6c5f779e75587f398d06dc149378e827
2019-01-30 12:59:24 +13:00
Spyros Trigazis
60f9799374 ci: Rebuild kubernetes v1.11.6 containers
Change-Id: I531bf1fef6a87d8fbbf8f16c22c3db6a80797b69
2019-01-28 11:56:57 +01:00
Zuul
77435e5797 Merge "Update kube cmd documentation links" 2019-01-28 09:32:44 +00:00
Zuul
f241da6a80 Merge "Enable CoreDNS prometheus metrics plugin" 2019-01-28 09:32:41 +00:00
Ricardo Rocha
6a9c490bd8 Update kube cmd documentation links
Change-Id: I2f6aca27d0f640f01e8e031f759479c776b2523a
2019-01-28 10:10:15 +01:00
akhiljain23
2ccf639a39 Add framework for magnum-status upgrade check
This commit adds the functionality of magnum-status CLI for performing
upgrade checks as part of the Stein cycle upgrade-checkers goal.
It only includes a sample check which must be replaced by real checks in
future.

Change-Id: Ia8a74fd8bd5a804e71bb04eb0615fa114a517bc4
Story: 2003657
Task: 26138
2019-01-27 04:26:30 +00:00
Lingxian Kong
f63761a804 [k8s_fedora_atomic] Delete floating ip for load balancer
When user creates LoadBalancer type service in k8s cluster, a floating
ip may be created and associated with the load balancer VIP. Magnum
now could delete the load balancers automatically in the cluster
pre-delete method, should also remove the floating ip as needed.

This patch depends on the github PR for cloud-provider-openstack:
https://github.com/kubernetes/cloud-provider-openstack/pull/433

Story: 2004836
Change-Id: Ia553aff4e66033346c6bfe120a72992bec79e136
2019-01-25 12:15:08 +13:00
Zuul
1b8a3ba163 Merge "Use oslo_serialization instead of the json module directly" 2019-01-23 22:53:24 +00:00
Zuul
7e0b4b32f0 Merge "support http/https proxy for discovery url" 2019-01-23 10:42:03 +00:00
Zuul
ed4223786e Merge "Fix prometheus monitoring" 2019-01-23 00:00:28 +00:00
Erik Olof Gunnar Andersson
daf34d9df8 Use oslo_serialization instead of the json module directly
* Always use oslo jsonutils.
* Consistently import jsonutils as-is.
* Use dump_as_bytes instead of dumps.
https://wiki.openstack.org/wiki/Python3#Serialization:_base64.2C_JSON.2C_etc.

Change-Id: I2b65faa7df43a1d58205e8ff106ff62f73d78198
2019-01-21 16:28:03 -08:00
Zuul
c0c5502577 Merge "Use python3 for functional tests" 2019-01-19 15:08:41 +00:00
Zuul
70b89f07e4 Merge "Use MultiType and types.text instead of str" 2019-01-18 12:56:38 +00:00
Spyros Trigazis
9f3719674b Use python3 for functional tests
* Run by default with python3.
* Add python2 functinal-api job.

Change-Id: Ic5c3c4ef57284767665d3c5dc92c59671218ebe1
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-01-18 12:12:16 +00:00
Erik Olof Gunnar Andersson
41cd85794f Use MultiType and types.text instead of str
The goal of this is to fix python3 compatibility issues.


story: 2003236
task: 23698
Change-Id: I555c7faecfcccaaa3649ef8c631b99a01e747c0b
2019-01-18 11:01:57 +00:00
Bharat Kunwar
6a03482717 Bump k8s version up to v1.11.5
Change-Id: I77f46ac03cfd3f1e86db6e3327b37c27d8f0edab
2019-01-17 15:30:48 +00:00
Michal Arbet
54bea06b5a Fix python3 compatibility
Change-Id: Id8a0913dde556a3e59b1ffdb22ca5e2aabd257a2
Closes-Bug: #1803972
2019-01-17 08:46:52 +00:00
Feilong Wang
b6936894c4 Fix prometheus monitoring
There are 2 changes included in this patch:

1. Using cluster ip instead of fixed ip for grafana service to
make sure the address is reachable.

2. Move node exporter to prometheus-monitoring namespace and
make it as a DaemonSet to collect metrics from master node.

Task: 28468
Story: 2004590

Change-Id: I9090c6dc4b38e1a1466c4c3a6a827d95c089fb41
2019-01-17 11:10:54 +13:00
Lingxian Kong
49d0444974 Do not use 'exit' in the script
The scripts in kube_cluster_config SoftwareConfig resource are combined
together as one script inside the VM, any 'exit' clause will stop
executing the following script.

Change-Id: I25965c663e6e1ca5a59d0f28098174810bd76df1
2019-01-16 13:45:55 +13:00
Zuul
6e19837ad1 Merge "Removed admin_* from devstack config" 2019-01-15 22:17:42 +00:00
Zuul
f3ee6b54cb Merge "Release note for cluster pre-delete" 2019-01-15 11:12:29 +00:00
Zuul
06a92ccec3 Merge "Remove -U from pip install" 2019-01-15 11:12:28 +00:00
ricolin
63aa9caf4d Remove -U from pip install
'pip install -U' ugrades specified packages, this is not necessary
since we use constraints, remove the parameter '-U' from the line.

Change-Id: I2582c1a1995bb4cf903d4ce2e1ebb3fca930ea01
2019-01-15 02:54:28 +00:00
Diogo Guerra
09f880743d Enable CoreDNS prometheus metrics plugin
- Update coredns container version from 1.0.1 to 1.3.0
- Enable prometheus /metrics plugin

Change-Id: I4e37db8dd95f2df08ad2cf51ae861b47eacda457
Task: 28900
Story: 2004623
Signed-off-by: Diogo Guerra <dy090.guerra@gmail.com>
2019-01-14 18:50:38 +01:00
Feilong Wang
59da4e25a6 Support Keystone AuthN and AuthZ for k8s
Now cloud-provider-openstack of Kubernetes has a webhook to support
Keystone authorization and authentication. With this feature, user
can use a new label 'keystone-auth-enabled' to enable the keystone
authN and authZ.

DocImpact
Task: 21637
Story: 1755770

Change-Id: I3d21ad8f55c0d7308a302f62db9e9af147a604f8
2019-01-14 13:46:42 +13:00
Zuul
0bf9ccadcb Merge "containers: clean-up build code" 2019-01-08 21:32:21 +00:00
Zuul
30f6859b13 Merge "Change docker image pulling policy from Always to IfNotPresent" 2019-01-08 10:21:14 +00:00
Zuul
484ef3a483 Merge "k8s_build: Build kubernetes v1.11.6 containers" 2019-01-07 09:09:23 +00:00
Zuul
99d5a3dcbf Merge "k8s_fedora: Use external kubernetes/cloud-provider-openstack" 2019-01-06 22:12:22 +00:00
Guang Yee
ffc61816c8 support http/https proxy for discovery url
HTTP(S) proxy can be specified when creating the template.

https://docs.openstack.org/magnum/latest/admin/magnum-proxy.html

However, it is not being utilized when talking to a public etcd discovery
service, which result in failed cluster creation. We need to be able to
use HTTP(S) proxy when services are running behind a firewall.

Change-Id: I13d86b0dc7c232a51149107f0412219388d8c2cd
story: 2004664
2019-01-02 13:17:10 -08:00
Zuul
019133d7b3 Merge "fix bug link in readme" 2018-12-20 19:26:25 +00:00
Erik Olof Gunnar Andersson
ba1ca0e499 Removed admin_* from devstack config
The admin_* variables are a relic of the Keystone V2 api and
should no longer be used at all.

It's important to keep the devstack config clean, as it is often
used as a reference for configuring services.

* Removed deprecated admin_user, admin_password and admin_tenant.

Story: 2004272
Task: 27821

Change-Id: I132e670f446e5172dc4f1847be7779645060ca4d
2018-12-20 04:00:07 +00:00
leledashenqi
26c28a03d2 Change docker image pulling policy from Always to IfNotPresent
Do not repeat pulling images when container recreate in magnum cluster.

Change-Id: Iaa618309375cf17d6511ae371a6a15a3345d4d6d
Story:2004644
Task:28595
2018-12-20 09:21:58 +08:00
Jim Bach
6c61a1a949 k8s_fedora: Use external kubernetes/cloud-provider-openstack
* Use the external cloud-provider [0]
* Label master nodes
* Make the script the deploys the cloud-provider and clusterroles
  for the apiserver a SoftwareDeployment
* Rename kube_openstack_config to cloud-config,
  for cinder to workm the kubelet expects the cloud config name only
  like this. Keep a copy of kube_openstack_config for backwards
  compatibility.

Change-Id: Ife5558f1db4e581b64cc4a8ffead151f7b405702
Task: 22361
Story: 2002652
Co-Authored-By: Spyros Trigazis <spyridon.trigazis@cern.ch>
2018-12-19 10:56:47 +01:00
Mohammed Naser
b6ad606bd2 containers: clean-up build code
The containers code use a code path for installing things which
can all be done using existing CI tooling, let's use that rather
than build our stuff from scratch.

Change-Id: I1bcf5dfaac62666f48f7cce70d53244814b0b7db
2018-12-18 19:47:56 -05:00
Spyros Trigazis
b577aa42c3 k8s_build: Build kubernetes v1.11.6 containers
* swicth from testing repo to openstackmagnum

Change-Id: Ib337be87c2f62ab911a56c24bbe3a03b402d812d
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2018-12-18 12:26:36 +01:00
Zuul
40980e7bdb Merge "[k8s] Cluster creation speedup" 2018-12-18 02:22:10 +00:00
Zuul
8eedd4e087 Merge "Delete Octavia loadbalancers for fedora atomic k8s driver" 2018-12-17 09:20:16 +00:00
Zuul
aaf549bada Merge "Fix use of magnum_repository in container-publish" 2018-12-16 01:00:05 +00:00
Spyros Trigazis
d391dbdc3d Fix use of magnum_repository in container-publish
Change-Id: Iaa8f4ed2163f6dac364b1b8e9ada469afad38e63
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2018-12-16 00:21:49 +01:00
Zuul
a9bf7fb236 Merge "Changes in container builder" 2018-12-15 23:06:40 +00:00
Spyros Trigazis
60c996d2b4 Changes in container builder
* do not log the login command
* change dockerhub creds
* fix reference of tag in the push images task
* add retries
* remove repository parameter
* pull fedora from docker.io
* name docker_image tasks for each kubernetes and magnum images
* drop async logs

Change-Id: Iead202bdf9d7d42d0b7e21bea73a298678be714b
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2018-12-15 22:28:49 +01:00
Lingxian Kong
cae7fa21b6 [k8s] Cluster creation speedup
- Start workers as soon as the master VM is created, rather than
  waiting all the services ready.
- Move all the SoftwareDeployment outside of kubemaster stack.
- Tweak the scripts in SoftwareDeployment so that they can be combined
  into a single script.

Story: 2004573
Task: 28347
Change-Id: Ie48861253615c8f60b34a2c1e9ad6b91d3ae685e
Co-Authored-By: Lingxian Kong <anlin.kong@gmail.com>
2018-12-15 11:59:57 +00:00
Zuul
36e64fad69 Merge "functional: bump flavor specs" 2018-12-14 22:30:12 +00:00