<div dir="ltr">Hi Jay,<div><br></div><div>The status of the "removed" GPU still shows as "Available" in pci_devices table.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-07 8:34 GMT+08:00 Jay Pipes <span dir="ltr"><<a href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi again, Eddie :) Answer inline...<span class=""><br>
<br>
On 07/06/2017 08:14 PM, Eddie Yen wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hi everyone,<br>
<br>
I'm using OpenStack Mitaka version (deployed from Fuel 9.2)<br>
<br>
In present, I installed two different model of GPU card.<br>
<br>
And wrote these information into pci_alias and pci_passthrough_whitelist in nova.conf on Controller and Compute (the node which installed GPU).<br></span>
Then restart nova-api, nova-scheduler,and nova-compute.<span class=""><br>
<br>
When I check database, both of GPU info registered in pci_devices table.<br>
<br>
Now I removed one of the GPU from compute node, and remove the information from nova.conf, then restart services.<br>
<br>
But I check database again, the information of the removed card still exist in pci_devices table.<br>
<br>
How can I do to fix this problem?<br>
</span></blockquote>
<br>
So, when you removed the GPU from the compute node and restarted the nova-compute service, it *should* have noticed you had removed the GPU and marked that PCI device as deleted. At least, according to this code in the PCI manager:<br>
<br>
<a href="https://github.com/openstack/nova/blob/master/nova/pci/manager.py#L168-L183" rel="noreferrer" target="_blank">https://github.com/openstack/n<wbr>ova/blob/master/nova/pci/manag<wbr>er.py#L168-L183</a><br>
<br>
Question for you: what is the value of the status field in the pci_devices table for the GPU that you removed?<br>
<br>
Best,<br>
-jay<br>
<br>
p.s. If you really want to get rid of that device, simply remove that record from the pci_devices table. But, again, it *should* be removed automatically...<br>
<br>
______________________________<wbr>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
</blockquote></div><br></div>