Skip to content

Commit 98b0f8e

Browse files
authored
Pmm3 fix pdpgsql and psmdb versions (#86)
* Fix versions for pdpgsql and psmdb
1 parent 359159f commit 98b0f8e

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

pmm_qa/pdpgsql_pgsm_setup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
become: true
77
become_method: sudo
88
vars:
9-
pdpgsql_version: "{{ lookup('vars', 'extra_pdpgsql_version', default=lookup('env','PDPGSQL_VERSION') | default('14', true) ) }}"
9+
pdpgsql_version: "{{ lookup('vars', 'extra_pdpgsql_version', default=lookup('env','PDPGSQL_VERSION') | default('15', true) ) }}"
1010
pdpgsql_pgsm_container: "{{ lookup('vars', 'extra_pdpgsql_pgsm_container', default=lookup('env','PDPGSQL_PGSM_CONTAINER') | default('pdpgsql_pgsm', true) ) }}"
1111
pmm_server_ip: "{{ lookup('vars', 'extra_pmm_server_ip', default=lookup('env','PMM_SERVER_IP') | default('127.0.0.1', true) ) }}"
12-
client_version: "{{ lookup('vars', 'extra_client_version', default=lookup('env','CLIENT_VERSION') | default('dev-latest', true) ) }}"
12+
client_version: "{{ lookup('vars', 'extra_client_version', default=lookup('env','CLIENT_VERSION') | default('3-dev-latest', true) ) }}"
1313
admin_password: "{{ lookup('vars', 'extra_admin_password', default=lookup('env','ADMIN_PASSWORD') | default('admin', true) ) }}"
1414
pmm_qa_branch: "{{ lookup('vars', 'extra_pmm_qa_branch', default=lookup('env','PMM_QA_GIT_BRANCH') | default('main', true) ) }}"
1515
pgstat_monitor_branch: "{{ lookup('vars', 'extra_pgstat_monitor_branch', default=lookup('env','PGSTAT_MONITOR_BRANCH') | default('1.1.1', true) ) }}"

pmm_qa/pg_stat_statements_setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ done
1313
# If postgres server version is not provided then it will default to version 14.
1414
if [ -z "$pgsql_version" ]
1515
then
16-
export pgsql_version=14
16+
export pgsql_version=15
1717
fi
1818

1919
# If distribution is not provided then it will default to percona distribution 'PPG'

pmm_qa/pmm-framework.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
# Database configurations
1010
database_configs = {
1111
"PSMDB": {
12-
"versions": ["4.4", "5.0", "6.0", "7.0", "latest"],
12+
"versions": ["4.4", "5.0", "6.0", "7.0", "8.0", "latest"],
1313
"configurations": {"CLIENT_VERSION": "3-dev-latest", "SETUP_TYPE": "pss", "COMPOSE_PROFILES": "classic",
1414
"TARBALL": ""}
1515
},
1616
"SSL_PSMDB": {
17-
"versions": ["4.4", "5.0", "6.0", "7.0", "latest"],
17+
"versions": ["4.4", "5.0", "6.0", "7.0", "8.0", "latest"],
1818
"configurations": {"CLIENT_VERSION": "3-dev-latest", "SETUP_TYPE": "pss", "COMPOSE_PROFILES": "classic",
1919
"TARBALL": ""}
2020
},
@@ -34,15 +34,15 @@
3434
"TARBALL": ""}
3535
},
3636
"PGSQL": {
37-
"versions": ["11", "12", "13", "14", "15", "16"],
37+
"versions": ["11", "12", "13", "14", "15", "16", "17"],
3838
"configurations": {"QUERY_SOURCE": "pgstatements", "CLIENT_VERSION": "3-dev-latest", "USE_SOCKET": ""}
3939
},
4040
"PDPGSQL": {
41-
"versions": ["11", "12", "13", "14", "15", "16"],
41+
"versions": ["11", "12", "13", "14", "15", "16", "17"],
4242
"configurations": {"CLIENT_VERSION": "3-dev-latest", "USE_SOCKET": ""}
4343
},
4444
"SSL_PDPGSQL": {
45-
"versions": ["11", "12", "13", "14", "15", "16"],
45+
"versions": ["11", "12", "13", "14", "15", "16", "17"],
4646
"configurations": {"CLIENT_VERSION": "3-dev-latest", "USE_SOCKET": ""}
4747
},
4848
"PXC": {
@@ -492,6 +492,10 @@ def mongo_sharding_setup(script_filename, args):
492492
def get_latest_psmdb_version(psmdb_version):
493493
if psmdb_version == "latest":
494494
return psmdb_version
495+
# workaround till 8.0 is released.
496+
elif psmdb_version in ("8.0", "8.0.1", "8.0.1-1"):
497+
return "8.0.1-1"
498+
495499
# Define the data to be sent in the POST request
496500
data = {
497501
'version': f'percona-server-mongodb-{psmdb_version}'
@@ -640,7 +644,7 @@ def setup_ssl_psmdb(db_type, db_version=None, db_config=None, args=None):
640644
'PMM_CLIENT_VERSION': get_value('CLIENT_VERSION', db_type, args, db_config),
641645
'COMPOSE_PROFILES': get_value('COMPOSE_PROFILES', db_type, args, db_config),
642646
'MONGO_SETUP_TYPE': get_value('SETUP_TYPE', db_type, args, db_config),
643-
'TESTS': 'no',
647+
'`TESTS`': 'no',
644648
'CLEANUP': 'no'
645649
}
646650

@@ -752,7 +756,7 @@ def setup_database(db_type, db_version=None, db_config=None, args=None):
752756
for db_type, options in database_configs.items():
753757
db_parser = subparsers.add_parser(db_type.lower())
754758
for config, value in options['configurations'].items():
755-
db_parser.add_argument(f'{config}',metavar='', help=f'{config} for {db_type} (default: {value})')
759+
db_parser.add_argument(f'{config}', metavar='', help=f'{config} for {db_type} (default: {value})')
756760

757761
# Add arguments
758762
parser.add_argument("--database", action='append', nargs=1,

pmm_qa/product_version_download_helper

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ psmdb # 6.0.2 # https://downloads.percona.com/downloads/percona-distribution-mon
1616

1717
psmdb # 7.0.2 # https://downloads.percona.com/downloads/percona-server-mongodb-7.0/percona-server-mongodb-7.0.2-1/binary/tarball/percona-server-mongodb-7.0.2-1-x86_64.glibc2.17.tar.gz
1818

19+
psmdb # 8.0.1 # https://downloads.percona.com/downloads/TESTING/psmdb-8.0.1/percona-server-mongodb-8.0.1-1-x86_64.jammy-minimal.tar.gz
20+
1921
ps # 8.0.33 # https://downloads.percona.com/downloads/Percona-Server-8.0/Percona-Server-8.0.33-25/binary/tarball/Percona-Server-8.0.33-25-Linux.x86_64.glibc2.17-minimal.tar.gz
2022

2123
ps # 5.7.43 # https://downloads.percona.com/downloads/Percona-Server-5.7/Percona-Server-5.7.43-47/binary/tarball/Percona-Server-5.7.43-47-Linux.x86_64.glibc2.17-minimal.tar.gz

0 commit comments

Comments
 (0)