Skip to content

Commit 20d03ec

Browse files
authored
Merge branch 'stackhpc/2025.1' into bump-kayobe-automation
2 parents 8f84f4f + 89c6c5e commit 20d03ec

File tree

7 files changed

+39
-3
lines changed

7 files changed

+39
-3
lines changed

etc/kayobe/ansible/check-kayobe-version.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,26 @@
77
requirements_path: "{{ kayobe_config_path }}/../../requirements.txt"
88
tasks:
99
- name: Check version
10-
when: stackhpc_enable_kayobe_check
10+
when: stackhpc_enable_kayobe_check | bool
1111
check_mode: false
1212
block:
1313
- name: Get package info
1414
community.general.pip_package_info:
1515
register: packages
1616

17+
- name: Check if Kayobe is installed as editable
18+
ansible.builtin.assert:
19+
that: packages.packages.pip.kayobe[0].editable_project_location is not defined
20+
fail_msg: |
21+
You are using Kayobe as an editable install. Please recreate the
22+
Kayobe environment, or reinstall Kayobe by running:
23+
pip install --force-reinstall -r {{ requirements_path }}
24+
25+
If an editable install is actually required, you can skip this
26+
check by setting stackhpc_enable_kayobe_check to false.
27+
success_msg: |
28+
Kayobe is not installed as editable.
29+
1730
- name: Check if pip is version 24.0 or newer
1831
ansible.builtin.assert:
1932
that: "{{ packages.packages.pip.pip[0].version is version('24.0', '>=') }}"

etc/kayobe/ansible/check-kolla-ansible-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
gather_facts: false
66
tasks:
77
- name: Check version
8-
when: stackhpc_enable_kolla_ansible_check
8+
when: stackhpc_enable_kolla_ansible_check | bool
99
check_mode: false
1010
block:
1111
- name: Get current Kolla-Ansible tag
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
{% if gpu_group_map | default({}) %}
12
[pci]
2-
{% for item in (gpu_group_map | default({})) | dict2items | map(attribute='value') | flatten | unique | list %}
3+
{% for item in gpu_group_map | dict2items | map(attribute='value') | flatten | unique | list %}
34
alias = { "vendor_id":"{{ stackhpc_gpu_data[item].vendor_id }}", "product_id":"{{ stackhpc_gpu_data[item].product_id }}", "device_type":"{{ stackhpc_gpu_data[item].device_type }}", "name":"{{ stackhpc_gpu_data[item].resource_name }}" }
45
{% endfor %}
6+
{% endif %}

etc/kayobe/kolla/config/nova/nova-compute.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% if gpu_group_map | default({}) %}
12
[pci]
23
{% raw %}
34
{% set gpu_list = [] %}
@@ -11,3 +12,4 @@ device_spec = { "vendor_id":"{{ stackhpc_gpu_data[item].vendor_id }}", "product_
1112
alias = { "vendor_id":"{{ stackhpc_gpu_data[item].vendor_id }}", "product_id":"{{ stackhpc_gpu_data[item].product_id }}", "device_type":"{{ stackhpc_gpu_data[item].device_type }}", "name":"{{ stackhpc_gpu_data[item].resource_name }}" }
1213
{% endfor %}
1314
{% endraw %}
15+
{% endif %}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
{% if gpu_group_map | default({}) %}
12
[filter_scheduler]
23
# Default list plus PciPassthroughFilter
34
# NOTE(Upgrade): defaults may change in each release. Default values can be
45
# checked here:
56
# https://docs.openstack.org/nova/latest/configuration/sample-config.html
67
enabled_filters = ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,PciPassthroughFilter
78
available_filters = nova.scheduler.filters.all_filters
9+
{% endif %}

etc/kayobe/stackhpc-compute.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,15 @@ stackhpc_gpu_data:
101101
vendor_id: "10de"
102102
product_id: "26b9"
103103
device_type: "type-PF"
104+
# Nvidia A30
105+
a30:
106+
resource_name: "{{ a30_resource_name | default('a30') }}"
107+
vendor_id: "10de"
108+
product_id: "20b7"
109+
device_type: "type-PF"
110+
# Nvidia H100L
111+
h100l:
112+
resource_name: "{{ h100l_resource_name | default('h100l') }}"
113+
vendor_id: "10de"
114+
product_id: "2321"
115+
device_type: "type-PF"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
Add definitions for ``NVIDIA A30`` and ``NVIDIA H100L`` to the
5+
``stackhpc_gpu_data`` for easy deployment of such GPUs.

0 commit comments

Comments
 (0)