1630 Commits

Author SHA1 Message Date
Zuul
630efb7fb0 Merge "Fluentd: Support Daemonset deployment" 2019-05-28 17:50:43 +00:00
Zuul
0513501201 Merge "Fix python template" 2019-05-28 17:39:25 +00:00
Steve Wilkerson
bdaf866a4e Fluentd: Support Daemonset deployment
This adds required changes to the Fluentd chart to allow for
deploying Fluentd as either a deployment or a daemonset. This
follows the pattern laid out by the ingress chart. This also
updates the single and multinode jobs to deploy fluentd as both
a daemonset and a deployment for validation

Change-Id: I84353a2daa2ce56ff59882a8d33203286ed27e06
Signed-off-by: Steve Wilkerson <sw5822@att.com>
2019-05-28 08:23:44 -05:00
Jean-Philippe Evrard
ed200cb3b0 Wait for pods for openstack-support scenario
The wait for pods is not consistently used in the
openstack-support scenario.

This is a problem, as some helm charts deploys are
basically masking issues that can arise.

This should fix it.

Change-Id: Ib3e8f16bea701bf20375d4deec7c7869e7bf85c2
2019-05-28 07:51:34 +00:00
Zuul
fd2eb31920 Merge "fix typo errors" 2019-05-27 17:05:26 +00:00
Tin Lam
6bae1b020d Fix python template
This patch set removes an unused import that is not python3 compatible.

Change-Id: I360989c8eb23065d8e655d4583eb97338244412d
Signed-off-by: Tin Lam <tin@irrational.io>
2019-05-26 21:43:19 +00:00
Zuul
5cb47aed80 Merge "Separate fluentbit and fluentd charts" 2019-05-24 17:34:27 +00:00
Zuul
a12892f724 Merge "Ceph-rgw: Fix securityContext" 2019-05-24 15:44:00 +00:00
Tin Lam
752bbf48c4 Migrate ubuntu jobs from Xenial to Bionic
This patch set is based on [0] that also fixed up a handful of Bionic-
specific changes required for the gates to pass.

[0] https://review.openstack.org/#/c/649698/

Co-Authored-By: ghanshyam <gmann@ghanshyammann.com>

Change-Id: I217a27c53eec2a51ddbea7226a23042558c5946b
2019-05-24 13:52:08 +00:00
Steve Wilkerson
abb5e0f713 Separate fluentbit and fluentd charts
This begins to split the fluent-logging chart into two separate
charts, one for fluentbit and one for fluentd. This is to help
isolate each chart and its dependencies better, and to treat each
service as its own entity.

This also moves the job for creating Elasticsearch templates to
the Elasticsearch chart, as the elasticsearch chart should have
ownership of creating the templates for its indices.

This also performs some general cleanup of values keys that are
not currently used

Change-Id: I827277d5faa62b8b59c5960330703d23c297ca47
Signed-off-by: Steve Wilkerson <sw5822@att.com>
2019-05-24 06:31:09 -05:00
Zuul
1a3788ddf1 Merge "CephFs-provisioner: fix securitycontext in the pod" 2019-05-24 03:08:04 +00:00
Zuul
ff2d62c9bf Merge "Fluent-logging: Remove utils for generating configuration files" 2019-05-24 03:08:03 +00:00
Zuul
2de8acf4a4 Merge "Fluentd: Update ClusterRole object" 2019-05-24 03:08:01 +00:00
Zuul
96af0f1567 Merge "Elasticsearch: Remove LoadBalancer type service" 2019-05-24 00:04:52 +00:00
Zuul
31f840b52b Merge "Add statefulset update strategy to elasticsearch data statefulset" 2019-05-24 00:04:50 +00:00
RAHUL KHIYANI
56ff59a0ea Ceph-rgw: Fix securityContext
Change-Id: I3ff9e4567cf223d1c6823b00086b4635b424b148
allowPrivilegeEscalation: true to allowPrivilegeEscalation: false
2019-05-23 23:06:11 +00:00
Zuul
f4e096ced1 Merge "Fluent-logging: Fix read-only-fs" 2019-05-23 22:06:48 +00:00
Steve Wilkerson
36d03133f8 Add statefulset update strategy to elasticsearch data statefulset
This adds the helm-toolkit function for defining the update
strategy for the elasticsearch-data statefulset and sets the chart
default to RollingUpdate

Change-Id: Ia10ea7bf000474e597bdb36778118a96d85b93c1
2019-05-23 22:05:06 +00:00
Steve Wilkerson
e2c9c367fa Fluentd: Update ClusterRole object
This updates the ClusterRole object for fluentd by removing a
duplicate rules: key and also adds 'get' to the list of verbs for
the "" apiGroups (as it's required for the kubernetes metadata
plugin)

Change-Id: Ia901d9fe9a0784038f0f882297c64afcce58ca7e
2019-05-23 22:04:26 +00:00
Chinasubbareddy Mallavarapu
cb767a5694 CephFs-provisioner: fix securitycontext in the pod
This is to update correct user id in security context for
cephfs provisoner pod as there is  no user with 99 exist
in the container.

Change-Id: I1bbe46df555b35b8afe636327fa83015fd784db0
2019-05-23 22:03:41 +00:00
Zuul
038a6e58ae Merge "CephFs-provisioner: fix cephfs storageclass" 2019-05-23 22:02:58 +00:00
Zuul
66f62aff40 Merge "Elasticsearch: Use openstackhelm elasticsearch-s3 image as default" 2019-05-23 22:02:56 +00:00
Zuul
c9b55fefac Merge "Fix helm-toolkit snippet for statefulset updates" 2019-05-23 22:02:55 +00:00
Steve Wilkerson
b44d99b36a Fluent-logging: Remove utils for generating configuration files
This removes the utilities for generating the fluentd, fluentbit,
and parser configuration files from yaml and moves to instead
consume the configuration files as strings from the values.yaml.

This allows for easier creation and maintenance of configuration
files for fluentd and fluentbit, as the utilities became unwieldy
with complex configuration files.

This necessitated the removal of the core test executed by the
charts helm tests, but this would be required as we move to split
the charts regardless

Change-Id: Ied4a76bbdf58b54a6d702db04a7120b64f54dcac
Signed-off-by: Steve Wilkerson <sw5822@att.com>
2019-05-23 13:06:19 -05:00
Steve Wilkerson
65f60a3893 Elasticsearch: Use openstackhelm elasticsearch-s3 image as default
This updates the Elasticsearch chart to use the elasticsearch-s3
image built from the openstack-helm-images Dockerfile instead of
using the previous image from a personal repository

Change-Id: I4d6b18aea11920de33ce1f4b63d39c18cd2b98d3
2019-05-23 12:55:04 -05:00
Chinasubbareddy Mallavarapu
53bdbf00ed CephFs-provisioner: fix cephfs storageclass
This is to remove invalid key "userSecretName" for
cephfs storageclass as we are having toruble to provision
a pvc with cephfs storageclass with "userSecretName" key .

Failed to provision volume with StorageClass
"cephfs": invalid option "userSecretName"

Change-Id: Ide52987c9f8ef8fc2327bf30747395e70dc05f99
2019-05-23 11:41:44 -05:00
Zuul
85c03c422e Merge "Add docker-default (enforce) AppArmor profile to openvswitch" 2019-05-23 15:05:53 +00:00
Zuul
8731166dbf Merge "Mariadb: Correct parameter name" 2019-05-23 14:19:14 +00:00
Zuul
c3acf282a3 Merge "Point to OSH-images images" 2019-05-23 14:19:12 +00:00
sg774j
ac640f273a Mariadb: Correct parameter name
Changed use_local_path_for_single_pod to use_local_path_for_single_pod_cluster
in values.yaml. It was a bug

Change-Id: I88c3fe6c2bbab87baec3ec7d1d94501d6fd741eb
2019-05-22 17:33:43 +00:00
Zuul
c01098f396 Merge "Fetch Total_OSD value from ceph-client/values.yaml" 2019-05-22 17:23:49 +00:00
Zuul
9144fdb562 Merge "mysql: set hostpath for mysql-data" 2019-05-21 22:15:58 +00:00
Venkata, Krishna (kv988c)
1ad5857957 Fetch Total_OSD value from
ceph-client/values.yaml

Change-Id: I6af79af0627f85550655f5066dd6278bf0b5365a
2019-05-21 17:15:48 -05:00
Steve Wilkerson
9cefc2c334 Elasticsearch: Remove LoadBalancer type service
This fixes the elasticsearch-logging service by removing the
LoadBalancer type configuration from the service template. This
was mistakenly added in a previous change

Change-Id: Id2f866147c2dcccc10c83bd54094d54cf3bd227b
2019-05-21 12:59:20 -05:00
Itxaka
42d6c2321d
mysql: set hostpath for mysql-data
There is currently an issue with deploying single
pod mysql clusters in which restarting or killing
the pod will result in a crashloopbackoff.
The mysql data is indeed lost and the start script
(thinking the cluster was alive before
due to the grastate configmap) tries to restore
the cluster instead of bootstrapping it.
Due to this, if the mysql pod is killed or restarted
in the CI, we will lose all the mysql data, will not
recover, and this results in a broken environment.

When volume.use_local_path_for_single_pod.enabled value
is set to true, which we will apply on single node/single
pod testing, this patch will deploy a local volume
for mysql at the location specified under
volume.use_local_path_for_single_pod.host_path
The data will be kept intact in case
there is a pod restart, as it can read the data again,
and recover itself.

When it is false, which is the default for non-CI,
nothing changes, and an empty dir is used. This
data WILL be lost upon restart, so it is advised
to use volumes instead for production purposes,
by setting Values.volume.enabled to true.

task: 28729

Change-Id: I6ec0bd1087eb06b92ced7dc56ff5b6a156aad433
2019-05-21 19:41:13 +02:00
weiyj
e99c122dfe fix typo errors
Change-Id: I4571bcce48038452d28318cb7344ac9fea778aea
2019-05-20 21:29:11 +00:00
Steve Wilkerson
38a6062b7a Fix helm-toolkit snippet for statefulset updates
This fixes the incorrect statefulset update helm-toolkit
snippet, as the previous implementation used incorrect keys
and fields for statefulset updates. See below:

https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#updating-statefulsets
https://github.com/kubernetes/kubernetes/issues/68397

Change-Id: I5044460f19f0c824b08f99a90472c2e4a0e53e52
2019-05-20 08:12:15 -05:00
Renis Makadia
5985b61286 Ceph-Client: Update, Enable and Cleanup helm tests
- Update ceph-client chart to
1) By default, enable ceph-client helm test. Update enabler
key in values.yaml to follow pattern as in other charts
2) Add needed dependancy for ceph-client helm tests
3) Update helm test script to reduce output and update
error msgs
4) Removed unwanted ENV variables SPECS and EXPECTED_POOLMINSIZE
- Update gate scripts to run helm test command

Change-Id: I6a0e4f5107e49dac081ac2037bcc0f9c0864793f
2019-05-18 03:09:45 +00:00
Zuul
defb8b1f23 Merge "Ceph: Decrease ceph mon data store space to 15%" 2019-05-18 02:05:43 +00:00
Zuul
ce43b2927d Merge "Create upgrade statefulset tpl for helm-toolkit" 2019-05-18 01:40:49 +00:00
Chinasubbareddy Mallavarapu
a40d93cef1 Ceph: Decrease ceph mon data store space to 15%
Ceph issues a HEALTH_WARN status in cluster log when the available
disk space of the monitor’s data store is lower than or equal to this percentage.

This is to decrease the value from default value 30% to 15%.

Change-Id: Id412969f1dfb08b07356747f13aa31f00b41130d
2019-05-17 14:39:37 -05:00
Taylor, Stephen (st053q)
47a4b611b3 Do not use blkid to create partition symlinks
This removes the use of blkid to find disk partitions and their
associated partition UUIDs. Instead /proc/partitions is parsed
to enumerate disk partitions and sgdisk is used to extract their
partition UUIDs. This prevents a race condition from causing a
deadlock between ceph-osd and krbd when deploying ceph-osd pods.

Change-Id: I875f8c0565ce6efb7cd2052725af37dec3bb3a59
2019-05-17 11:20:51 -06:00
Gage Hugo
4f29af3d59 Create upgrade statefulset tpl for helm-toolkit
This change creates a snippet in helm-toolkit for specifying
the maxUnavailable and maxSurge values under rollingUpdate for
statefulsets. This can be utilized then by charts that contain
statefulsets.

Change-Id: I6f48cf1d2faf78b56103525771e3d4c3ecdc6db6
2019-05-17 17:18:30 +00:00
Jean-Philippe Evrard
5f5e988fb3 Point to OSH-images images
We now have a process for OSH-images image building,
using Zuul, so we should point the images by default to those
images, instead of pointing to stale images.

Without this, the osh-images build process is completely not
in use (and completely opaque to deployers), and updating the
osh-images process or patching its code has no impact on OSH.

This should fix it.

Change-Id: Ic00bd98c151669dc2485cd88e0e8c2ab05445959
2019-05-17 08:17:32 +00:00
RAHUL KHIYANI
6a19f3e1c5 Fluent-logging: Fix read-only-fs
This PS adds the default read-only-rootfs to true for fluent-logging chart

Change-Id: I82084c2712f5d1a99c5206e1488f60ae2819d007
2019-05-16 14:10:15 -05:00
Zuul
b69584bd65 Merge "Expose Anti-Affinity Weight Setting" 2019-05-16 17:17:03 +00:00
RAHUL KHIYANI
366357d893 Kibana: set read-only-fs
This PS permits read-only filesystems to back the containers by setting
the default to true

Additionally /run is uniformly applied across all long running pods
as a memory backed emptydir

Change-Id: Ia7344e2c8caa1f25101bf30445cdfe277f89c143
2019-05-15 20:19:59 +00:00
Zuul
28fb847ab1 Merge "HTK: Update kubernetes_pod_anti_affinity function" 2019-05-15 19:38:26 +00:00
Zuul
c8ea0fa9fe Merge "Postgresql: Fix security context" 2019-05-15 16:35:18 +00:00
Zuul
d815b5af38 Merge "Ceph: Dont attempt to reuse monmap if it exists" 2019-05-15 16:35:16 +00:00