File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed
environments/common/inventory/group_vars/all Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -57,3 +57,8 @@ ohpc_openhpc_repos:
57
57
ohpc_default_extra_repos :
58
58
" 9 " : []
59
59
" 8 " : []
60
+
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'
Original file line number Diff line number Diff line change 1
1
_systemd_requiresmount_statedir : |
2
+ {% if appliances_state_dir is defined %}
2
3
[Unit]
3
4
RequiresMountsFor={{ appliances_state_dir | default('') }}
5
+ {% endif %}
4
6
5
- _systemd_dropins_statedir :
6
- # mysql not included as role handles state dir correctly
7
+ systemd_dropins :
8
+ # NB: mysql does not need _systemd_requiresmount_statedir as role handles state dir correctly
7
9
opensearch :
8
10
group : opensearch
9
11
content : " {{ _systemd_requiresmount_statedir }}"
@@ -12,12 +14,16 @@ _systemd_dropins_statedir:
12
14
content : " {{ _systemd_requiresmount_statedir }}"
13
15
slurmdbd :
14
16
group : openhpc
15
- content : " {{ _systemd_requiresmount_statedir }}"
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
+
16
24
slurmctld :
17
25
group : openhpc
18
26
content : " {{ _systemd_requiresmount_statedir }}"
19
27
prometheus :
20
28
group : prometheus
21
29
content : " {{ _systemd_requiresmount_statedir }}"
22
-
23
- systemd_dropins : " {{ _systemd_dropins_statedir if appliances_state_dir is defined else {} }}"
You can’t perform that action at this time.
0 commit comments