Commit Graph

4781 Commits (00f518fc59fff311603eb9f6536ca71cfa22f31e)

Author SHA1 Message Date
Ricardo Rocha 00f518fc59 Take kubeproxy_options into account on proxy setup
The label kubeproxy_options was being ignored when setting up both
master and minions. Add it to the kube proxy args.

Change-Id: Ic830f19e1af062e90d066e6df4df2e4376e4f379
Story: 2006465
Task: 36394
2019-08-28 11:56:35 +02:00
Zuul 3e665ed0d9 Merge "Fix addon tag/version parsing" 2019-08-26 11:36:39 +00:00
Spyros Trigazis efff708625 Publish 1.16 k8s images
Missed from I35617f67af1157cb39d22a17f10defa26bce2f09

story: 2005124
task: 36320

Change-Id: I8b4d20fb393883ca700347d94ed9d7adb4d176f5
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-08-23 10:10:58 +02:00
Zuul 7665c0a707 Merge "kubernetes builds for v1.{13,14,15,16}.x" 2019-08-23 00:48:13 +00:00
Zuul 479022eb3e Merge "[api-ref] Add network,subnet and FIP for cluster" 2019-08-22 18:35:32 +00:00
Spyros Trigazis 68c0e86a46 kubernetes builds for v1.{13,14,15,16}.x
kubernetes_version_v1_13: v1.13.10
kubernetes_version_v1_14: v1.14.6
kubernetes_version_v1_15: v1.15.3
kubernetes_version_v1_16: v1.16.0-beta.1

story: 2005124
task: 36320

Change-Id: I35617f67af1157cb39d22a17f10defa26bce2f09
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-08-22 09:15:47 +00:00
Bharat Kunwar 06f78353f4 Fix heat-container-agent by setting LC_ALL=C
At the moment, the Python locale module expects `en_US.utf8` to be
present.  More recent fedora rawhides only come with `C`, `C.utf8` and
`POSIX` locale options unlike the older rawhides. The workaround is to
build the Dockerfile with environment variable `LC_ALL` set to `C`.  See
https://storyboard.openstack.org/#!/story/2006381#comment-141003 for a
longer description of the problem.

Change-Id: I412dd84f09dc217f2c9d974fe203c296b0710ef0
Story: 2006381
Task: 36184
2019-08-22 08:02:46 +00:00
Bharat Kunwar b99673f87c Disable gpg check in fedora:rawhide image
The heat-container-agent is currently failing to build due to misconfigured
upstream fedora:rawhide image. We can revert this change later.

Change-Id: I66723ae4329985c84a4549e44a4a7624927b3045
Story: 2006381
Task: 36184
2019-08-22 08:02:46 +00:00
Feilong Wang 3b147e368e [api-ref] Add network,subnet and FIP for cluster
Add API ref change for fixed-network, fixed-subnet and
floating_ip_enabled for cluster creation.

Task: 36326
Story: 2006208

Change-Id: I2724934de96de1a348d72bf39ff114e3f323eb9e
2019-08-22 17:58:15 +12:00
Bharat Kunwar 9e815f6af4 Fix cloud-config file
This patch fixes bad generated cloud-config file due to missing double quotes.

As a result, kube-controller-manager and kubelet services fail to start.

This is a regression introduced in https://review.opendev.org/#/c/666625/.

Change-Id: I0e0a3786e084fc4d3aae3151791d79c3956d2e52
Task: 36192
Story: 2005333
2019-08-19 13:58:25 +00:00
Feilong Wang b3a183dc50 Fix addon tag/version parsing
When doing rolling upgrade, the addon tag/version will be parsed
to make sure there is no downgrade. But if there is tag/version
is not well-formated, it can't be parsed by pbr.version.SemanticVersion.
This patch adds a catch to avoid throwing error and just skip
this case.

Task: 36186
Story: 2002210

Change-Id: I846cd0fd40a6607c36fff8992d98d8a55c49b3fa
2019-08-09 13:50:49 +12:00
Zuul 04fd0470ad Merge "k8s: stop introspecting instance name" 2019-08-08 19:50:58 +00:00
Mohammed Naser 2f2d05c826 k8s: stop introspecting instance name
We kept introspecting the name of the instance with the assumption
that the network always existed under .novalocal

This is not always the case, with certain variables changed inside
Neutron it is possible to control this, therefore, leading in failing
deploys.

With this change, we pass the instance name directly to the cluster
and therefore we always have the accurate name.

Task: 36160
Story: 2006371

Change-Id: I2ba32844b822ffc14da043e6ef7d071bb62a22ee
2019-08-07 21:24:06 +00:00
Feilong Wang 243eb6aa73 Release k8s images v1.15.2, v1.14.5, v1.13.9 and v1.12.10
Story: 2005124
Task: 36111

Change-Id: Ib719dc4ce8b00eb7ebbef663c99c4d2117590c2f
2019-08-07 13:53:08 +12:00
Zuul f1cf3d0b38 Merge "Support auto_healing_controller" 2019-08-06 08:40:25 +00:00
Zuul 3bfac10ff1 Merge "k8s: refactor functions into KubernetesDriver" 2019-08-04 22:08:15 +00:00
Zuul 4ce24e0650 Merge "Add Python 3 Train unit tests" 2019-08-01 23:46:15 +00:00
Zuul 1d81c1acbf Merge "Blacklist sphinx 2.1.0 (autodoc bug)" 2019-08-01 22:56:53 +00:00
Zuul 871c0bccdb Merge "Set train-dev as the default tag for heat-container-agent" 2019-08-01 22:22:53 +00:00
Zuul 267bee3a6d Merge "Add oslo_log command options to magnum-db-manage" 2019-08-01 19:46:06 +00:00
Zuul 60e62940c3 Merge "Bump the openstackdocstheme extension to 1.20" 2019-08-01 19:46:05 +00:00
Zuul 55369d96c8 Merge "Add missing ws separator between words" 2019-08-01 19:46:03 +00:00
Zuul ce5765bbf5 Merge "Fix missing print format error" 2019-08-01 19:46:02 +00:00
Zuul 47f5b8874d Merge "Update current k8s version after upgrade" 2019-08-01 19:45:58 +00:00
Zuul 38d57307df Merge "Support py3.x for make cert scripts" 2019-08-01 19:44:59 +00:00
Zuul 8f41778bb5 Merge "Add network config to stabilise multi-NIC scenario" 2019-08-01 11:01:55 +00:00
Zuul fdb971459e Merge "Add information about the cluster in magnum event notifications" 2019-08-01 10:26:30 +00:00
Zuul f9ad8ce302 Merge "Fix py3 issue of heat-container-agent" 2019-08-01 10:25:41 +00:00
Zuul fe339554ae Merge "Allow setting network, subnet and FIP when creating cluster" 2019-08-01 10:25:37 +00:00
Zuul 4036974bc1 Merge "Update api-ref location" 2019-08-01 09:22:54 +00:00
Zuul b9557eabe1 Merge "Update keystone_authtoken config reference" 2019-08-01 08:25:20 +00:00
pengyuesheng 749a792eb4 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I1e6e570d4db575d611212198d11ee4b84884ab23
2019-08-01 09:41:35 +08:00
Feilong Wang 32989b4f7b Allow setting network, subnet and FIP when creating cluster
When using a public cluster template, user still need the capability
to reuse their existing network/subnet, and they also need to be
able to turn of/off the floatingip to overwrite the setting in the
public template. This patch supports that by adding those three
items as parameters when creating cluster.

Story: 2006208
Task: 35797

Change-Id: I11579ff6b83d133c71c2cbf49ee4b20996dfb918
2019-07-31 20:41:20 +12:00
pengyuesheng 5438a3c6e3 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: I9a167c082d685f02766349ba9e301afd52d0d284
2019-07-30 16:52:22 +08:00
Feilong Wang fb8d018501 Support py3.x for make cert scripts
Instead of using "print xxx", it'd better to use "print(xxx)"
to make it supports both py2.x and py3.x for make-cert.sh and
make-cert-client.sh

Task: 36024
Story: 2006283

Change-Id: Iaf6ab7172367bc96d19f2d1236cc038460a7d461
2019-07-30 12:13:08 +12:00
Feilong Wang bd23e58825 Fix py3 issue of heat-container-agent
Now the default python version of rawhide has been upgraded to
python 3.7.4, this patch fixes those py2->py3 issues which followed
from the origin heat-agent commits[1][2].

[1] 25cd394bbe
[2] 73e2125532

Task: 35989
Story: 2006283

Change-Id: I23056513dcc6f0cb0c7d41aa529f6a2e77679db9
2019-07-30 12:07:00 +12:00
Zuul 2d9e05877b Merge "Return ClusterID for resize and upgrade" 2019-07-29 23:40:50 +00:00
Bharat Kunwar 425fb0fa32 Add network config to stabilise multi-NIC scenario
When there is more than one NIC attached to an instance, openstack cloud
provider returns a random InternalIP back to the host resulting in instability
with API server which only talks to a default interface.

This patch incorporates the changes made in
https://github.com/kubernetes/cloud-provider-openstack/pull/444 which enables
OpenStack Cloud Controller Manager (OCCM) to respect the
`internal-network-name` in cloud-config file which ensures that InternalIP
remains stable.

Uses a separate cloud-config file for OCCM to ensure in-tree Cinder volumes
remain compatible.

Change-Id: Idfa52ed2d512e7dc383a556371e896205dd542f9
Story: 2005333
Task: 30271
2019-07-29 09:07:26 +00:00
Emanuel Andrecut e5eade03dc Add information about the cluster in magnum event notifications
Magnum is sending notifications like cluster create but has no
details regarding the cluster, like cluster UUID. Notifications
from other OpenStack projects contain full detailed information
(e.g. instance UUID in Nova instance create notification).
Detailed notifications are important for other OpenStack
projects like Searchlight or third party projects that cache
information regarding OpenStack objects or have custom actions
running on notification. Caching systems can efficiently update
one single object (e.g. cluster), while without notifications
they need to periodically retrieve object list, which is
inefficient.

Change-Id: I820fbe0659222ba31baf43ca09d2bbb0030ed61f
Story: #2006297
Task: 36009
2019-07-29 11:23:42 +03:00
Andreas Jaeger df54de88a3 Update docs links
Many links are broken or point to redirect pages, update all of them.

Use better RST for intra-document links so that they do not silently
break if documents move.

Use opendev.org consistently for git.

Change-Id: I8fedff2fff82177fd12da808b8b421270cbe2d95
2019-07-26 15:41:57 +02:00
Feilong Wang c6bf1da085 Set train-dev as the default tag for heat-container-agent
Based on the policy of heat-container-agent tag, now it's updated
as train-dev and as long as we release Train, it will be updated
with train-stable.

Change-Id: Iec43df292dbd6a7e7ee33a0d4b8670b653a7ebbd
2019-07-26 10:01:27 +12:00
Feilong Wang 92d516903a Return ClusterID for resize and upgrade
Magnum needs to return ClusterID for resize and upgrade to be
consistent with other actions of cluster.

Task: 35988
Story: 2002210

Change-Id: Ib15e0cbecd1cbfa57a3008a3f3917d37be7f8f0c
2019-07-26 09:49:30 +12:00
Feilong Wang 903c8a4de7 Update current k8s version after upgrade
After a k8s version upgrade, the initial KUBE_TAG in heat-params will be
out of date. The patch will append a new KUBE_TAG to log and update
the current k8s version to make sure it's always consistent.

Story: 2002210
Task: 35949

Change-Id: Ie8044316bb1ba64a37c54f5f75ced1d47b35a3aa
2019-07-25 21:36:25 +00:00
Spyros Trigazis 451358a57c heat-agent: Do not use absolute path
In a recent version of fedora base and
python/pip that comes with it, pip installed
pkgs put their binaries in /usr/local/bin
instead of /usr/bin. Since the lanuch script is
a bash script we do not have to use the absolute
path.

Change-Id: I9f31d047fe538114136d2199b447e3fe8248aa8c
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-07-25 12:02:56 +02:00
Lingxian Kong 52155f0e76 Support auto_healing_controller
This patch allows the user to choose the auto-healing service by
introducing a new label 'auto_healing_controller', currently, 'draino'
and 'magnum-auto-healer'[1] are supported. 'draino' is the default value
for backward compatibility.

[1]: https://github.com/kubernetes/cloud-provider-openstack/blob/master/docs/using-magnum-auto-healer.md

Change-Id: I7ff14837a8d7d360b72c8f40733e84c88c4269d4
2019-07-24 17:52:33 +12:00
Theodoros Tsioutsias 810e81195e Fix kubernetes systemd service templates
There are cases where systemd fails to restart kubernetes services.
This change fixes that by inceasing the restart interval in the
service templates.

Change-Id: I305644a78cee80db43b561e71a532feb414d8322
story: 2006265
task: 35956
2019-07-23 14:44:29 +00:00
Zuul a70341e278 Merge "ci: Fix ADD_ALLOW_PRIV build-arg" 2019-07-23 09:28:53 +00:00
Andreas Jaeger b43c0a32c0 Update api-ref location
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.

Note that redirects will be set up as well but let's point now to the
new location.

For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html

Change-Id: Ie4c3d26404a22791a9cbd2e6f14f822e7e5a6d13
2019-07-22 18:30:23 +02:00
Zuul b9436bbded Merge "Fix auto_scaling_enabled default in docs" 2019-07-22 12:51:35 +00:00
Corey Bryant 5823054627 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I0ddfd7fde55302809a98bb8a6d745de4079b9a87
Story: #2005924
Task: #34219
2019-07-19 10:48:58 -04:00