File tree Expand file tree Collapse file tree 3 files changed +43
-13
lines changed
Expand file tree Collapse file tree 3 files changed +43
-13
lines changed Original file line number Diff line number Diff line change 1515 gather_facts : true
1616 tags : pre
1717 vars :
18- doca_kernel_version : 5.14.0.611.13.1.el9.7.x86.64
18+ # we don't build kernel modules for each version, eg 5.14.0-611.13.1 has been built,
19+ # but not 5.14.0-611.20.1.
20+ doca_kernel_version : " {{ stackhpc_doca_kernel_version[stackhpc_pulp_repo_rocky_9_minor_version] }}"
1921 tasks :
2022 - name : Assert that hosts are running Rocky Linux 9.6
2123 ansible.builtin.assert :
3537 update_cache : true
3638 become : true
3739
38- # This is required by doca-kernel-xxx , and comes from the doca repository.
40+ # This is required by mlnx-ofa_kernel , and comes from the doca repository.
3941 # It is already present when doca-ofed is installed, but will be upgraded.
40- - name : Ensure mlnx-ofa_kernel is installed
42+ - name : Ensure mlnx-tools is installed
4143 ansible.builtin.dnf :
42- name : mlnx-ofa_kernel
44+ name : mlnx-tools
4345 state : latest
4446 update_cache : true
4547 become : true
Original file line number Diff line number Diff line change 33 become : true
44 hosts : mlnx
55 gather_facts : true
6+ vars :
7+ # we don't build kernel modules for each version, eg 5.14.0-611.13.1 has been built,
8+ # but not 5.14.0-611.20.1
9+ doca_kernel_version : " {{ stackhpc_doca_kernel_version[stackhpc_pulp_repo_rocky_9_minor_version] }}"
610 tasks :
7- - name : Get running kernel
8- ansible.builtin.command :
9- cmd : " uname -r"
10- register : kernel
11- check_mode : false
12-
1311 - name : Install kernel repo
1412 ansible.builtin.dnf :
1513 name : doca-kernel-repo
1614 state : latest
1715 update_cache : true
1816
17+ # not the same as doca_kernel_version: some dots changed to underscore or dash
18+ - name : Discover kernel repo filename
19+ ansible.builtin.shell : |
20+ set -o pipefail
21+ rpm -ql doca-kernel-repo | grep /etc/yum.repos.d/
22+ register : kernel_repo_filename
23+ changed_when : false
24+
1925 - name : Ensure correct priority for DOCA modules
2026 ansible.builtin.lineinfile :
2127 line : " priority=-2"
2228 insertafter : EOF
23- path : " /etc/yum.repos.d/doca-kernel-{{ kernel.stdout }}.repo"
29+ path : " {{ kernel_repo_filename.stdout }}"
30+
31+ # This is required by mlnx-ofa_kernel, and comes from the doca repository.
32+ # It is already present when doca-ofed is installed, but will be upgraded.
33+ - name : Ensure mlnx-tools is installed
34+ ansible.builtin.dnf :
35+ name : mlnx-tools
36+ state : latest
37+ update_cache : true
38+ become : true
39+
40+ - name : Ensure appropriate doca-kernel is installed
41+ ansible.builtin.dnf :
42+ name : " doca-kernel-{{ doca_kernel_version }}"
43+ state : latest
44+ disablerepo : doca
45+ become : true
2446
25- - name : Install DOCA OFED
47+ - name : Ensure DOCA OFED userspace is installed
2648 ansible.builtin.dnf :
27- name : doca-ofed
49+ name :
50+ - doca-ofed-userspace
2851 state : latest
2952 update_cache : true
Original file line number Diff line number Diff line change @@ -8,6 +8,11 @@ stackhpc_pulp_doca_version_matrix:
88 " 7 " : 3.2.1
99stackhpc_pulp_doca_version : " {{ stackhpc_pulp_doca_version_matrix[stackhpc_pulp_repo_rocky_9_minor_version] | default('2.9.1') }}"
1010
11+ # Available and tested versions of the pre-compiled doca-ofed kernel modules
12+ stackhpc_doca_kernel_version :
13+ " 6 " : 5.14.0.570.21.1.el9.6.x86.64
14+ " 7 " : 5.14.0.611.13.1.el9.7.x86.64
15+
1116# ##############################################################################
1217# Pulp configuration for DOCA OFED
1318
You can’t perform that action at this time.
0 commit comments