<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I see a lot of values in having something like this for inventory purposes and troubleshooting.<br>
<br>
IMHO the information should be provided in two ways.<br>
<br>
1. Show PCI pools status per compute. Currently the pools only have information about how many devices are allocated in a pool ("count"). We should also derive from the pci_devices db table the number of PCI devices that are available per pool (not just the
number of allocated). This information could be included in the hypervisor-show (or a new REST API if this is found to be too noisy).<br>
<br>
2. More detailed information about each individual PCI devices (like you are suggesting: parent device relationships, etc.). This could be in a separate REST API call.<br>
<br>
We could even think about a third option where we could be showing global PCI pools information for a whole region.<br>
<br>
For discussions purposes, here's what pci_stats for a compute looks like today:<br>
{"count": 1, "numa_node": 0, "vendor_id": "8086", "product_id": "10fb", "tags": {"dev_type": "type-PF", "physical_network": "default"}}, "nova_object.namespace": "nova"}<br>
{"count": 3, "numa_node": 0, "vendor_id": "8086", "product_id": "10ed", "tags": {"dev_type": "type-VF", "physical_network": "default"}}, "nova_object.namespace": "nova"}]}, "nova_object.namespace": "nova"}<br>
<br>
Is there an intention to write a blueprint for this feature ? If there are interests, I don't mind working on it.<br>
<br>
/ludovic<br>
<br>
<br>
<div class="moz-cite-prefix">On 07/08/2016 07:11 AM, Murray, Paul (HP Cloud) wrote:<br>
</div>
<blockquote cite="mid:TU4PR84MB0079F12C2245F05736D1B4C3B83C0@TU4PR84MB0079.NAMPRD84.PROD.OUTLOOK.COM" type="cite">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">At the moment I am not aware of a nova api call that provides information about the pci devices on a host. The most obvious place to put this would be in hypervisor-show. I wonder if anyone has made an attempt at this already or if there
are any reasons for not adding pci information there?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Assuming pci device information was put in hypervisor-show I would be interested in how people think it would be presented. There are different types of pci device and things like virtual functions and parent device relationships. The information
should include the allocation status.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If hypervisor-show is not the place for this I would be interested in suggestions on where it should go.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Paul<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</blockquote>
<br>
</body>
</html>