Skip to content

Commit e0e90b2

Browse files
Update to DOCA 2.9 series
1 parent e5d5e19 commit e0e90b2

File tree

5 files changed

+25
-44
lines changed

5 files changed

+25
-44
lines changed

.github/workflows/package-build-ofed.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ jobs:
241241
kayobe playbook run src/kayobe-config/etc/kayobe/ansible/build-ofed-rocky.yml
242242
env:
243243
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
244-
TERM: linux
245244

246245
- name: Run OFED upload playbook
247246
run: |

etc/kayobe/ansible/build-ofed-rocky.yml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,35 +36,10 @@
3636
- cmake-filesystem
3737
- libnl3-devel
3838
- python3-devel
39+
- doca-extra
3940
state: latest
4041
update_cache: true
4142

42-
- name: debug
43-
debug:
44-
msg: "https://developer.nvidia.com/downloads/networking/secure/doca-sdk/DOCA_{{ stackhpc_pulp_doca_version[:3] }}/doca-host-{{ stackhpc_pulp_doca_version }}-{{ stackhpc_pulp_doca_minor_version }}_{{ stackhpc_pulp_doca_ofed_version }}_rhel9{{ stackhpc_pulp_repo_rocky_9_minor_version }}.x86_64.rpm"
45-
46-
- name: Add DOCA host repository package
47-
ansible.builtin.dnf:
48-
name: https://developer.nvidia.com/downloads/networking/secure/doca-sdk/DOCA_{{ stackhpc_pulp_doca_version[:3] }}/doca-host-{{ stackhpc_pulp_doca_version }}-{{ stackhpc_pulp_doca_minor_version }}_{{ stackhpc_pulp_doca_ofed_version }}_rhel9{{ stackhpc_pulp_repo_rocky_9_minor_version }}.x86_64.rpm
49-
disable_gpg_check: true
50-
51-
- name: Install DOCA extra packages
52-
ansible.builtin.dnf:
53-
name: doca-extra
54-
55-
- name: Create build directory
56-
ansible.builtin.file:
57-
path: /home/stack/ofed
58-
state: directory
59-
mode: 0777
60-
61-
- name: Set build directory
62-
ansible.builtin.replace:
63-
path: /opt/mellanox/doca/tools/doca-kernel-support
64-
regexp: 'TMP_DIR=\$1'
65-
replace: 'TMP_DIR=/home/stack/ofed'
66-
6743
- name: Build OFED kernel modules
6844
ansible.builtin.shell:
69-
cmd: |
70-
TERM=linux /opt/mellanox/doca/tools/doca-kernel-support
45+
cmd: /opt/mellanox/doca/tools/doca-kernel-support

etc/kayobe/ansible/push-ofed.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
hosts: ofed-builder
44
vars:
55
venv: "/opt/kayobe/venvs/kayobe"
6+
doca_extract_path: "/home/stack/doca"
67
tasks:
78
- name: Install python dependencies
89
ansible.builtin.pip:
@@ -27,7 +28,22 @@
2728
password = '{{ stackhpc_release_pulp_password }}'
2829
no_log: true
2930

30-
- name: Create Pulp repository for OFED
31+
- name: Find DOCA kernel repo package
32+
ansible.builtin.shell:
33+
cmd: 'find /tmp/DOCA.* -name doca-kernel-repo-*'
34+
register: doca_kernel_repo
35+
changed_when: false
36+
37+
- name: Unpackage kernel repo
38+
ansible.builtin.shell:
39+
cmd: "rpm2cpio {{ doca_kernel_repo.stdout }} | cpio -idmv -D {{ doca_extract_path }}"
40+
41+
- name: Find extracted kernel packages
42+
ansible.builtin.shell:
43+
cmd: 'find {{ doca_extract_path }}/usr/share/doca-host-*/Modules/$(uname -r)/*.rpm'
44+
register: doca_kernel_packages
45+
46+
- name: Create Pulp repository for DOCA kernel modules
3147
pulp.squeezer.rpm_repository:
3248
pulp_url: "{{ stackhpc_release_pulp_url }}"
3349
username: "{{ stackhpc_release_pulp_username }}"
@@ -36,11 +52,6 @@
3652
state: present
3753
retries: "{{ pulp_timeout_retries | default(3) }}"
3854

39-
- name: Lookup Pulp RPMs on builder
40-
ansible.builtin.find:
41-
paths: "/home/stack/ofed"
42-
register: rpm_dir
43-
4455
- name: Upload OFED RPMs to Pulp
4556
ansible.builtin.shell:
4657
cmd: |
@@ -50,7 +61,7 @@
5061
--repository '{{ stackhpc_pulp_repo_doca_ofed_rhel9.name }}' \
5162
--file {{ item.path }} \
5263
--no-publish \
53-
with_items: "{{ rpm_dir.files }}"
64+
with_items: "{{ doca_kernel_packages.stdout_lines }}"
5465

5566
- name: Create Pulp publication for OFED
5667
pulp.squeezer.rpm_publication:

etc/kayobe/dnf.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ stackhpc_dnf_repos: "{{ dnf_custom_repos_el9 | combine(dnf_custom_repos_rocky_9)
5353
dnf_custom_repos_doca:
5454
doca:
5555
baseurl: "{{ stackhpc_repo_rhel9_doca_url }}"
56-
description: "DOCA Online Repo {{ stackhpc_pulp_doca_version }}"
56+
description: "DOCA Online Repo {{ stackhpc_pulp_doca_version }} - RHEL $releasever"
5757
enabled: "{{ dnf_enable_doca | bool }}"
5858
priority: -1
5959
file: doca
@@ -62,7 +62,7 @@ dnf_custom_repos_doca:
6262
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
6363
doca-modules:
6464
baseurl: "{{ stackhpc_repo_rhel9_doca_modules_url }}"
65-
description: "OFED Kernel modules for DOCA {{ stackhpc_pulp_doca_ofed_version }} Rocky 9.{{ stackhpc_pulp_repo_rocky_9_minor_version }}"
65+
description: "OFED Kernel modules for DOCA {{ stackhpc_pulp_doca_version }} - RHEL $releasever"
6666
enabled: "{{ dnf_enable_doca | bool and dnf_enable_doca_modules | bool }}"
6767
priority: -2
6868
file: doca-modules
@@ -181,7 +181,7 @@ dnf_docker_gpg_key_url: "https://download.docker.com/linux/centos/gpg"
181181

182182
# Whether to create a repo file for DOCA kernel modules. This affects RedHat-based
183183
# systems only.
184-
dnf_enable_doca_modules: "{{ dnf_install_doca | bool }}"
184+
dnf_install_doca_modules: "{{ dnf_install_doca | bool }}"
185185

186186
# Whether to create a repo file for DOCA. This affects RedHat-based
187187
# systems only.

etc/kayobe/ofed.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33

44
###############################################################################
55
# DOCA host version
6-
stackhpc_pulp_doca_version: 2.8.0
7-
stackhpc_pulp_doca_minor_version: 204000
8-
9-
# DOCA OFED version
10-
stackhpc_pulp_doca_ofed_version: 24.07
6+
stackhpc_pulp_doca_version: 2.9.1
117

128
###############################################################################
139
# Pulp configuration for DOCA OFED
@@ -22,7 +18,7 @@ stackhpc_pulp_repo_rhel9_doca_modules_version: "{{ lookup('vars', 'stackhpc_pulp
2218

2319
# OFED kernel module repository for Rocky 9
2420
stackhpc_pulp_repo_doca_ofed_rhel9:
25-
name: OFED Kernel modules for DOCA {{ stackhpc_pulp_doca_version }} Rocky 9.{{ stackhpc_pulp_repo_rocky_9_minor_version }}
21+
name: OFED Kernel modules for DOCA {{ stackhpc_pulp_doca_version }} - RHEL 9.{{ stackhpc_pulp_repo_rocky_9_minor_version }}
2622
url: "{{ stackhpc_release_pulp_content_url }}/doca-modules/{{ stackhpc_pulp_doca_version }}/rhel9.{{ stackhpc_pulp_repo_rocky_9_minor_version }}/x86_64"
2723
distribution_name: "doca-modules-"
2824
base_path: "doca-modules/{{ stackhpc_pulp_doca_version }}/rhel9.{{ stackhpc_pulp_repo_rocky_9_minor_version }}/x86_64"

0 commit comments

Comments
 (0)