Skip to content

Commit bf8b219

Browse files
authored
Merge pull request #436 from splunk/develop
Release/8.1.0.1 + 7.3.8
2 parents 7adf4cb + 4ec43b1 commit bf8b219

File tree

6 files changed

+82
-14
lines changed

6 files changed

+82
-14
lines changed

Makefile

Lines changed: 2 additions & 2 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.1.0
11-
SPLUNK_BUILD := f57c09e87251
10+
SPLUNK_VERSION := 8.1.0.1
11+
SPLUNK_BUILD := 24fd52428b5a
1212
ifeq ($(shell arch), s390x)
1313
SPLUNK_ARCH = s390x
1414
else

base/centos-7/install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ echo "
4141
## Allows people in group sudo to run all commands
4242
%sudo ALL=(ALL) ALL" >> /etc/sudoers
4343

44+
# Remove nproc limits
45+
rm -rf /etc/security/limits.d/20-nproc.conf
46+
4447
# Clean
4548
yum clean all
4649
rm -rf /install.sh /anaconda-post.log /var/log/anaconda/*

base/redhat-8/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ microdnf -y --nodocs install wget sudo shadow-utils procps tar tzdata
3232
#install busybox direct from the multiarch since epel isn't availible yet for redhat8
3333
wget -O /bin/busybox https://busybox.net/downloads/binaries/1.28.1-defconfig-multiarch/busybox-`arch`
3434
chmod +x /bin/busybox
35-
microdnf -y --nodocs update gnutls kernel-headers
35+
microdnf -y --nodocs update gnutls kernel-headers librepo libnghttp2
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
3838
microdnf -y remove gcc openssl-devel redhat-rpm-config python2-devel device-mapper-libs device-mapper trousers \

docs/CHANGELOG.md

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

33
## Navigation
44

5+
* [8.1.0.1](#8101)
56
* [8.1.0](#810)
67
* [8.0.7](#807)
78
* [8.0.6](#806)
@@ -14,6 +15,7 @@
1415
* [8.0.2](#802)
1516
* [8.0.1](#801)
1617
* [8.0.0](#800)
18+
* [7.3.8](#738)
1719
* [7.3.7](#737)
1820
* [7.3.6](#736)
1921
* [7.3.5](#735)
@@ -39,6 +41,20 @@
3941

4042
---
4143

44+
## 8.1.0.1
45+
46+
#### What's New?
47+
* Releasing new images to support Splunk Enterprise maintenance patch.
48+
49+
#### docker-splunk changes:
50+
* Bumping Splunk version. For details, see [Fixed issues for 8.1.0.1](https://docs.splunk.com/Documentation/Splunk/8.1.0/ReleaseNotes/Fixedissues)
51+
* Updated RH8 packages per vulnerability scan
52+
53+
#### splunk-ansible changes:
54+
* Bugfixes and cleanup
55+
56+
---
57+
4258
## 8.1.0
4359

4460
#### What's New?
@@ -253,6 +269,17 @@
253269

254270
---
255271

272+
## 7.3.8
273+
274+
#### What's New?
275+
* New Splunk Enterprise maintenance patch. For details, see [Fixed issues for 7.3.8](https://docs.splunk.com/Documentation/Splunk/7.3.8/ReleaseNotes/Fixedissues)
276+
* Bundling in changes to be consistent with the release of [8.1.0.1](#8101)
277+
278+
#### Changes
279+
* See [8.1.0.1](#8101) changes
280+
281+
---
282+
256283
## 7.3.7
257284

258285
#### What's New?

docs/SUPPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The following prerequisites and dependencies must be installed on each node you
1717
* Chipset:
1818
* `splunk/splunk` image supports x86-64 chipsets
1919
* `splunk/universalforwarder` image supports both x86-64 and s390x chipsets
20-
* Kernel version 4.0 or higher
20+
* Kernel version 4.x
2121
* Docker engine:
2222
* Docker Enterprise Engine 17.06.2 or higher
2323
* Docker Community Engine 17.06.2 or higher

tests/test_single_splunk_image.py

Lines changed: 48 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,31 @@ def test_splunk_scloud(self):
8181
time.sleep(5)
8282
# If the container is still running, we should be able to exec inside
8383
# Check that the version returns successfully for multiple users
84-
exec_command = self.client.exec_create(cid, "scloud version", user="splunk")
85-
std_out = self.client.exec_start(exec_command)
86-
assert "scloud version " in std_out
87-
exec_command = self.client.exec_create(cid, "scloud version", user="ansible")
84+
for user in ["splunk", "ansible"]:
85+
exec_command = self.client.exec_create(cid, "scloud version", user=user)
86+
std_out = self.client.exec_start(exec_command)
87+
assert "scloud version " in std_out
88+
except Exception as e:
89+
self.logger.error(e)
90+
raise e
91+
finally:
92+
if cid:
93+
self.client.remove_container(cid, v=True, force=True)
94+
95+
def test_splunk_ulimit(self):
96+
cid = None
97+
try:
98+
# Run container
99+
cid = self.client.create_container(self.SPLUNK_IMAGE_NAME, tty=True, command="no-provision")
100+
cid = cid.get("Id")
101+
self.client.start(cid)
102+
# Wait a bit
103+
time.sleep(5)
104+
# If the container is still running, we should be able to exec inside
105+
# Check that nproc limits are unlimited
106+
exec_command = self.client.exec_create(cid, "sudo -u splunk bash -c 'ulimit -u'")
88107
std_out = self.client.exec_start(exec_command)
89-
assert "scloud version " in std_out
108+
assert "unlimited" in std_out
90109
except Exception as e:
91110
self.logger.error(e)
92111
raise e
@@ -2635,12 +2654,31 @@ def test_uf_scloud(self):
26352654
time.sleep(5)
26362655
# If the container is still running, we should be able to exec inside
26372656
# Check that the version returns successfully for multiple users
2638-
exec_command = self.client.exec_create(cid, "scloud version", user="splunk")
2639-
std_out = self.client.exec_start(exec_command)
2640-
assert "scloud version " in std_out
2641-
exec_command = self.client.exec_create(cid, "scloud version", user="ansible")
2657+
for user in ["splunk", "ansible"]:
2658+
exec_command = self.client.exec_create(cid, "scloud version", user=user)
2659+
std_out = self.client.exec_start(exec_command)
2660+
assert "scloud version " in std_out
2661+
except Exception as e:
2662+
self.logger.error(e)
2663+
raise e
2664+
finally:
2665+
if cid:
2666+
self.client.remove_container(cid, v=True, force=True)
2667+
2668+
def test_uf_ulimit(self):
2669+
cid = None
2670+
try:
2671+
# Run container
2672+
cid = self.client.create_container(self.UF_IMAGE_NAME, tty=True, command="no-provision")
2673+
cid = cid.get("Id")
2674+
self.client.start(cid)
2675+
# Wait a bit
2676+
time.sleep(5)
2677+
# If the container is still running, we should be able to exec inside
2678+
# Check that nproc limits are unlimited
2679+
exec_command = self.client.exec_create(cid, "sudo -u splunk bash -c 'ulimit -u'")
26422680
std_out = self.client.exec_start(exec_command)
2643-
assert "scloud version " in std_out
2681+
assert "unlimited" in std_out
26442682
except Exception as e:
26452683
self.logger.error(e)
26462684
raise e

0 commit comments

Comments
 (0)