Skip to content

Commit 4bce66c

Browse files
committed
configure openhpc for slurmdbd backup/update
1 parent a77ef88 commit 4bce66c

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

environments/common/inventory/group_vars/all/openhpc.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ ohpc_default_extra_repos:
5858
"9": []
5959
"8": []
6060

61-
# systemd.service.unit.TimeoutStartSec to wait for slurmdbd startup
62-
# Set long enought to avoid problems with a major version upgrade
63-
# Currently implemented in environments/common/inventory/group_vars/all/systemd.yml
64-
openhpc_slurmdbd_timeout_start_sec: '45 minutes'
61+
# configure slurm database pre-upgrade backups:
62+
openhpc_slurm_accounting_storage_service: mysql
63+
openhpc_slurm_accounting_storage_backup_cmd: >-
64+
openstack volume snapshot create
65+
--volume {{ openhpc_cluster_name }}-state
66+
--force
67+
{{ openhpc_cluster_name }}-state-{{ ansible_date_time.iso8601_basic_short }}
68+
openhpc_slurm_accounting_storage_backup_host: localhost
69+
openhpc_slurm_accounting_storage_backup_become: false

environments/common/inventory/group_vars/all/systemd.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@ systemd_dropins:
1414
content: "{{ _systemd_requiresmount_statedir }}"
1515
slurmdbd:
1616
group: openhpc
17-
content: |
18-
{{ _systemd_requiresmount_statedir }}
19-
20-
[Service]
21-
# Allow slurmdbd to complete major version upgrades
22-
TimeoutStartSec={{ openhpc_slurmdbd_timeout_start_sec }}
23-
17+
content: "{{ _systemd_requiresmount_statedir }}"
2418
slurmctld:
2519
group: openhpc
2620
content: "{{ _systemd_requiresmount_statedir }}"

requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ roles:
44
version: v25.3.2
55
name: stackhpc.nfs
66
- src: https://github.com/stackhpc/ansible-role-openhpc.git
7-
version: v0.28.0
7+
version: 'feat/upgrade-db' # local - TODO: bump on release
88
name: stackhpc.openhpc
99
- src: https://github.com/stackhpc/ansible-node-exporter.git
1010
version: stackhpc

0 commit comments

Comments
 (0)