Skip to content

Commit 1f22fa8

Browse files
Merge pull request #1836 from jcantrill/es6_into_master2
Moving feature-es6x branch in master
2 parents e6163a6 + 370f4f3 commit 1f22fa8

File tree

47,708 files changed

+3505455
-45464
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47,708 files changed

+3505455
-45464
lines changed

Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1+
OPERATOR_LOGGING_IMAGE_STREAM?=stable
12
# Build the Docker images for Origin Aggregated Logging
23
build-images:
34
hack/build-images.sh
45
.PHONY: build-images
56

67
test:
7-
EXCLUDE_SUITE="upgrade|zzz-rsyslog|debug_level_logs|fluentd-forward|remote-syslog|out_rawtcp|zzz-duplicate-entries|read-throttling|viaq-data-model|zzzz-bulk-rejection" hack/testing/entrypoint.sh
8+
OPERATOR_LOGGING_IMAGE_STREAM=$(OPERATOR_LOGGING_IMAGE_STREAM) ./hack/test-e2e.sh
89
.PHONY: test
910

10-
test-upgrade:
11-
SUITE=test-upgrade hack/testing/entrypoint.sh
12-
.PHONY: test-upgrade
13-
14-
test-pre-upgrade:
15-
SUITE=test-pre-upgrade hack/testing/entrypoint.sh
1611
.PHONY: test-pre-upgrade

curator/lib/oalconverter/convert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def generate_defaults(self, legacy_config):
135135
regex = '|'.join(
136136
map(lambda project: project if legacy_config[project][self.RAW_REGEX] else self.format_regex(project), projects)
137137
+
138-
map(lambda project: self.format_regex(project), ['.searchguard', '.kibana']))
138+
map(lambda project: self.format_regex(project), ['.security', '.kibana']))
139139
return self.generate_action(unit, count, regex, exclude=True)
140140

141141
def validate_internal_config(self, config):
@@ -147,7 +147,7 @@ def validate_internal_config(self, config):
147147
except Exception as error:
148148
raise ValueError('[{0}] is not a valid regular expression. Message from compiler: {1}'.format(project, error))
149149
else:
150-
if project == '.kibana' or project == '.operations' or project == '.defaults' or project == '.searchguard' or project == '.audit':
150+
if project == '.kibana' or project == '.operations' or project == '.defaults' or project == '.security' or project == '.audit':
151151
continue
152152
# check project's name validity
153153
if len(project) > self.projectmaxlen:

docs/com.redhat.viaq-openshift-operations.asciidoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,15 @@ will give you the exact document corresponding to the record.
207207

208208
type: keyword
209209

210-
example: project.my-cool-project-in-lab04.748e92c2-70d7-11e9-b387-000d3af2d83b.2019.05.09
210+
example: container.app-write
211211

212-
Index name in which this message will be stored within the Elasticsearch.
213-
The value of this field is generated based on the source of the message.
212+
For Elasticsearch 6.x and later this is a name of a write index alias. The value depends on a log type
213+
of this message. Detailed documentation is found at
214+
https://github.com/openshift/enhancements/blob/master/enhancements/cluster-logging/cluster-logging-es-rollover-data-design.md#data-model
215+
216+
For Elasticsearch 5.x and earlier an index name in which this message will be stored within the Elasticsearch.
217+
The value of this field is generated based on the source of the message. Example of the value
218+
is 'project.my-cool-project-in-lab04.748e92c2-70d7-11e9-b387-000d3af2d83b.2019.05.09'.
214219

215220

216221

docs/com.redhat.viaq-openshift-project.asciidoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,15 @@ will give you the exact document corresponding to the record.
207207

208208
type: keyword
209209

210-
example: project.my-cool-project-in-lab04.748e92c2-70d7-11e9-b387-000d3af2d83b.2019.05.09
210+
example: container.app-write
211211

212-
Index name in which this message will be stored within the Elasticsearch.
213-
The value of this field is generated based on the source of the message.
212+
For Elasticsearch 6.x and later this is a name of a write index alias. The value depends on a log type
213+
of this message. Detailed documentation is found at
214+
https://github.com/openshift/enhancements/blob/master/enhancements/cluster-logging/cluster-logging-es-rollover-data-design.md#data-model
215+
216+
For Elasticsearch 5.x and earlier an index name in which this message will be stored within the Elasticsearch.
217+
The value of this field is generated based on the source of the message. Example of the value
218+
is 'project.my-cool-project-in-lab04.748e92c2-70d7-11e9-b387-000d3af2d83b.2019.05.09'.
214219

215220

216221

docs/org.ovirt.viaq-collectd.asciidoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,15 @@ will give you the exact document corresponding to the record.
202202

203203
type: keyword
204204

205-
example: project.my-cool-project-in-lab04.748e92c2-70d7-11e9-b387-000d3af2d83b.2019.05.09
205+
example: container.app-write
206206

207-
Index name in which this message will be stored within the Elasticsearch.
208-
The value of this field is generated based on the source of the message.
207+
For Elasticsearch 6.x and later this is a name of a write index alias. The value depends on a log type
208+
of this message. Detailed documentation is found at
209+
https://github.com/openshift/enhancements/blob/master/enhancements/cluster-logging/cluster-logging-es-rollover-data-design.md#data-model
210+
211+
For Elasticsearch 5.x and earlier an index name in which this message will be stored within the Elasticsearch.
212+
The value of this field is generated based on the source of the message. Example of the value
213+
is 'project.my-cool-project-in-lab04.748e92c2-70d7-11e9-b387-000d3af2d83b.2019.05.09'.
209214

210215

211216

elasticsearch/Dockerfile

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,43 @@
1-
FROM elasticsearch:5.6.16
1+
FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base
22

33
MAINTAINER OpenShift Development <[email protected]>
44

55
EXPOSE 9200
66
EXPOSE 9300
77
USER 0
88

9-
ENV ES_CONF=/etc/elasticsearch/ \
9+
ENV ES_PATH_CONF=/etc/elasticsearch/ \
1010
ES_HOME=/usr/share/elasticsearch \
11-
ES_VER=5.6.16 \
11+
ES_VER=6.8.1.redhat-6 \
1212
HOME=/opt/app-root/src \
1313
INSTANCE_RAM=512G \
1414
JAVA_VER=1.8.0 \
15+
JAVA_HOME=/usr/lib/jvm/jre \
1516
NODE_QUORUM=1 \
16-
OSE_ES_VER=5.6.16.2-redhat-1 \
17-
PROMETHEUS_EXPORTER_VER=5.6.16.0-redhat-1 \
17+
PROMETHEUS_EXPORTER_VER=6.8.1.0-redhat-1 \
18+
OPENDISTRO_VER=0.10.1.0-redhat-1 \
1819
PLUGIN_LOGLEVEL=INFO \
1920
RECOVER_AFTER_NODES=1 \
2021
RECOVER_EXPECTED_NODES=1 \
2122
RECOVER_AFTER_TIME=5m \
22-
RELEASE_STREAM=prod \
2323
DHE_TMP_KEY_SIZE=2048 \
24-
container=oci
24+
RELEASE_STREAM=origin
2525

26-
ARG OSE_ES_VER=5.6.16.2-redhat-1
27-
ARG OSE_ES_URL
28-
ARG PROMETHEUS_EXPORTER_VER=5.6.16.0-redhat-1
29-
ARG PROMETHEUS_EXPORTER_URL
30-
ARG MAVEN_REPO_URL=http://download-node-02.eng.bos.redhat.com/brewroot/repos/lpc-rhel-7-maven-build/latest/maven/
26+
ARG MAVEN_REPO_URL=http://download.eng.bos.redhat.com/brewroot/repos/lpc-openjdk-11-rhel-7-maven-build/latest/maven/
27+
28+
RUN packages="java-${JAVA_VER}-openjdk-headless \
29+
PyYAML \
30+
hostname \
31+
openssl \
32+
zip \
33+
unzip" && \
34+
yum install -y --setopt=tsflags=nodocs ${packages} && \
35+
rpm -V ${packages} && \
36+
yum clean all
37+
38+
ADD extra-jvm.options install-es.sh /var/tmp
39+
40+
RUN /var/tmp/install-es.sh
3141

3242
ADD sgconfig/ ${HOME}/sgconfig/
3343
ADD index_templates/ ${ES_HOME}/index_templates/
@@ -37,7 +47,9 @@ ADD kibana_ui_objects/ ${ES_HOME}/kibana_ui_objects/
3747
ADD probe/ ${ES_HOME}/probe/
3848
ADD init.sh run.sh prep-install.${RELEASE_STREAM} install.sh ${HOME}/
3949
COPY utils/** /usr/local/bin/
40-
RUN ln -s /usr/local/bin/logging ${HOME}/logging
50+
51+
ARG PROMETHEUS_EXPORTER_URL=${MAVEN_REPO_URL}org/elasticsearch/plugin/prometheus/prometheus-exporter/${PROMETHEUS_EXPORTER_VER}/prometheus-exporter-${PROMETHEUS_EXPORTER_VER}.zip
52+
ARG OPENDISTRO_URL=${MAVEN_REPO_URL}com/amazon/opendistroforelasticsearch/opendistro_security/${OPENDISTRO_VER}/opendistro_security-${OPENDISTRO_VER}.zip
4153

4254
RUN ${HOME}/install.sh
4355

elasticsearch/Dockerfile.centos7

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,43 +6,39 @@ EXPOSE 9200
66
EXPOSE 9300
77
USER 0
88

9-
ENV ES_CONF=/etc/elasticsearch/ \
9+
ENV ES_PATH_CONF=/etc/elasticsearch/ \
1010
ES_HOME=/usr/share/elasticsearch \
11-
ES_VER=5.6.16 \
11+
ES_VER=6.8.1 \
1212
HOME=/opt/app-root/src \
1313
INSTANCE_RAM=512G \
1414
JAVA_VER=1.8.0 \
1515
JAVA_HOME=/usr/lib/jvm/jre \
1616
NODE_QUORUM=1 \
17-
OSE_ES_VER=5.6.16.2 \
18-
PROMETHEUS_EXPORTER_VER=5.6.16.0 \
17+
PROMETHEUS_EXPORTER_VER=6.8.1.0 \
18+
OPENDISTRO_VER=0.10.1.0 \
1919
PLUGIN_LOGLEVEL=INFO \
2020
RECOVER_AFTER_NODES=1 \
2121
RECOVER_EXPECTED_NODES=1 \
2222
RECOVER_AFTER_TIME=5m \
2323
DHE_TMP_KEY_SIZE=2048 \
2424
RELEASE_STREAM=origin
2525

26-
ARG OSE_ES_VER=5.6.16.2
27-
ARG SG_VER=5.6.16-19.3
26+
ARG MAVEN_REPO_URL=https://repo1.maven.org/maven2/
2827

29-
LABEL io.k8s.description="Elasticsearch container for EFK aggregated logging storage" \
30-
io.k8s.display-name="Elasticsearch ${ES_VER}" \
31-
io.openshift.expose-services="9200:https, 9300:https" \
32-
io.openshift.tags="logging,elk,elasticsearch" \
33-
architecture=x86_64 \
34-
name="openshift3/logging-elasticsearch"
35-
36-
ADD elasticsearch.repo /etc/yum.repos.d/elasticsearch.repo
37-
# install the RPMs in a separate step so it can be cached
38-
RUN rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch && \
39-
yum install -y --setopt=tsflags=nodocs --nogpgcheck \
40-
java-${JAVA_VER}-openjdk-headless \
41-
elasticsearch-${ES_VER} \
42-
openssl \
43-
PyYAML && \
28+
RUN packages="java-${JAVA_VER}-openjdk-headless \
29+
PyYAML \
30+
hostname \
31+
openssl \
32+
zip \
33+
unzip" && \
34+
yum install -y --setopt=tsflags=nodocs ${packages} && \
35+
rpm -V ${packages} && \
4436
yum clean all
4537

38+
ADD extra-jvm.options install-es.sh /var/tmp/
39+
40+
RUN /var/tmp/install-es.sh
41+
4642
ADD sgconfig/ ${HOME}/sgconfig/
4743
ADD index_templates/ ${ES_HOME}/index_templates/
4844
ADD index_patterns/ ${ES_HOME}/index_patterns/
@@ -52,13 +48,12 @@ ADD probe/ ${ES_HOME}/probe/
5248
ADD init.sh run.sh prep-install.${RELEASE_STREAM} install.sh ${HOME}/
5349
COPY utils/** /usr/local/bin/
5450

55-
ARG OSE_ES_URL
5651
ARG PROMETHEUS_EXPORTER_URL=https://github.com/vvanholl/elasticsearch-prometheus-exporter/releases/download/${PROMETHEUS_EXPORTER_VER}/prometheus-exporter-${PROMETHEUS_EXPORTER_VER}.zip
57-
ARG SG_URL
52+
#LEAVE FOR FUTURE
53+
#ARG OPENDISTRO_URL=${MAVEN_REPO_URL}com/amazon/opendistroforelasticsearch/opendistro_security/${OPENDISTRO_VER}/opendistro_security-${OPENDISTRO_VER}.zip
54+
ARG OPENDISTRO_URL=https://github.com/jcantrill/security/releases/download/v${OPENDISTRO_VER}/opendistro_security-${OPENDISTRO_VER}.zip
5855

59-
RUN ln -s /usr/local/bin/logging ${HOME}/logging && \
60-
${HOME}/install.sh && \
61-
rm -rf /tmp/lib
56+
RUN ${HOME}/install.sh
6257

6358
WORKDIR ${HOME}
6459
USER 1000

elasticsearch/elasticsearch.repo

Lines changed: 0 additions & 8 deletions
This file was deleted.

elasticsearch/extra-jvm.options

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-XX:+UnlockExperimentalVMOptions
2+
-XX:+UseCGroupMemoryLimitForHeap
3+
-XX:MaxRAMFraction=2
4+
-XX:InitialRAMFraction=2
5+
-XX:MinRAMFraction=2

elasticsearch/index_templates/com.redhat.viaq-openshift-operations.template.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
"aliases": {
33
".all": {}
44
},
5+
"index_patterns": [
6+
"infra-*",
7+
"audit.infra-*"
8+
],
59
"mappings": {
6-
"_default_": {
10+
"_doc": {
711
"_meta": {
8-
"version": "2019.12.16.0"
12+
"version": "2020.01.23.0"
913
},
1014
"date_detection": false,
1115
"dynamic_templates": [
@@ -970,6 +974,5 @@
970974
"order": 10,
971975
"settings": {
972976
"index.refresh_interval": "5s"
973-
},
974-
"template": ".operations.*"
977+
}
975978
}

0 commit comments

Comments
 (0)