Skip to content

Commit 1c2d8ed

Browse files
authored
Merge pull request #418 from splunk/develop
Release/8.0.6
2 parents 0293190 + 405a421 commit 1c2d8ed

Some content is hidden

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

59 files changed

+3286
-3137
lines changed

.circleci/config.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
debian10-testing:
3636
machine:
3737
image: circleci/classic:latest
38+
resource_class: xlarge
3839
steps:
3940
- checkout
4041
- run:
@@ -61,9 +62,13 @@ jobs:
6162
name: Test if image size increase
6263
command: make test_debian10_image_size
6364
- run:
64-
name: Run Debian 10 image tests
65-
command: make run_tests_debian10
65+
name: Run small Debian 10 image tests
66+
command: make run_small_tests_debian10
6667
no_output_timeout: 20m
68+
- run:
69+
name: Run large Debian 10 image tests
70+
command: make run_large_tests_debian10
71+
no_output_timeout: 1h
6772
- store_artifacts:
6873
path: test-results
6974
destination: test-results
@@ -72,6 +77,7 @@ jobs:
7277
redhat8-testing:
7378
machine:
7479
image: circleci/classic:latest
80+
resource_class: xlarge
7581
steps:
7682
- checkout
7783
- run:
@@ -95,9 +101,13 @@ jobs:
95101
command: |
96102
make uf-redhat-8
97103
- run:
98-
name: Run Redhat 8 image tests
99-
command: make run_tests_redhat8
104+
name: Run small Redhat 8 image tests
105+
command: make run_small_tests_redhat8
100106
no_output_timeout: 20m
107+
- run:
108+
name: Run large Redhat 8 image tests
109+
command: make run_large_tests_redhat8
110+
no_output_timeout: 1h
101111
- store_artifacts:
102112
path: test-results
103113
destination: test-results
@@ -144,6 +154,4 @@ workflows:
144154
- security-scanning
145155
- debian10-testing
146156
- container-validation
147-
- redhat8-testing
148-
149-
157+
- redhat8-testing

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ splunk-ansible
88
*.xml
99
*clair-scanner*
1010
.env
11-
tests/fixtures/*
1211
venv

Makefile

Lines changed: 39 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ SPLUNK_ANSIBLE_BRANCH ?= develop
77
SPLUNK_COMPOSE ?= cluster_absolute_unit.yaml
88
# Set Splunk version/build parameters here to define downstream URLs and file names
99
SPLUNK_PRODUCT := splunk
10-
SPLUNK_VERSION := 8.0.5
11-
SPLUNK_BUILD := a1a6394cc5ae
10+
SPLUNK_VERSION := 8.0.6
11+
SPLUNK_BUILD := 152fb4b2bb96
1212
ifeq ($(shell arch), s390x)
1313
SPLUNK_ARCH = s390x
1414
else
@@ -289,23 +289,35 @@ sample-compose-up: sample-compose-down
289289
sample-compose-down:
290290
docker-compose -f test_scenarios/${SPLUNK_COMPOSE} down --volumes --remove-orphans || true
291291

292-
test: clean ansible test_setup all run_tests_centos7 run_tests_redhat8 run_tests_debian9
292+
test: clean ansible test_setup all run_small_tests run_large_tests
293293

294-
test_centos7: clean ansible splunk-centos-7 uf-centos-7 test_setup run_tests_centos7
294+
run_small_tests: run_small_tests_centos7 run_small_tests_redhat8 run_small_tests_debian9 run_small_tests_debian10
295295

296-
test_redhat8: clean ansible splunk-redhat-8 uf-redhat-8 test_setup run_tests_redhat8
296+
run_large_tests: run_large_tests_centos7 run_large_tests_redhat8 run_large_tests_debian9 run_large_tests_debian10
297297

298-
test_debian9: clean ansible splunk-debian-9 uf-debian-9 test_setup run_tests_debian9
298+
test_centos7: clean ansible splunk-centos-7 uf-centos-7 test_setup run_small_tests_centos7 run_large_tests_centos7
299299

300-
test_debian10: clean ansible splunk-debian-10 uf-debian-10 test_setup run_tests_debian10
300+
test_redhat8: clean ansible splunk-redhat-8 uf-redhat-8 test_setup run_small_tests_redhat8 run_large_tests_redhat8
301301

302-
run_tests_centos7:
303-
@echo 'Running the super awesome tests; CentOS 7'
304-
pytest -sv tests/test_docker_splunk.py --platform centos-7 --junitxml test-results/centos7-result/testresults_centos7.xml
302+
test_debian9: clean ansible splunk-debian-9 uf-debian-9 test_setup run_small_tests_debian9 run_large_tests_debian9
305303

306-
run_tests_redhat8:
307-
@echo 'Running the super awesome tests; RedHat 8'
308-
pytest -sv tests/test_docker_splunk.py --platform redhat-8 --junitxml test-results/redhat8-result/testresults_redhat8.xml
304+
test_debian10: clean ansible splunk-debian-10 uf-debian-10 test_setup run_small_tests_debian10 run_large_tests_debian10
305+
306+
run_small_tests_centos7:
307+
@echo 'Running the super awesome small tests; CentOS 7'
308+
pytest -n 2 --reruns 1 -sv tests/test_single_splunk_image.py --platform centos-7 --junitxml test-results/centos7-result/testresults_small_centos7.xml
309+
310+
run_large_tests_centos7:
311+
@echo 'Running the super awesome large tests; CentOS 7'
312+
pytest -n 2 --reruns 1 -sv tests/test_distributed_splunk_image.py --platform centos-7 --junitxml test-results/centos7-result/testresults_large_centos7.xml
313+
314+
run_small_tests_redhat8:
315+
@echo 'Running the super awesome small tests; RedHat 8'
316+
pytest -n 2 --reruns 1 -sv tests/test_single_splunk_image.py --platform redhat-8 --junitxml test-results/redhat8-result/testresults_small_redhat8.xml
317+
318+
run_large_tests_redhat8:
319+
@echo 'Running the super awesome large tests; RedHat 8'
320+
pytest -n 2 --reruns 1 -sv tests/test_distributed_splunk_image.py --platform redhat-8 --junitxml test-results/redhat8-result/testresults_large_redhat8.xml
309321

310322
test_setup:
311323
@echo 'Install test requirements'
@@ -316,13 +328,21 @@ test_setup:
316328
mkdir test-results/debian10-result || true
317329
mkdir test-results/redhat8-result || true
318330

319-
run_tests_debian9:
320-
@echo 'Running the super awesome tests; Debian 9'
321-
pytest -sv tests/test_docker_splunk.py --platform debian-9 --junitxml test-results/debian9-result/testresults_debian9.xml
331+
run_small_tests_debian9:
332+
@echo 'Running the super awesome small tests; Debian 9'
333+
pytest -n 2 --reruns 1 -sv tests/test_single_splunk_image.py --platform debian-9 --junitxml test-results/debian9-result/testresults_small_debian9.xml
334+
335+
run_large_tests_debian9:
336+
@echo 'Running the super awesome large tests; Debian 9'
337+
pytest -n 2 --reruns 1 -sv tests/test_distributed_splunk_image.py --platform debian-9 --junitxml test-results/debian9-result/testresults_large_debian9.xml
338+
339+
run_small_tests_debian10:
340+
@echo 'Running the super awesome small tests; Debian 10'
341+
pytest -n 2 --reruns 1 -sv tests/test_single_splunk_image.py --platform debian-10 --junitxml test-results/debian10-result/testresults_small_debian10.xml
322342

323-
run_tests_debian10:
324-
@echo 'Running the super awesome tests; Debian 10'
325-
pytest -sv tests/test_docker_splunk.py --platform debian-10 --junitxml test-results/debian10-result/testresults_debian10.xml
343+
run_large_tests_debian10:
344+
@echo 'Running the super awesome large tests; Debian 10'
345+
pytest -n 2 --reruns 1 -sv tests/test_distributed_splunk_image.py --platform debian-10 --junitxml test-results/debian10-result/testresults_large_debian10.xml
326346

327347
save_containers:
328348
@echo 'Saving the following containers:${CONTAINERS_TO_SAVE}'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Use the [GitHub issue tracker](https://github.com/splunk/docker-splunk/issues) t
9595

9696
If you have additional questions or need more support, you can:
9797
* Post a question to [Splunk Answers](http://answers.splunk.com)
98-
* Join the [#docker](https://splunk-usergroups.slack.com/messages/C1RH09ERM/) room in the [Splunk Slack channel](http://splunk-usergroups.slack.com)
98+
* Join the [#docker](https://splunk-usergroups.slack.com/messages/C1RH09ERM/) room in the [Splunk Slack channel](http://splunk-usergroups.slack.com). If you're a new Splunk customer you can register for Slack [here](http://splk.it/slack)
9999
* If you are a Splunk Enterprise customer with a valid support entitlement contract and have a Splunk-related question, you can also open a support case on the https://www.splunk.com/ support portal
100100

101101
See the official [support guidelines](docs/SUPPORT.md) for more detailed information.

base/debian-10/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ tar -xf /usr/bin/scloud.tar.gz -C /usr/bin/
4343
rm /usr/bin/scloud.tar.gz
4444

4545
cd /bin
46+
ln -s busybox clear
47+
ln -s busybox find
4648
ln -s busybox killall
4749
ln -s busybox netstat
4850
ln -s busybox nslookup

base/debian-9/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ tar -xf /usr/bin/scloud.tar.gz -C /usr/bin/
4343
rm /usr/bin/scloud.tar.gz
4444

4545
cd /bin
46+
ln -s busybox clear
47+
ln -s busybox find
4648
ln -s busybox diff
4749
ln -s busybox killall
4850
ln -s busybox netstat

base/redhat-8/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ chmod +x /bin/busybox
3535
microdnf -y --nodocs update gnutls kernel-headers
3636
microdnf -y --nodocs install python2-pip python2-devel redhat-rpm-config gcc libffi-devel openssl-devel
3737
pip2 --no-cache-dir install requests ansible jmespath
38-
microdnf -y remove gcc openssl-devel redhat-rpm-config python2-devel device-mapper-libs device-mapper trousers systemd systemd-pam \
38+
microdnf -y remove gcc openssl-devel redhat-rpm-config python2-devel device-mapper-libs device-mapper trousers \
3939
dwz dbus dbus-common dbus-daemon dbus-tools dbus-libs go-srpm-macros iptables-libs annobin cryptsetup-libs \
4040
ocaml-srpm-macros openblas-srpm-macros qt5-srpm-macros perl-srpm-macros rust-srpm-macros ghc-srpm-macros \
4141
efi-srpm-macros python-srpm-macros python-rpm-macros python3-rpm-macros python2-rpm-macros python3-rpm-generators \
@@ -50,6 +50,8 @@ tar -xf /usr/bin/scloud.tar.gz -C /usr/bin/
5050
rm /usr/bin/scloud.tar.gz
5151

5252
cd /bin
53+
ln -s busybox clear || true
54+
ln -s busybox find || true
5355
ln -s python2 python || true
5456
ln -s busybox diff || true
5557
ln -s busybox hostname || true

docs/CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Navigation
44

5+
* [8.0.6](#806)
6+
* [8.0.5.1](#8051)
57
* [8.0.5](#805)
68
* [8.0.4.1](#8041)
79
* [8.0.4](#804)
@@ -35,6 +37,35 @@
3537

3638
---
3739

40+
## 8.0.6
41+
42+
#### What's New?
43+
* Releasing new images to support Splunk Enterprise maintenance patch.
44+
45+
#### docker-splunk changes:
46+
* Bumping Splunk version. For details, see [Fixed issues for 8.0.6](https://docs.splunk.com/Documentation/Splunk/8.0.6/ReleaseNotes/Fixedissues)
47+
* Test rewrite for parallelization
48+
* Decouples `etc` backup directory from `SPLUNK_HOME`
49+
* Added tests and documentation for new features
50+
51+
#### splunk-ansible changes:
52+
* Support for declarative admin password, enabling password updates and rotations. `splunk.password` will always be the password for the admin user and changes to `splunk.password` will drive password reconciliation.
53+
* Added flag to disable pop-ups and new user tour
54+
* Fixed default variable propagation order
55+
56+
---
57+
58+
## 8.0.5.1
59+
60+
#### What's New?
61+
* New Splunk Enterprise maintenance patch. For details, see [Fixed issues for 8.0.5.1](https://docs.splunk.com/Documentation/Splunk/8.0.5/ReleaseNotes/Fixedissues)
62+
* Bundling in changes to be consistent with the release of [8.0.6](#806)
63+
64+
#### Changes
65+
* See [8.0.6](#806) changes
66+
67+
---
68+
3869
## 8.0.5
3970

4071
#### What's New?

splunk/common-files/entrypoint.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ Environment Variables:
124124
* SPLUNK_GROUP - group under which to run Splunk (default: splunk)
125125
* SPLUNK_HOME - home directory where Splunk gets installed (default: /opt/splunk)
126126
* SPLUNK_START_ARGS - arguments to pass into the Splunk start command; you must include '--accept-license' to start Splunk (default: none)
127+
* SPLUNK_PASSWORD - password to log into this Splunk instance, you must include a password (default: none)
127128
* SPLUNK_ROLE - the role of this Splunk instance (default: splunk_standalone)
128129
Acceptable values:
129130
- splunk_standalone
@@ -140,9 +141,9 @@ Environment Variables:
140141
* SPLUNK_APPS_URL - comma-separated list of URLs to Splunk apps which will be downloaded and installed
141142
142143
Examples:
143-
* docker run -it -p 8000:8000 splunk/splunk start
144-
* docker run -it -e SPLUNK_START_ARGS=--accept-license -p 8000:8000 -p 8089:8089 splunk/splunk start
145-
* docker run -it -e SPLUNK_START_ARGS=--accept-license -e SPLUNK_LICENSE_URI=http://example.com/splunk.lic -p 8000:8000 splunk/splunk start
144+
* docker run -it -e SPLUNK_PASSWORD=helloworld -p 8000:8000 splunk/splunk start
145+
* docker run -it -e SPLUNK_START_ARGS=--accept-license -e SPLUNK_PASSWORD=helloworld -p 8000:8000 -p 8089:8089 splunk/splunk start
146+
* docker run -it -e SPLUNK_START_ARGS=--accept-license -e SPLUNK_LICENSE_URI=http://example.com/splunk.lic -e SPLUNK_PASSWORD=helloworld -p 8000:8000 splunk/splunk start
146147
* docker run -it -e SPLUNK_START_ARGS=--accept-license -e SPLUNK_INDEXER_URL=idx1,idx2 -e SPLUNK_SEARCH_HEAD_URL=sh1,sh2 -e SPLUNK_ROLE=splunk_search_head --hostname sh1 --network splunknet --network-alias sh1 -e SPLUNK_PASSWORD=helloworld -e SPLUNK_LICENSE_URI=http://example.com/splunk.lic splunk/splunk start
147148
148149
EOF

splunk/common-files/updateetc.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# Copyright 2018 Splunk
3+
# Copyright 2018-2020 Splunk
44

55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -15,15 +15,17 @@
1515
# limitations under the License.
1616
#
1717

18-
if [[ -f "${SPLUNK_HOME}-etc/splunk.version" ]]; then
19-
IMAGE_VERSION_SHA=`cat ${SPLUNK_HOME}-etc/splunk.version | sha512sum`
18+
SPLUNK_ETC_BAK="${SPLUNK_ETC_BAK:-/opt/splunk-etc}"
19+
20+
if [[ -f "${SPLUNK_ETC_BAK}/splunk.version" ]]; then
21+
IMAGE_VERSION_SHA=`cat ${SPLUNK_ETC_BAK}/splunk.version | sha512sum`
2022

2123
if [[ -f "${SPLUNK_HOME}/etc/splunk.version" ]]; then
2224
ETC_VERSION_SHA=`cat ${SPLUNK_HOME}/etc/splunk.version | sha512sum`
2325
fi
2426

2527
if [[ "x${IMAGE_VERSION_SHA}" != "x${ETC_VERSION_SHA}" ]]; then
2628
echo Updating ${SPLUNK_HOME}/etc
27-
(cd ${SPLUNK_HOME}-etc; tar cf - *) | (cd ${SPLUNK_HOME}/etc; tar xf -)
29+
(cd ${SPLUNK_ETC_BAK}; tar cf - *) | (cd ${SPLUNK_HOME}/etc; tar xf -)
2830
fi
2931
fi

0 commit comments

Comments
 (0)