how to define multiple aliases
Dear openstack community, I am trying to setup pci passthrough for multiple devices types but I am getting an error while creating a new vm. This is my pci section in nova.conf compute node [pci] passthrough_whitelist = [{ "vendor_id": "10de", "product_id": "1db1" }, { "vendor_id": "15b3", "product_id": "1016" }] alias = { "vendor_id":"10de", "product_id":"1db1", "device_type":"type-PCI", "name":"nv_v100" } alias = { "vendor_id":"15b3", "product_id":"1016", "device_type":"type-VF", "name":"mlnx_connectx4" } I also tried this [pci] passthrough_whitelist = [{ "vendor_id": "10de", "product_id": "1db1" }, { "vendor_id": "15b3", "product_id": "1016" }] alias = [{ "vendor_id":"10de", "product_id":"1db1", "device_type":"type-PCI", "name":"nv_v100" }, { "vendor_id":"15b3", "product_id":"1016", "device_type":"type-VF", "name":"mlnx_connectx4" }] And this is the error I am getting when I try to create a new vm: # openstack server create --flavor sriov.small --image centos7.5-image --availability-zone nova:zeus-59.localdomain vm-sriov-test PCI alias mlnx_connectx4 is not defined (HTTP 400) (Request-ID: req-aebb2d05-a557-428b-b2c6-090c16dc7c76) how can I setup multiple aliases for different devices? Thank you very much NOTICE Please consider the environment before printing this email. This message and any attachments are intended for the addressee named and may contain legally privileged/confidential/copyright information. If you are not the intended recipient, you should not read, use, disclose, copy or distribute this communication. If you have received this message in error please notify us at once by return email and then delete both messages. We accept no liability for the distribution of viruses or similar in electronic communications. This notice should not be removed.
Dear openstack community,
I am trying to setup pci passthrough for multiple devices types but I am getting an error while creating a new vm.
This is my pci section in nova.conf compute node you need to set the alais on both the controller ( i belive specically the nova api config) and the compute node see https://docs.openstack.org/nova/latest/admin/pci-passthrough.html#configure-... and https://docs.openstack.org/nova/latest/admin/pci-passthrough.html#configure-...
[pci] passthrough_whitelist = [{ "vendor_id": "10de", "product_id": "1db1" }, { "vendor_id": "15b3", "product_id": "1016" }] alias = { "vendor_id":"10de", "product_id":"1db1", "device_type":"type-PCI", "name":"nv_v100" } alias = { "vendor_id":"15b3", "product_id":"1016", "device_type":"type-VF", "name":"mlnx_connectx4" }
On Tue, 2019-02-19 at 09:17 +0000, Manuel Sopena Ballesteros wrote: this is the correct format. it is documented here https://docs.openstack.org/nova/latest/configuration/config.html#pci.alias
I also tried this
[pci] passthrough_whitelist = [{ "vendor_id": "10de", "product_id": "1db1" }, { "vendor_id": "15b3", "product_id": "1016" }] alias = [{ "vendor_id":"10de", "product_id":"1db1", "device_type":"type-PCI", "name":"nv_v100" }, { "vendor_id":"15b3", "product_id":"1016", "device_type":"type-VF", "name":"mlnx_connectx4" }]
while the json list format is supported for the passthough_whiltelist it is not supported for aliases.
And this is the error I am getting when I try to create a new vm:
# openstack server create --flavor sriov.small --image centos7.5-image --availability-zone nova:zeus- 59.localdomain vm-sriov-test PCI alias mlnx_connectx4 is not defined (HTTP 400) (Request-ID: req-aebb2d05-a557-428b-b2c6-090c16dc7c76)
how can I setup multiple aliases for different devices?
Thank you very much NOTICE Please consider the environment before printing this email. This message and any attachments are intended for the addressee named and may contain legally privileged/confidential/copyright information. If you are not the intended recipient, you should not read, use, disclose, copy or distribute this communication. If you have received this message in error please notify us at once by return email and then delete both messages. We accept no liability for the distribution of viruses or similar in electronic communications. This notice should not be removed.
Manuel- The aliases need to be defined in your conf files on both the conductor and the compute nodes. If that's the case let me know and I'll take a closer look when I get to my desk. Eric Fried
On Feb 19, 2019, at 03:17, Manuel Sopena Ballesteros <manuel.sb@garvan.org.au> wrote:
Dear openstack community,
I am trying to setup pci passthrough for multiple devices types but I am getting an error while creating a new vm.
This is my pci section in nova.conf compute node
[pci] passthrough_whitelist = [{ "vendor_id": "10de", "product_id": "1db1" }, { "vendor_id": "15b3", "product_id": "1016" }] alias = { "vendor_id":"10de", "product_id":"1db1", "device_type":"type-PCI", "name":"nv_v100" } alias = { "vendor_id":"15b3", "product_id":"1016", "device_type":"type-VF", "name":"mlnx_connectx4" }
I also tried this
[pci] passthrough_whitelist = [{ "vendor_id": "10de", "product_id": "1db1" }, { "vendor_id": "15b3", "product_id": "1016" }] alias = [{ "vendor_id":"10de", "product_id":"1db1", "device_type":"type-PCI", "name":"nv_v100" }, { "vendor_id":"15b3", "product_id":"1016", "device_type":"type-VF", "name":"mlnx_connectx4" }]
And this is the error I am getting when I try to create a new vm:
# openstack server create --flavor sriov.small --image centos7.5-image --availability-zone nova:zeus-59.localdomain vm-sriov-test PCI alias mlnx_connectx4 is not defined (HTTP 400) (Request-ID: req-aebb2d05-a557-428b-b2c6-090c16dc7c76)
how can I setup multiple aliases for different devices?
Thank you very much NOTICE Please consider the environment before printing this email. This message and any attachments are intended for the addressee named and may contain legally privileged/confidential/copyright information. If you are not the intended recipient, you should not read, use, disclose, copy or distribute this communication. If you have received this message in error please notify us at once by return email and then delete both messages. We accept no liability for the distribution of viruses or similar in electronic communications. This notice should not be removed.
On Tue, 2019-02-19 at 08:05 -0600, Eric Fried wrote:
Manuel-
The aliases need to be defined in your conf files on both the conductor and the compute nodes. If that's the case let me know and I'll take a closer look when I get to my desk. it needs to be defined on the nova api server config and the nova compute config due to how the numa afinity policies work. at least i think that is the reason. stephen dug into this while trying to fix https://bugs.launchpad.net/nova/+bug/1805891 https://review.openstack.org/#/c/624444/2
its documented in the docs i linked in my previous reply https://docs.openstack.org/nova/latest/admin/pci-passthrough.html#configure-... and https://docs.openstack.org/nova/latest/admin/pci-passthrough.html#configure-... stephen has another patch up to make it even more explicit https://review.openstack.org/#/c/624445/ the conductor should not need the alias defiend.
Eric Fried
On Feb 19, 2019, at 03:17, Manuel Sopena Ballesteros <manuel.sb@garvan.org.au> wrote:
Dear openstack community,
I am trying to setup pci passthrough for multiple devices types but I am getting an error while creating a new vm.
This is my pci section in nova.conf compute node
[pci] passthrough_whitelist = [{ "vendor_id": "10de", "product_id": "1db1" }, { "vendor_id": "15b3", "product_id": "1016" }] alias = { "vendor_id":"10de", "product_id":"1db1", "device_type":"type-PCI", "name":"nv_v100" } alias = { "vendor_id":"15b3", "product_id":"1016", "device_type":"type-VF", "name":"mlnx_connectx4" }
I also tried this
[pci] passthrough_whitelist = [{ "vendor_id": "10de", "product_id": "1db1" }, { "vendor_id": "15b3", "product_id": "1016" }] alias = [{ "vendor_id":"10de", "product_id":"1db1", "device_type":"type-PCI", "name":"nv_v100" }, { "vendor_id":"15b3", "product_id":"1016", "device_type":"type-VF", "name":"mlnx_connectx4" }]
And this is the error I am getting when I try to create a new vm:
# openstack server create --flavor sriov.small --image centos7.5-image --availability-zone nova:zeus- 59.localdomain vm-sriov-test PCI alias mlnx_connectx4 is not defined (HTTP 400) (Request-ID: req-aebb2d05-a557-428b-b2c6-090c16dc7c76)
how can I setup multiple aliases for different devices?
Thank you very much NOTICE Please consider the environment before printing this email. This message and any attachments are intended for the addressee named and may contain legally privileged/confidential/copyright information. If you are not the intended recipient, you should not read, use, disclose, copy or distribute this communication. If you have received this message in error please notify us at once by return email and then delete both messages. We accept no liability for the distribution of viruses or similar in electronic communications. This notice should not be removed.
participants (3)
-
Eric Fried
-
Manuel Sopena Ballesteros
-
Sean Mooney