<div dir="ltr">Hi Van,<div><br></div><div>You can try to create a pci-passthrough port with PCI info, then create vm using that port  without any alias.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 18, 2017 at 11:27 PM, Eric Fried <span dir="ltr"><<a href="mailto:openstack@fried.cc" target="_blank">openstack@fried.cc</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Robert-<br>
<br>
        No.<br>
<br>
        Some day, once generic device management is baked, there will be.<br>
Depending how your favorite virt driver decides to model things, one<br>
could envision a flavor with extra specs like:<br>
<br>
resources:SRIOV_NET_PF:1<br>
trait:CUSTOM_PCI_VENDORID_<wbr>8086=required<br>
trait:CUSTOM_PCI_PRODUCTID_<wbr>154D=required<br>
<br>
        In the meantime, it's especially useful to get this kind of feedback<br>
from ops so we can ensure we're meeting the right requirements as we<br>
design things.  Please reach out if you want to discuss further.<br>
<br>
Thanks,<br>
Eric Fried (efried)<br>
<div><div class="h5"><br>
On 10/18/2017 09:56 AM, Van Leeuwen, Robert wrote:<br>
> Hi,<br>
><br>
>  <br>
><br>
> Does anyone know if it is possible to set PCI pass through on a flavor<br>
> without also needing to set the alias on the nova API nodes as mentioned<br>
> here:<br>
> <a href="https://docs.openstack.org/nova/pike/admin/pci-passthrough.html" rel="noreferrer" target="_blank">https://docs.openstack.org/<wbr>nova/pike/admin/pci-<wbr>passthrough.html</a><br>
><br>
>  <br>
><br>
> E.G you need to set in nova.conf:<br>
><br>
> [pci]<br>
><br>
> alias = { "vendor_id":"8086", "product_id":"154d ",<br>
> "device_type":"type-PF", "name":"a1" }<br>
><br>
>  <br>
><br>
> Then you can set the flavor:<br>
><br>
> openstack flavor set m1.large --property "pci_passthrough:alias"="a1:2"<br>
><br>
>  <br>
><br>
>  <br>
><br>
> E.g. I would be fine with just setting the PCI vendor/product on the<br>
> flavor instead of also needing to set this at the api node<br>
><br>
> So something like:<br>
><br>
> openstack flavor set m1.large –property “pci_passthrough:vendor”=”<wbr>8086”<br>
>  “pci_passthrough:device”=”<wbr>154d:1”<br>
><br>
>  <br>
><br>
> Thx,<br>
><br>
> Robert  van Leeuwen<br>
><br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> OpenStack-operators mailing list<br>
> <a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.<wbr>openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-operators</a><br>
><br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Tang Yaguang</div><div><br></div><br><div> </div></div></div>
</div>