Commit Graph

4757 Commits (267bee3a6d1975d47086b4b0a62e1e4c2c528ad6)

Author SHA1 Message Date
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
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 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
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
Zuul bf55af8172 Merge "Set default value for keystone_auth_default_policy" 2019-07-16 23:18:17 +00:00
Spyros Trigazis c9262419fd ci: Fix ADD_ALLOW_PRIV build-arg
In [0] we added a build-arg for the deprecaeted
--allow-priv option. This arg needs to be defined
after the FROM line in the dockerfile.

Note, other systems like podman can use the
arg even before the FROM statement. Docker needs
it after.

[0] I2935d34ace08800c805028f1673bc515f2f577e6

story: 2005124

Change-Id: I34af2451e92962b835ac0f1a1e49dfcbfd477830
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-07-12 16:04:19 +02:00
Zuul 60c7e31177 Merge "Allow for cluster-autoscaler deployment roll-out" 2019-07-12 09:48:24 +00:00
Zuul aeecdc7b78 Merge "k8s: Clear cni configuration" 2019-07-11 14:45:21 +00:00
Zuul 1963fce81a Merge "Add npd_enabled label" 2019-07-10 00:35:48 +00:00
Zuul 764cfe041d Merge "Add build-arg for --allow-privileged" 2019-07-05 08:18:09 +00:00
Diogo Guerra 48e42ec07b Allow for cluster-autoscaler deployment roll-out
hostNetwork: True ties the pod to the host ip:port.

When a CA update roll-out is triggered, the new pod cannot bind to the
port because it is already in use by the pod to be replaced, making the
new pod fail, and in consequence the update.

This patch removes this restriction

Story: 2006161
Task: 35670

Change-Id: I039b2ed91c9623883635bf9e72d85135f1bdae89
Signed-off-by: Diogo Guerra <dy090.guerra@gmail.com>
2019-07-04 14:17:07 +00:00
Spyros Trigazis afd2403adc k8s: Clear cni configuration
In fedora atomic 29, podman is present and configures
its own cni. We need to clear the cni configuration
otherwise we will get  that cni0 is already used.

story: 2006171
task: 35682

Change-Id: Ic70938184bdb98eaaf4f384ce553818cf2624a2a
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-07-04 14:37:40 +02:00
Feilong Wang a4d34490c3 [fedora-atomic] kube_tag is not respcted
This is a regression issue introduced by the rolling upgrade feature,
without setting the master_kube_tag and minion_kube_tag, they will
be set with the default value. This patch fixes it by keeping them
consistent with the kube_tag label.

Change-Id: I8b0ca3f87c9a52d48ecb75e4dd8de18a61a10d6f
2019-07-03 14:57:42 +12:00
Lingxian Kong d79c5a863f Set default value for keystone_auth_default_policy
A default value for keystone_auth_default_policy is needed when using
label keystone_auth_enabled=false during creating k8s cluster, otherwise
it will fail because of missing the default value. This patch fixes it.

Story: 2005915
Task: 34175

Change-Id: I465725ecd55bf7c4dccaa75a8cd23c59a5be8db0
2019-07-02 03:12:53 +00:00
Zuul 2ed6fa35d0 Merge "[k8s] Update prometheus monitoring helm based configuration" 2019-06-30 21:58:40 +00:00
Zuul 430e66ed73 Merge "k8s_fedora: Update to kubernetes v1.14.3" 2019-06-30 21:55:38 +00:00
Diogo Guerra 41b83cef43 [k8s] Update prometheus monitoring helm based configuration
* prometheus-operator chart version upgraded from 0.1.31. to 5.12.3
* Fix an issue where when using Feature Gate Priority the scheduler
would evict the prometheus monitoring node-exporter pods
* Fix an issue where intensive CPU utilization would make the
metrics fail intermitently or completly fail
* Prometheus resources are now calculated based on the MAX_NODE_COUNT
requested
* Change the sampling rate from the standard 30s to 1 minute (Rollback)
* Add the missing tiller CONTAINER_INFRA_PREFIX variable to the ConfigMap
* Add label prometheus_operator_chart_tag to enable the user to
specify the stable/prometheus-operator chart to use
* Fix breaking changes on CoreDNS metrics introduced by
8fb27da2fc
* Fix Graphana dashboard not showing data.


Change-Id: If42873cd6668c07e4e911e4eef5e4ae2232be66f
Task: 30777
Task: 30779
Story: 2005588
Signed-off-by: Diogo Guerra <dy090.guerra@gmail.com>
2019-06-25 10:07:55 +00:00
Zuul 8146e8d737 Merge "Make kubernetes apiserver start after network" 2019-06-24 23:09:49 +00:00
Zuul c1c5f2963d Merge "Revert "support http/https proxy for discovery url"" 2019-06-24 23:09:48 +00:00
Jake Yip 35542713aa Make kubernetes apiserver start after network
Without this, the service fails to start with

 runc[1150]: error: unable to find suitable network address.error='no
 default routes found in "/proc/net/route" or "/proc/net/ipv6_route"'.
 Try to set the AdvertiseAddress directly or provide a valid BindAddress
 to fix this

Story: 2005698
Task: 31019
Change-Id: I0da4381cdc06f15815bd5ae51417aaf93d36b2c1
2019-06-24 22:20:48 +00:00
Ricardo Rocha f989ab6957 Fix auto_scaling_enabled default in docs
The default for auto_scaling_enabled in kubernetes is set to false in
the cluster heat templates, but true in the end user docs. Update the
end user docs to match the actual value.

Change-Id: Ie11a12f4ee8e5fbb760c177de72f8a3d88c751c5
Story: #2005928
Task: #34270
2019-06-21 13:54:11 +02:00
Spyros Trigazis fe0f0efa72 Add build-arg for --allow-privileged
https://github.com/kubernetes/kubernetes/pull/77820
https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.15.md#node

story: 2005124

Change-Id: I2935d34ace08800c805028f1673bc515f2f577e6
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-06-21 11:47:50 +02:00
Diogo Guerra 10a5996e32 Add npd_enabled label
Change-Id: Id3c5fdda6424d1a51f2e60ae26ca3069d93e00ee
Story: 2004782
Task: 34192
Signed-off-by: Diogo Guerra <dy090.guerra@gmail.com>
2019-06-20 19:01:42 +02:00
Spyros Trigazis 85bd42474b Build kubernetes v1.15.0
story: 2005124
task: 30581

Change-Id: I38157a8af7e38b007344942f54608eb413a4dfd9
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-06-19 20:44:57 +02:00
Spyros Trigazis d7035775c6 ci: Rotate dockerhub password
Depends-On: https://review.opendev.org/666196
Change-Id: I4f913bc06a68cf0f3d61d836ab8a7acae54d50f7
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-06-19 01:01:59 +00:00
Mohammed Naser 2ad3fd8756 k8s_fedora: Update to kubernetes v1.14.3
The previous patch I7ac0cffcdc8712503e2ea584b12d28ed3a7748b7
seems to have missed a few other variables so we're still
deploying 1.11 clusters by default.

Change-Id: Ia443e3a129418048270487bf46af2cff488731f3
story: 2005380
task: 30362
2019-06-18 16:33:20 -04:00
Zuul 77d4408fc4 Merge "k8s_fedora: Update to kubernetes v1.14.3" 2019-06-14 12:30:19 +00:00