Skip to content

Commit 8e12ece

Browse files
committed
Fix pci.alilas config for nova gpu DT/VA
Also configure the pci.alias config option on the controller. This configuration should match the configuration found on the compute nodes Signed-off-by: Bohdan Dobrelia <[email protected]>
1 parent a0c2294 commit 8e12ece

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

examples/dt/nova/nova04delta/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ That is a contrary to the legacy mode where PCI devices used to be requested thr
3232

3333
### Control Plane (`examples/dt/nova/nova04delta/service-values.yaml`)
3434

35-
* `[pci]alias`: Creates an alias for a specific GPU type. This allows users to request a GPU by a friendly name (e.g., `nvidia_a2`) when creating a VM.
35+
* `[pci]alias`: Creates an alias for a specific GPU type. This allows users to request a GPU by a friendly name (e.g., `nvidia_a2`) when creating a VM. This configuration should match the configuration found on the compute nodes.
3636
```yaml
3737
nova:
3838
apiServiceTemplate:
@@ -54,8 +54,9 @@ That is a contrary to the legacy mode where PCI devices used to be requested thr
5454
pci:
5555
conf: |
5656
[pci]
57-
device_spec = {"vendor_id":"10de", "product_id":"20f1", "address": "0000:04:00.0", "physical_network":null}
58-
device_spec = {"vendor_id":"10de", "product_id":"20f1", "address": "0000:82:00.0", "physical_network":null}
57+
device_spec = { "vendor_id":"10de", "product_id":"20f1", "address": "0000:04:00.0", "physical_network":null }
58+
device_spec = { "vendor_id":"10de", "product_id":"20f1", "address": "0000:82:00.0", "physical_network":null }
59+
alias = { "vendor_id":"10de", "product_id":"20f1", "device_type":"type-PCI", "name":"nvidia_a2" }
5960
```
6061

6162
In addition to PCI device configuration, the `nova.compute.conf` section includes parameters for resource management on the compute node:

examples/dt/nova/nova04delta/edpm/nodeset/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,10 @@ data:
148148
# "product_id": The product ID of the specific GPU model (e.g., "20f1" for an NVIDIA A100).
149149
# "address": The PCI address of the GPU on the host machine. You can find this using `lspci | grep -i nvidia`.
150150
# "physical_network": This is used for SR-IOV networking passthrough. For a GPU, you can typically leave this as null.
151+
# "alias": must match the alias configuration in the API service-values.yaml
151152
conf: |
152153
# CHANGEME
153154
[pci]
154155
device_spec = {"vendor_id":"10de", "product_id":"20f1", "address": "CHANGEME", "physical_network":null}
156+
alias = { "vendor_id":"10de", "product_id":"20f1", "device_type":"type-PCI", "name":"nvidia_a2" }
155157

examples/dt/nova/nova04delta/edpm/nodeset2/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ data:
148148
# "product_id": The product ID of the specific GPU model (e.g., "20f1" for an NVIDIA A100).
149149
# "address": The PCI address of the GPU on the host machine. You can find this using `lspci | grep -i nvidia`.
150150
# "physical_network": This is used for SR-IOV networking passthrough. For a GPU, you can typically leave this as null.
151+
# "alias": must match the alias configuration in the API service-values.yaml
151152
conf: |
152153
# CHANGEME
153154
[pci]
154155
device_spec = {"vendor_id":"10de", "product_id":"20f1", "address": "CHANGEME", "physical_network":null}
156+
alias = { "vendor_id":"10de", "product_id":"20f1", "device_type":"type-PCI", "name":"nvidia_a2" }

0 commit comments

Comments
 (0)