Skip to content

Commit 2860259

Browse files
authored
Merge branch 'stackhpc/2025.1' into filebeat_fix
2 parents dddf98d + 50e15df commit 2860259

File tree

3 files changed

+112
-112
lines changed

3 files changed

+112
-112
lines changed

.github/workflows/stackhpc-container-image-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
156156
- name: Install Trivy
157157
run: |
158-
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin v0.66.0
158+
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin v0.67.2
159159
160160
- name: Install yq
161161
run: |

doc/source/operations/gpu-in-openstack.rst

Lines changed: 110 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -198,39 +198,39 @@ Create a new playbook or update an existing on to apply the roles:
198198
.. code-block:: yaml
199199
:caption: $KAYOBE_CONFIG_PATH/ansible/host-configure.yml
200200
201-
---
202-
- hosts: iommu
203-
tags:
204-
- iommu
205-
tasks:
206-
- import_role:
207-
name: stackhpc.linux.iommu
208-
handlers:
209-
- name: reboot
210-
set_fact:
211-
kayobe_needs_reboot: true
212-
213-
- hosts: vgpu
214-
tags:
215-
- vgpu
216-
tasks:
217-
- import_role:
218-
name: stackhpc.linux.vgpu
219-
handlers:
220-
- name: reboot
221-
set_fact:
222-
kayobe_needs_reboot: true
223-
224-
- name: Reboot when required
225-
hosts: iommu:vgpu
226-
tags:
227-
- reboot
228-
tasks:
229-
- name: Reboot
230-
reboot:
231-
reboot_timeout: 3600
232-
become: true
233-
when: kayobe_needs_reboot | default(false) | bool
201+
---
202+
- hosts: iommu
203+
tags:
204+
- iommu
205+
tasks:
206+
- import_role:
207+
name: stackhpc.linux.iommu
208+
handlers:
209+
- name: reboot
210+
set_fact:
211+
kayobe_needs_reboot: true
212+
213+
- hosts: vgpu
214+
tags:
215+
- vgpu
216+
tasks:
217+
- import_role:
218+
name: stackhpc.linux.vgpu
219+
handlers:
220+
- name: reboot
221+
set_fact:
222+
kayobe_needs_reboot: true
223+
224+
- name: Reboot when required
225+
hosts: iommu:vgpu
226+
tags:
227+
- reboot
228+
tasks:
229+
- name: Reboot
230+
reboot:
231+
reboot_timeout: 3600
232+
become: true
233+
when: kayobe_needs_reboot | default(false) | bool
234234
235235
Ansible Inventory Configuration
236236
-------------------------------
@@ -281,41 +281,41 @@ Configure the VGPU devices:
281281
.. code-block:: yaml
282282
:caption: $KAYOBE_CONFIG_PATH/inventory/group_vars/compute_vgpu/vgpu
283283
284-
#nvidia-692 GRID A100D-4C
285-
#nvidia-693 GRID A100D-8C
286-
#nvidia-694 GRID A100D-10C
287-
#nvidia-695 GRID A100D-16C
288-
#nvidia-696 GRID A100D-20C
289-
#nvidia-697 GRID A100D-40C
290-
#nvidia-698 GRID A100D-80C
291-
#nvidia-699 GRID A100D-1-10C
292-
#nvidia-700 GRID A100D-2-20C
293-
#nvidia-701 GRID A100D-3-40C
294-
#nvidia-702 GRID A100D-4-40C
295-
#nvidia-703 GRID A100D-7-80C
296-
#nvidia-707 GRID A100D-1-10CME
297-
vgpu_definitions:
298-
# Configuring a MIG backed VGPU
299-
- pci_address: "0000:17:00.0"
300-
virtual_functions:
301-
- mdev_type: nvidia-700
302-
index: 0
303-
- mdev_type: nvidia-700
304-
index: 1
305-
- mdev_type: nvidia-700
306-
index: 2
307-
- mdev_type: nvidia-699
308-
index: 3
309-
mig_devices:
310-
"1g.10gb": 1
311-
"2g.20gb": 3
312-
# Configuring a card in a time-sliced configuration (non-MIG backed)
313-
- pci_address: "0000:65:00.0"
314-
virtual_functions:
315-
- mdev_type: nvidia-697
316-
index: 0
317-
- mdev_type: nvidia-697
318-
index: 1
284+
#nvidia-692 GRID A100D-4C
285+
#nvidia-693 GRID A100D-8C
286+
#nvidia-694 GRID A100D-10C
287+
#nvidia-695 GRID A100D-16C
288+
#nvidia-696 GRID A100D-20C
289+
#nvidia-697 GRID A100D-40C
290+
#nvidia-698 GRID A100D-80C
291+
#nvidia-699 GRID A100D-1-10C
292+
#nvidia-700 GRID A100D-2-20C
293+
#nvidia-701 GRID A100D-3-40C
294+
#nvidia-702 GRID A100D-4-40C
295+
#nvidia-703 GRID A100D-7-80C
296+
#nvidia-707 GRID A100D-1-10CME
297+
vgpu_definitions:
298+
# Configuring a MIG backed VGPU
299+
- pci_address: "0000:17:00.0"
300+
virtual_functions:
301+
- mdev_type: nvidia-700
302+
index: 0
303+
- mdev_type: nvidia-700
304+
index: 1
305+
- mdev_type: nvidia-700
306+
index: 2
307+
- mdev_type: nvidia-699
308+
index: 3
309+
mig_devices:
310+
"1g.10gb": 1
311+
"2g.20gb": 3
312+
# Configuring a card in a time-sliced configuration (non-MIG backed)
313+
- pci_address: "0000:65:00.0"
314+
virtual_functions:
315+
- mdev_type: nvidia-697
316+
index: 0
317+
- mdev_type: nvidia-697
318+
index: 1
319319
320320
.. _NVIDIA Kolla Ansible Configuration:
321321

@@ -330,34 +330,34 @@ Map through the kayobe inventory groups into kolla:
330330
.. code-block:: yaml
331331
:caption: $KAYOBE_CONFIG_PATH/kolla.yml
332332
333-
kolla_overcloud_inventory_top_level_group_map:
334-
control:
335-
groups:
336-
- controllers
337-
network:
338-
groups:
339-
- network
340-
compute_cpu:
341-
groups:
342-
- compute_cpu
343-
compute_gpu:
344-
groups:
345-
- compute_gpu
346-
compute_multi_instance_gpu:
347-
groups:
348-
- compute_multi_instance_gpu
349-
compute_vgpu:
350-
groups:
351-
- compute_vgpu
352-
compute:
353-
groups:
354-
- compute
355-
monitoring:
356-
groups:
357-
- monitoring
358-
storage:
359-
groups:
360-
"{{ kolla_overcloud_inventory_storage_groups }}"
333+
kolla_overcloud_inventory_top_level_group_map:
334+
control:
335+
groups:
336+
- controllers
337+
network:
338+
groups:
339+
- network
340+
compute_cpu:
341+
groups:
342+
- compute_cpu
343+
compute_gpu:
344+
groups:
345+
- compute_gpu
346+
compute_multi_instance_gpu:
347+
groups:
348+
- compute_multi_instance_gpu
349+
compute_vgpu:
350+
groups:
351+
- compute_vgpu
352+
compute:
353+
groups:
354+
- compute
355+
monitoring:
356+
groups:
357+
- monitoring
358+
storage:
359+
groups:
360+
"{{ kolla_overcloud_inventory_storage_groups }}"
361361
362362
Where the ``compute_<suffix>`` groups have been added to the kayobe defaults.
363363

@@ -413,21 +413,21 @@ Below is a snippet of openstack-config for defining a project, and a security gr
413413
port_range_min: 7070
414414
port_range_max: 7070
415415
416-
secgroup_nvidia_dls:
417-
name: nvidia-dls
418-
project: "{{ project_cloud_services.name }}"
419-
rules: "{{ secgroup_rules_nvidia_dls }}"
416+
secgroup_nvidia_dls:
417+
name: nvidia-dls
418+
project: "{{ project_cloud_services.name }}"
419+
rules: "{{ secgroup_rules_nvidia_dls }}"
420420
421-
openstack_security_groups:
422-
- "{{ secgroup_nvidia_dls }}"
421+
openstack_security_groups:
422+
- "{{ secgroup_nvidia_dls }}"
423423
424-
project_cloud_services:
425-
name: "cloud-services"
426-
description: "Internal Cloud services"
427-
project_domain: default
428-
user_domain: default
429-
users: []
430-
quotas: "{{ quotas_project }}"
424+
project_cloud_services:
425+
name: "cloud-services"
426+
description: "Internal Cloud services"
427+
project_domain: default
428+
user_domain: default
429+
users: []
430+
quotas: "{{ quotas_project }}"
431431
432432
Booting the VM:
433433

@@ -526,7 +526,7 @@ Disk image builder recipe to automatically license VGPU on boot
526526
element to configure the nvidia-gridd service in VGPU mode. This allows you to boot VMs that automatically license themselves.
527527
Snippets of ``openstack-config`` that allow you to do this are shown below:
528528

529-
.. code-block:: shell
529+
.. code-block:: yaml
530530
531531
image_rocky9_nvidia:
532532
name: "Rocky9-NVIDIA"

tools/scan-images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ usage() {
2727
# Check dependencies are installed, print installation instructions otherwise
2828
check_deps_installed() {
2929
if ! trivy --version > /dev/null; then
30-
echo 'Please install trivy: curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin v0.66.0'
30+
echo 'Please install trivy: curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin v0.67.2'
3131
exit 1
3232
fi
3333
if ! yq --version > /dev/null; then

0 commit comments

Comments
 (0)