Skip to content

Commit 390968a

Browse files
ckunkitkilias
andauthored
Unify ports for database, BucketFS, and SSH (#354)
Co-authored-by: Torsten Kilias <[email protected]> Co-authored-by: Torsten Kilias <[email protected]>
1 parent 985abe2 commit 390968a

File tree

58 files changed

+258
-290
lines changed

Some content is hidden

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

58 files changed

+258
-290
lines changed

doc/changes/changes_2.0.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ If you need further versions, please open an issue.
2626

2727
* #329: Added CLI option `--ssh-port-forward` to forward SSH port
2828
* #343: Added SshInfo to DatabaseInfo containing user, port and path to SSH key file
29+
* #308: Unified ports for database, BucketFS, and SSH

doc/user_guide/user_guide.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ The following config files are available:
244244

245245
# Database IP in environment docker network
246246
export ITDE_DATABASE_HOST=172.21.0.2
247-
export ITDE_DATABASE_DB_PORT=8888
248-
export ITDE_DATABASE_BUCKETFS_PORT=6583
247+
export ITDE_DATABASE_DB_PORT=8563
248+
export ITDE_DATABASE_BUCKETFS_PORT=2580
249249
export ITDE_DATABASE_SSH_PORT=22
250250
export ITDE_DATABASE_CONTAINER_NAME=db_container_test
251251
export ITDE_DATABASE_CONTAINER_NETWORK_ALIASES="exasol_test_database db_container_test"

docker_db_config_template/7.0.0/EXAConf

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Platform = Docker
66
LicenseFile = /exa/etc/license.xml
77
CoredPort = 10001
8-
SSHPort = 22
8+
SSHPort = {{ ssh_port }}
99
XMLRPCPort = 443
1010
AuthenticationToken = WG9JQkZYb0R5T1pIcWZPWTpyUHFsR3V6QUFkV1FQbHZmdm91cXJDYmNQTFl4eE1vRlZ6VnhxamdxYnpxUGRkZEhtR2NJaVVGbEpsb2NnbnRZ
1111
# List of networks for this cluster: 'private' is mandatory, 'public' is optional.
@@ -74,8 +74,6 @@
7474
Name = n11
7575
UUID = A5F8F92113A34BA4B0A48D5397423BBA5CF95161
7676
DockerVolume = n11
77-
# Ports to be exposed (container : host)
78-
ExposedPorts = 8888:8899, 6583:6594
7977
[[Disk : disk1]]
8078
Component = exastorage
8179
Devices = dev.1
@@ -121,7 +119,7 @@
121119
Version = {{ db_version }}
122120
# Memory size over all nodes (e. g. '1 TiB').
123121
MemSize = {{ mem_size }}
124-
Port = 8888
122+
Port = {{ db_port }}
125123
# User and group IDs that own this database (e. g. '1000:1005').
126124
Owner = 500 : 500
127125
# Comma-separated list of node IDs for this DB (put reserve nodes at the end, if any).
@@ -155,7 +153,7 @@
155153
[BucketFS : bfsdefault]
156154
Owner = 500:500
157155
# HTTP port number (0 = disabled)
158-
HttpPort = 6583
156+
HttpPort = {{ bucketfs_port }}
159157
# HTTPS port number (0 = disabled)
160158
HttpsPort = 0
161159
SyncKey = OGhvcmxrTnluTlFrZTV3RVBTWG5Idlc4bkVMQUNxcWs=

docker_db_config_template/7.1.0/EXAConf

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Platform = Docker
66
LicenseFile = /exa/etc/license.xml
77
CoredPort = 10001
8-
SSHPort = 22
8+
SSHPort = {{ ssh_port }}
99
XMLRPCPort = 443
1010
WebUIBackendPort = 4444
1111
WebUIDomain = exacluster.local
@@ -88,8 +88,6 @@
8888
Affinity = 11
8989
UUID = 02F4E2AF9C294CABA0A119A89AC60B44EC95D19C
9090
DockerVolume = n11
91-
# Ports to be exposed (container : host)
92-
ExposedPorts = 8888:8899, 6583:6594
9391
[[Disk : disk1]]
9492
Component = exastorage
9593
Devices = dev.1
@@ -135,7 +133,7 @@
135133
Version = {{ db_version }}
136134
# Memory size over all nodes (e. g. '1 TiB').
137135
MemSize = {{ mem_size }}
138-
Port = 8888
136+
Port = {{ db_port }}
139137
# User and group IDs that own this database (e. g. '1000:1005').
140138
Owner = 500 : 500
141139
# Comma-separated list of node IDs for this DB (put reserve nodes at the end, if any).
@@ -172,7 +170,7 @@
172170
[BucketFS : bfsdefault]
173171
Owner = 500 : 500
174172
# HTTP port number (0 = disabled)
175-
HttpPort = 6583
173+
HttpPort = {{ bucketfs_port }}
176174
# HTTPS port number (0 = disabled)
177175
HttpsPort = 0
178176
SyncKey = c3RxWjRxWUFpZUFQblEyc0p2djZUM0VZamVZa1M0bUs=

docker_db_config_template/8.17.0/EXAConf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Platform = Docker
66
LicenseFile = /exa/etc/license.exasol_license
77
CoredPort = 325
8-
SSHPort = 22
8+
SSHPort = {{ ssh_port }}
99
IssueTracker = Jira
1010
XMLRPCPort = 443
1111
WebUIBackendPort = 4444
@@ -104,8 +104,6 @@
104104
Affinity = 11
105105
UUID = F0EA64D47F374A00B0530772981C559EE1C59086
106106
DockerVolume = n11
107-
# Ports to be exposed (container : host)
108-
ExposedPorts = 8888:8899, 6583:6594
109107
[[Disk : disk1]]
110108
Component = exastorage
111109
Devices = dev.1
@@ -159,7 +157,7 @@
159157
Version = {{ db_version }}
160158
# Memory size over all nodes (e. g. '1 TiB').
161159
MemSize = {{ mem_size }}
162-
Port = 8888
160+
Port = {{ db_port }}
163161
# User and group IDs that own this database (e. g. '1000:1005').
164162
Owner = 500 : 500
165163
# Comma-separated list of node IDs for this DB (put reserve nodes at the end, if any).
@@ -172,7 +170,9 @@
172170
BuiltinScriptLanguageName = slc-6.0.0-c4-5-standard-EXASOL-8.0.0/ScriptLanguages-standard-EXASOL-8.0.0-slc-v6.0.0-PB5EHDLN
173171
AutoStart = True
174172
{% if additional_db_parameters %}
175-
Params = {{ additional_db_parameters }}
173+
Params = -sandboxCHROOT=/opt/exasol/cos-8.28.0/sbin/nsexec_chroot {{ additional_db_parameters }}
174+
{% else %}
175+
Params = -sandboxCHROOT=/opt/exasol/cos-8.28.0/sbin/nsexec_chroot
176176
{% endif %}
177177

178178
# JDBC driver configuration
@@ -198,7 +198,7 @@
198198
[BucketFS : bfsdefault]
199199
Owner = 500 : 500
200200
# HTTP port number (0 = disabled)
201-
HttpPort = 6583
201+
HttpPort = {{ bucketfs_port }}
202202
# HTTPS port number (0 = disabled)
203203
HttpsPort = 0
204204
SyncKey = bDRYa3pCNXRwaW9OR3k2NjJ2TGpyQ3YweXZEOVUyanQ=

docker_db_config_template/8.18.1/EXAConf

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Platform = Docker
66
LicenseFile = /exa/etc/license.exasol_license
77
CoredPort = 325
8-
SSHPort = 22
8+
SSHPort = {{ ssh_port }}
99
IssueTracker = Jira
1010
XMLRPCPort = 443
1111
WebUIBackendPort = 4444
@@ -104,8 +104,6 @@
104104
Affinity = 11
105105
UUID = F0EA64D47F374A00B0530772981C559EE1C59086
106106
DockerVolume = n11
107-
# Ports to be exposed (container : host)
108-
ExposedPorts = 8888:8899, 6583:6594
109107
[[Disk : disk1]]
110108
Component = exastorage
111109
Devices = dev.1
@@ -159,7 +157,7 @@
159157
Version = {{ db_version }}
160158
# Memory size over all nodes (e. g. '1 TiB').
161159
MemSize = {{ mem_size }}
162-
Port = 8888
160+
Port = {{ db_port }}
163161
# User and group IDs that own this database (e. g. '1000:1005').
164162
Owner = 500 : 500
165163
# Comma-separated list of node IDs for this DB (put reserve nodes at the end, if any).
@@ -200,7 +198,7 @@
200198
[BucketFS : bfsdefault]
201199
Owner = 500 : 500
202200
# HTTP port number (0 = disabled)
203-
HttpPort = 6583
201+
HttpPort = {{ bucketfs_port }}
204202
# HTTPS port number (0 = disabled)
205203
HttpsPort = 0
206204
SyncKey = bDRYa3pCNXRwaW9OR3k2NjJ2TGpyQ3YweXZEOVUyanQ=

exasol_integration_test_docker_environment/cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def cli():
1717
Spawn an ITDE test environment:
1818
1919
$ itde spawn-test-environment --environment-name test \\
20-
--database-port-forward 8888 --bucketfs-port-forward 6666 \\
20+
--database-port-forward 8563 --bucketfs-port-forward 2580 \\
2121
--docker-db-image-version 7.1.9 --db-mem-size 4GB
2222
"""
2323
pass

exasol_integration_test_docker_environment/docker_db_config/7.0.0/EXAConf

Lines changed: 3 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exasol_integration_test_docker_environment/docker_db_config/7.0.1/EXAConf

Lines changed: 3 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exasol_integration_test_docker_environment/docker_db_config/7.0.10/EXAConf

Lines changed: 3 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)