1463 Commits

Author SHA1 Message Date
Pete Birley
3478106e56 Mariadb: Add security policy functions
This PS adds security policy functions to mariadb.

Change-Id: Ic0f035e0281281fb3f2977ea130385f65c9a04e4
Signed-off-by: Pete Birley <pete@port.direct>
2019-04-06 03:16:43 +00:00
Zuul
63b61b86eb Merge "[Calico] Using booleans where expected in values (not strings)" 2019-04-05 06:35:04 +00:00
Zuul
b5fe23872e Merge "Fixes the Apparmor gate for libvirt and memcached" 2019-04-05 01:54:17 +00:00
Zuul
62b065cd9f Merge "Readiness/Liveness probe for libvirt" 2019-04-05 00:55:38 +00:00
Randeep Jalli
3aa89c55f3 Fixes the Apparmor gate for libvirt and memcached
This updates the apparmor job to only use the docker default
profile for memcached, as the custom apparmor profiles used didnt
allow for a successful deployment. This also updates the libvirt
overrides, as the current change to use daemonset-overrides
required updating the container name.

Co-authored-by: wilkers.steve@gmail.com
Co-authored-by: ld366r@att.com

Change-Id: I00cb4c62a38e0e1178e45b4e34c946b3b53da6d5
2019-04-04 21:20:20 +00:00
Koffi Nogbe
3a686f854a Fix mysqldump default option
* Remove --skip-opt from the default option because it is not
    porting auto_increment option to the dump

Change-Id: I45f38b303be893803dde244921f50f5dcb1d865d
2019-04-04 12:01:10 +00:00
Zuul
aae64213c9 Merge "Libvirt: support per node overrides" 2019-04-04 08:11:31 +00:00
Chris Wedgwood
f343944f45 [Calico] Using booleans where expected in values (not strings)
The string "false" isn't boolean false.

Where possible use booleans in the values so constructs like:

   {{ if not .Values.some.thing }}
   # some thing is not set
   {{ end }}

work as expected.

In the places it's expanded and passed into the pod environment
variables it is converted to a string; we update those all the same so
that template logic will work.

Change-Id: I6142b9d514b2b21381dbf0de2f1351f5ab94e696
2019-04-04 07:26:58 +00:00
Hyunkook Cho
c7a6a96080 Ceph: fix overriding ceph monitor hosts value
all other charts that related with ceph have the logic
to override the ceph monitor hosts.
but storage class chart only has no logic to override the value.
to use external ceph, it must be able to set manually the ceph host.

Change-Id: Ib788e339606a2f7336a688aa276082503a18b04f
Signed-off-by: Hyunkook Cho <hk0713.cho@samsung.com>
2019-04-04 14:52:52 +09:00
Pete Birley
db209e0bb5 MariaDB: update password cleanly
This PS updates the password update logic to operate cleanly under all
senarios.

Change-Id: I675a344b00984c63cec34919f84a5e9dd8aa5b4e
Signed-off-by: Pete Birley <pete@port.direct>
2019-04-03 18:06:58 +00:00
Pete Birley
8863bcfc11 Mariadb: move to mariabackup as wsrep sst method
This PS moves mariadb to use mariabackup as the wsrep sst method.

Change-Id: Icc1c27d72a3bee5aaa091cdf3ca6cff0c5509f30
Signed-off-by: Pete Birley <pete@port.direct>
2019-04-02 09:57:46 -05:00
Zuul
15a0cd7c2b Merge "Improves ceph-provisioner storageclasses" 2019-04-02 05:37:26 +00:00
Zuul
76e4021648 Merge "Mariadb: Add logging output to wsrep-recover on startup" 2019-04-02 01:32:01 +00:00
Zuul
c6151fbb90 Merge "Add mariadb backup capability to mariadb chart" 2019-04-02 00:04:19 +00:00
RAHUL KHIYANI
f667804430 elasticsearch-exporter: Add security context for exporter pod/container
This adds the security context snippet for the elasticsearch
prometheus exporter container to set allowPrivilegeEscalation to false
and readOnlyRootFilesystem to true

Change-Id: Ia80aa9cfc837073fae0a884de5245764147d7ded
2019-04-01 22:56:56 +00:00
Zuul
73dadd8899 Merge "Elasticsearch: Add job to wait for Elasticsearch cluster formation" 2019-04-01 22:42:50 +00:00
Zuul
16172016fb Merge "Mariadb: Disable wsrep during setting of password" 2019-04-01 21:56:01 +00:00
Zuul
cd37034586 Merge "Consolidate apparmor check jobs" 2019-04-01 21:49:02 +00:00
Zuul
6452a14111 Merge "[ceph-osd] Fix ceph osd init script to handle udev" 2019-04-01 21:49:00 +00:00
Zuul
68b329294d Merge "Add postgresql backup capability to postgresql chart" 2019-04-01 20:12:57 +00:00
Steve Wilkerson
25932c97f0 Consolidate apparmor check jobs
There was an additional job added for checking libvirt's apparmor
profiles separately from the standard apparmor job that existed
previously. This adds the libvirt deployment to the previously
existing apparmor job and removes the apparmor-libvirt job.

Change-Id: I76b00f1e5dca4236f62150e4ac48b0777a05b29f
2019-04-01 14:32:38 -05:00
Steve Wilkerson
8193542c98 Elasticsearch: Add job to wait for Elasticsearch cluster formation
This adds a job that will query the Elasticsearch HTTP cat API to
determine whether the desired number of nodes have been discovered
via the Zen discovery mechanism to be included in the cluster.
This aims to address issues seen when upgrading Elasticsearch,
where the snapshot repository job may trigger due to endpoints
from older pods being present. This new job will be the dependency
required by the snapshot repository job to ensure the ES cluster
has the desired number of nodes before attempting to register a
snapshot repository or interact with the cluster

Change-Id: I94fbbfdec7ca66d04acca9558e56dca3b2bc7d52
2019-04-01 13:50:11 -05:00
Pete Birley
4031db390c Mariadb: Add logging output to wsrep-recover on startup
This PS adds logging output to the wsrep-recover function in the
mariadb startup script.

Change-Id: I98ea214852a0b54440b1ceeea363017397afcb52
Signed-off-by: Pete Birley <pete@port.direct>
2019-04-01 17:51:14 +00:00
Pete Birley
372eeb3a9c Mariadb: Disable wsrep during setting of password
This PS disables wsrep during the setting of admin passwords, which
is required to allow the cluster to come up from a dead stop.

Change-Id: Id9af65d57755f62afc672900bca79e5b11e9c8c9
Signed-off-by: Pete Birley <pete@port.direct>
2019-04-01 09:58:28 -05:00
Chinasubbareddy Mallavarapu
b5789283dd [ceph-osd] Fix ceph osd init script to handle udev
This is to fix udev_settle function by adding timeout for blkid
command as it will get stuck  on the host sometimes.

Change-Id: I378748991eecda9ea2af383ea04ecd97ab3d2948
2019-04-01 07:35:39 +00:00
kranthikirang
361f0bebb7 Improves ceph-provisioner storageclasses
Currently configuring storage classes is static. If
we want to add another storageclass for an exmaple
for harddisk then we have to create another yaml
along with update in .Values.yaml. Using this change
we can create as many storageclasses we want. Change
will basically iterate in loop and apply the values
present in .Values

At the same time we have to update the changes in
.Values.storageclass.rbd paramert values in all
applicable places

Change-Id: I3207f047c3f8b1a33dfb97c87b9ea7120b54c4b4
Story: ceph-provisioners-improvement
Signed-off-by: Kranthi Guttikonda <kranthi.guttikonda@b-yond.com>
Signed-off-by: kranthikirang <kranthi.guttikonda@b-yond.com>
2019-03-30 22:37:05 +00:00
bk160f
dfe3dddb31 Readiness/Liveness probe for libvirt
Adding the check "virsh list" to accomplish
readiness/liveness probe for libvirt

Change-Id: I5f16c0a83327d9350b968a3f9b2588df1d76fb30
2019-03-30 22:35:03 +00:00
Koffi Nogbe
2379b94b3d Add mariadb backup capability to mariadb chart
* backup script for mariadb
 * restore script for mariadb
 * cronjob to control backup automation for mariadb
 * add parameters to values.yaml

Change-Id: Ib0b6744f519ea1919507df0c2a50b45b27ac86ab
2019-03-30 22:34:14 +00:00
Cliff Parsons
8673bdda53 MariaDB Leader Election Enhancement
This patch set enhances the current MariaDB leader election algorithm
by adding a tiebreaker in case multiple nodes have the same sequence
number which happens to be the highest sequence number in the MariaDB
cluster. The tiebreaker is to pick the node which has the lowest node
number in the hostname.

This patch also changes the 409 status code reporting inside the
safe_update_configmap() function to be a warning instead of an error,
as it is indicative of a collision scenario rather than an actual
error.

Change-Id: Ifdff0250b520bb1972d79de94a491e566ed43997
2019-03-30 17:32:49 +00:00
Tin Lam
cf2e776946 Fix OSH-infra docs job
Removing and updated docs dependencies to make the docs job work again.

Change-Id: I8ebaef2776d4d54c6b60dc6bbbcbb2fe4e49addc
Signed-off-by: Tin Lam <tin@irrational.io>
2019-03-30 17:32:35 +00:00
Doug Aaser
200b5e902b Run Calico containers as unprivileged
These changes aim to remove blanket privileges from Calico and replace them
with the default pod privileges granted by Docker plus the few extended
privileges that Calico needs

Change-Id: I1342ef02086877bc69f752403a33278c9670ed86
2019-03-26 16:59:44 +00:00
Steven Webster
96d2c00391 Libvirt: support per node overrides
This commit adds support for per-node overrides to the libvirt chart.

For example, to enable a relaxed ACS check on one host, but not another,
one may have the following in the override values file:

conf:
  overrides:
    libvirt_libvirt:
      hosts:
      - name: host1.fqdn
        conf:
          qemu:
            relaxed_acs_check: 1
      - name: host2.fqdn
        conf:
          qemu:
            relaxed_acs_check: 0

Story: 2005283
Task: 30140

Change-Id: Ia3431db6b78692ec0140cce1bab9bae5937318a4
Signed-off-by: Steven Webster <steven.webster@windriver.com>
2019-03-25 17:02:15 -04:00
Zuul
85c204fee8 Merge "Elasticsearch: Update dependencies for components" 2019-03-25 19:11:01 +00:00
Steve Wilkerson
9f0ccaf186 Use Helm v2.13.1
This updates Helm from v2.13.0 to v2.13.1

Change-Id: If9a6284fca770f706261e7a2127485a23e04f5e5
2019-03-25 10:59:02 -05:00
Koffi Nogbe
ed93f3dc69 Add postgresql backup capability to postgresql chart
* backup script for postgresql
  * restore script for postgresql
  * cronjob to control backup automation for postgresql
  * add parameters to values.yaml

Change-Id: I5eaa82e824c9f361aa667c431cd93058391f2e60
2019-03-24 14:48:42 -04:00
Pete Birley
b5e8c41d2e RabbitMQ: Make cluster formation more robust
This PS updates the rabbitmq chart to make cluster formation
more robust, with the previous implementation it was possible
to form multiple descrete clusters within a single deployment
of the chart (eg if a network partition existed during formation)

Change-Id: Ie241d29230419ff829d9fbb22fa1a01275926903
Signed-off-by: Pete Birley <pete@port.direct>
2019-03-24 01:11:30 +00:00
Zuul
2aea1e4fe8 Merge "RabbitMQ: fix dependency checks for tests and wait job" 2019-03-22 20:45:24 +00:00
Zuul
6c9e1b1a15 Merge "[ceph-osd] fix name of ceph-osd daemonset during upgrades" 2019-03-22 17:43:56 +00:00
Pete Birley
f6ed763a6a RabbitMQ: fix dependency checks for tests and wait job
This PS fixes the dependency checks tor the tests and wait job.

Change-Id: I09301083bfc2d0218298a8c5e0dd4957bef11c42
Signed-off-by: Pete Birley <pete@port.direct>
2019-03-22 17:36:59 +00:00
Rahul Khiyani
edb24bd537 prometheus-kube-state-metrics: Add container security context
This adds the container security context to set
readOnlyRootFilesystem to true

Change-Id: I1cc81e2284dbbe94739fd498ccfd3e0ee96dfdbd
2019-03-22 14:02:08 +00:00
Chinasubbareddy Mallavarapu
5d7edbe7b4 [ceph-osd] fix name of ceph-osd daemonset during upgrades
This is to resolve ds name changes  during the site update which triggers
all osds to start at a time and deletes old ds which is causing some timesouts
on clients.

Change-Id: If004e8e46ea34d90d7e05dc41e873c7a64ec046f
2019-03-22 13:48:55 +00:00
Zuul
2b1e7ebc21 Merge "prometheus-alertmanager: Add container security context" 2019-03-22 05:44:19 +00:00
Zuul
f0cbc80d7e Merge "prometheus-openstack-exporter: Add container security context" 2019-03-22 02:22:27 +00:00
Rahul Khiyani
aeda85c642 prometheus-alertmanager: Add container security context
This adds the container security context to set
readOnlyRootFilesystem to true

Change-Id: Ic8d33ae817ace49bf5ead40b2b41c6002217aa5e
2019-03-22 01:57:35 +00:00
Zuul
ce8a75afa5 Merge "Fluent-logging securityContext" 2019-03-22 01:31:25 +00:00
Steve Wilkerson
f008379c8e Elasticsearch: Update dependencies for components
This updates the dependencies for the Elasticsearch chart to be
more cautious before proceeding. For example, this updates the
dependencies for the register snapshot job to wait until all
ES components have registered endpoints, and also updates the helm
test pod to wait for all components to have registered endpoints
and the snapshot job to have completed

Change-Id: Ie4e92bba4ae33b33cadb921bdda91ceb813e29e1
2019-03-21 13:41:29 -05:00
Pete Birley
984f8446cb RabbitMQ: remove default user config
Now that we explicity declare there is no need to define the default
username and password.

Change-Id: I95e41c411c2a86ae527283d5dc13b8a1f65b513a
Signed-off-by: Pete Birley <pete@port.direct>
2019-03-21 18:27:45 +00:00
Rahul Khiyani
478855dc7c Fluent-logging securityContext
securityContext with allowPrivilegeEscalation: false is implemented at
container level and leveraged the helm-toolkit snippet

Change-Id: Iddb18c87993fd3dc005c55f5678829c2a19718db
2019-03-21 14:28:14 +00:00
Steve Wilkerson
84f30ec103 Add release-annotation to pod spec, add missing annotations
This adds the release-annotation to the pod spec for the charts in
openstack-helm-infra. This also adds missing configmap annotations
to charts in openstack-helm-infra

Change-Id: Ie23f0c16a7a21d3929e98928db2bbcef69ae6490
2019-03-21 09:10:48 -05:00
Zuul
4a5cac564a Merge "make db-{drop,init) py3 compatible" 2019-03-21 06:34:04 +00:00