Skip to content

Commit 55914fe

Browse files
committed
fix upgrade code for mariadb in CI
1 parent 2a8cfa8 commit 55914fe

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ required to due to a a Slurm major version upgrade and carry it out if so.
143143
Slurm versions before 24.11 do not support this check and so no upgrade will
144144
occur. The following variables control behaviour during this upgrade:
145145

146+
`openhpc_slurm_accounting_storage_client_package`: Optional. String giving the
147+
name of the database client package to install, e.g. `mariadb`. Default `mysql`.
148+
146149
`openhpc_slurm_accounting_storage_backup_cmd`: Optional. String (possibly
147150
multi-line) giving a command for `ansible.builtin.shell` to run a backup of the
148151
Slurm database before performing the databse upgrade. Default is the empty

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ openhpc_slurm_partitions: []
88
openhpc_cluster_name:
99
openhpc_packages:
1010
- slurm-libpmi-ohpc
11-
- mysql # actually from rocky repos
1211
openhpc_resume_timeout: 300
1312
openhpc_retry_delay: 10
1413
openhpc_job_maxtime: '60-0' # quote this to avoid ansible converting some formats to seconds, which is interpreted as minutes by Slurm
@@ -108,3 +107,4 @@ openhpc_slurm_accounting_storage_service: ''
108107
openhpc_slurm_accounting_storage_backup_cmd: ''
109108
openhpc_slurm_accounting_storage_backup_host: "{{ openhpc_slurm_accounting_storage_host }}"
110109
openhpc_slurm_accounting_storage_backup_become: true
110+
openhpc_slurm_accounting_storage_client_package: mysql

molecule/test4/converge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
openhpc_slurm_partitions:
1616
- name: "compute"
1717
openhpc_cluster_name: testohpc
18+
openhpc_slurm_accounting_storage_client_package: mariadb
1819
tasks:
1920
- name: "Include ansible-role-openhpc"
2021
include_role:

tasks/install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
install_weak_deps: false # avoids getting recommended packages
5050
when: openhpc_slurm_pkglist | default(false, true)
5151

52-
- name: Install packages from openhpc_packages variable
52+
- name: Install other packages
5353
yum:
54-
name: "{{ openhpc_packages }}"
54+
name: "{{ openhpc_packages + [openhpc_slurm_accounting_storage_client_package] }}"
5555

5656
...

tasks/upgrade.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
login_db: "{{ openhpc_slurmdbd_mysql_database }}"
88
login_user: "{{ openhpc_slurmdbd_mysql_username }}"
99
login_password: "{{ openhpc_slurmdbd_mysql_password }}"
10-
#login_host:
10+
login_host: "{{ openhpc_slurm_accounting_storage_host }}"
1111
query: SHOW TABLES
1212
register: _openhpc_slurmdb_tables
1313

0 commit comments

Comments
 (0)