Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion etc/kayobe/ansible/pci-passthrough.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
vfio_pci_ids: |-
{% set gpu_list = [] %}
{% set output = [] %}
{% for gpu_group in gpu_group_map | dict2items | default([]) %}
{% for gpu_group in (gpu_group_map | default({})) | dict2items %}
{% if gpu_group.key in group_names %}
{% set _ = gpu_list.append(gpu_group.value) %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion etc/kayobe/kolla/config/nova/nova-api.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[pci]
{% for item in gpu_group_map | dict2items | map(attribute='value') | flatten | unique | list %}
{% for item in (gpu_group_map | default({})) | dict2items | map(attribute='value') | flatten | unique | list %}
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 }}" }
{% endfor %}
2 changes: 1 addition & 1 deletion etc/kayobe/kolla/config/nova/nova-compute.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[pci]
{% raw %}
{% set gpu_list = [] %}
{% for gpu_group in gpu_group_map | dict2items | default([]) %}
{% for gpu_group in (gpu_group_map | default({})) | dict2items %}
{% if gpu_group.key in group_names %}
{% set _ = gpu_list.append(gpu_group.value) %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
fixes:
- |
Fixes possible templating error with PCI passthrough configuration.
Loading