Skip to content

Commit 39d1aa6

Browse files
authored
Revert "PMM-13758: control OL version (#152)"
This reverts commit 4799f02.
1 parent 4799f02 commit 39d1aa6

8 files changed

Lines changed: 27 additions & 35 deletions

File tree

pmm_psmdb-pbm_setup/Dockerfile

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
ARG OL_VERSION=9
2-
FROM oraclelinux:${OL_VERSION}
1+
FROM oraclelinux:9
32
ARG REPO=testing
43
ARG PMM_REPO=experimental
54
ARG PBM_VERSION=latest
@@ -45,16 +44,16 @@ RUN set -ex; \
4544
percona-server-mongodb-server \
4645
percona-server-mongodb-mongos ; \
4746
else \
48-
dnf -y install percona-server-mongodb-${PSMDB_VERSION}.el${OL_VERSION} \
49-
percona-server-mongodb-tools-${PSMDB_VERSION}.el${OL_VERSION} \
50-
percona-server-mongodb-server-${PSMDB_VERSION}.el${OL_VERSION} \
51-
percona-server-mongodb-mongos-${PSMDB_VERSION}.el${OL_VERSION} ; \
47+
dnf -y install percona-server-mongodb-${PSMDB_VERSION}.el9 \
48+
percona-server-mongodb-tools-${PSMDB_VERSION}.el9 \
49+
percona-server-mongodb-server-${PSMDB_VERSION}.el9 \
50+
percona-server-mongodb-mongos-${PSMDB_VERSION}.el9 ; \
5251
fi && \
5352
if [ "$PBM_VERSION" == "latest" ]; then \
5453
dnf -y install percona-backup-mongodb ; \
5554
else \
56-
dnf -y install percona-backup-mongodb-${PBM_VERSION}.el${OL_VERSION} ; \
57-
fi
55+
dnf -y install percona-backup-mongodb-${PBM_VERSION}.el9 ; \
56+
fi
5857

5958
RUN if [[ "$PMM_CLIENT_VERSION" == http* ]]; then \
6059
dnf -y install pmm-client && \
@@ -69,9 +68,9 @@ RUN if [[ "$PMM_CLIENT_VERSION" == http* ]]; then \
6968
dnf -y install pmm-client ; \
7069
else \
7170
if [[ "$PMM_CLIENT_VERSION" =~ ^([3-9])\.([1-9][0-9]*)\.([0-9]+)$ ]]; then \
72-
dnf -y install pmm-client-${PMM_CLIENT_VERSION}-7.el${OL_VERSION} ; \
71+
dnf -y install pmm-client-${PMM_CLIENT_VERSION}-7.el9 ; \
7372
else \
74-
dnf -y install pmm-client-${PMM_CLIENT_VERSION}-6.el${OL_VERSION} ; \
73+
dnf -y install pmm-client-${PMM_CLIENT_VERSION}-6.el9 ; \
7574
fi \
7675
fi && \
7776
sed 's/Type=forking/#Type=forking/' -i /usr/lib/systemd/system/mongod.service && \
@@ -82,7 +81,7 @@ RUN if [[ "$PMM_CLIENT_VERSION" == http* ]]; then \
8281
curl -Lf -o /tmp/mgodatagen.tar.gz https://github.com/feliixx/mgodatagen/releases/download/v0.11.2/mgodatagen_0.11.2_Linux_x86_64.tar.gz && \
8382
tar -xf /tmp/mgodatagen.tar.gz -C /usr/bin && \
8483
dnf clean all; \
85-
rm -rf /var/cache/dnf /var/cache/dnf /data/db && mkdir -p /data/db;
84+
rm -rf /var/cache/dnf /var/cache/yum /data/db && mkdir -p /data/db;
8685

8786
COPY conf/sysconfig/mongod /etc/sysconfig/
8887
COPY keyfile /etc/keyfile

pmm_psmdb-pbm_setup/docker-compose-rs.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ services:
1212
- PBM_VERSION=${PBM_VERSION:-latest}
1313
- PSMDB_VERSION=${PSMDB_VERSION:-latest}
1414
- PMM_CLIENT_VERSION=${PMM_CLIENT_VERSION:-3-dev-latest}
15-
- OL_VERSION=${OL_VERSION:-9}
1615
command: /bin/bash
1716

1817
rs101:

pmm_psmdb-pbm_setup/start-rs-only.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ set -e
33

44
profile=${COMPOSE_PROFILES:-classic}
55
mongo_setup_type=${MONGO_SETUP_TYPE:-pss}
6-
ol_version=${OL_VERSION:-9}
76

87
docker network create qa-integration || true
98
docker network create pmm-qa || true
@@ -13,7 +12,6 @@ docker network create pmm2-ui-tests_pmm-network || true
1312

1413
export COMPOSE_PROFILES=${profile}
1514
export MONGO_SETUP_TYPE=${mongo_setup_type}
16-
export OL_VERSION=${ol_version}
1715

1816
docker compose -f docker-compose-rs.yaml down -v --remove-orphans
1917
docker compose -f docker-compose-rs.yaml build --no-cache

pmm_psmdb-pbm_setup/start-rs.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ set -e
44
pmm_server_admin_pass=${ADMIN_PASSWORD:-password}
55
profile=${COMPOSE_PROFILES:-classic}
66
mongo_setup_type=${MONGO_SETUP_TYPE:-pss}
7-
ol_version=${OL_VERSION:-9}
87

98
docker network create qa-integration || true
109
docker network create pmm-qa || true
@@ -14,7 +13,6 @@ docker network create pmm2-ui-tests_pmm-network || true
1413

1514
export COMPOSE_PROFILES=${profile}
1615
export MONGO_SETUP_TYPE=${mongo_setup_type}
17-
export OL_VERSION=${ol_version}
1816

1917
docker compose -f docker-compose-rs.yaml -f docker-compose-pmm.yaml down -v --remove-orphans
2018
docker compose -f docker-compose-rs.yaml -f docker-compose-pmm.yaml build

pmm_psmdb_diffauth_setup/generate-certs.sh

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

pmm_psmdb_diffauth_setup/test-auth.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,22 @@ if [ -z "$ADMIN_PASSWORD" ]; then
2323
export ADMIN_PASSWORD=admin
2424
fi
2525

26-
bash -e ./generate-certs.sh
26+
#Generate certificates for tests
27+
rm -rf easy-rsa pki certs && mkdir certs
28+
git clone https://github.com/OpenVPN/easy-rsa.git
29+
./easy-rsa/easyrsa3/easyrsa init-pki
30+
./easy-rsa/easyrsa3/easyrsa --req-cn=Percona --batch build-ca nopass
31+
./easy-rsa/easyrsa3/easyrsa --req-ou=server --subject-alt-name=DNS:pmm-server --batch build-server-full pmm-server nopass
32+
./easy-rsa/easyrsa3/easyrsa --req-ou=server --subject-alt-name=DNS:psmdb-server --batch build-server-full psmdb-server nopass
33+
./easy-rsa/easyrsa3/easyrsa --req-ou=client --batch build-client-full pmm-test nopass
34+
openssl dhparam -out certs/dhparam.pem 2048
35+
36+
cp pki/ca.crt certs/ca-certs.pem
37+
cp pki/private/pmm-server.key certs/certificate.key
38+
cp pki/issued/pmm-server.crt certs/certificate.crt
39+
cat pki/private/psmdb-server.key pki/issued/psmdb-server.crt > certs/psmdb-server.pem
40+
cat pki/private/pmm-test.key pki/issued/pmm-test.crt > certs/client.pem
41+
find certs -type f -exec chmod 644 {} \;
2742

2843
#Start setup
2944
docker compose -f docker-compose-pmm-psmdb.yml down -v --remove-orphans

pmm_qa/pmm-framework.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,6 @@ def setup_psmdb(db_type, db_version=None, db_config=None, args=None):
561561
'PMM_CLIENT_VERSION': get_value('CLIENT_VERSION', db_type, args, db_config),
562562
'COMPOSE_PROFILES': get_value('COMPOSE_PROFILES', db_type, args, db_config),
563563
'MONGO_SETUP_TYPE': get_value('SETUP_TYPE', db_type, args, db_config),
564-
'OL_VERSION': get_value('OL_VERSION', db_type, args, db_config),
565564
'TESTS': 'no',
566565
'CLEANUP': 'no'
567566
}

pmm_qa/scripts/database_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"PSMDB": {
33
"versions": ["4.4", "5.0", "6.0", "7.0", "8.0", "latest"],
44
"configurations": {"CLIENT_VERSION": "3-dev-latest", "SETUP_TYPE": "pss", "COMPOSE_PROFILES": "classic",
5-
"TARBALL": "", "OL_VERSION": "9"}
5+
"TARBALL": ""}
66
},
77
"MLAUNCH_PSMDB": {
88
"versions": ["4.4", "5.0", "6.0", "7.0", "8.0"],

0 commit comments

Comments
 (0)