Database not delete PCI info after device is removed from host and nova.conf

Bug #1703488 reported by Eddie Yen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Low
Lakshman Ganesh Rajamani

Bug Description

Hi, this is my 1st time write this report at Launchpad.

===Description===
I'm using Mitaka installed by Fuel 9.2, and I meet a issue that the info didn't remove at pci_devices table in Nova Database after I removed one of the device from compute node and nova.conf

===How did I reproduce?===

1. Plug two different model PCI devices and add two PCI devices information into nova.conf in target compute node and each control node by following format:

2. Restart nova-api, nova-scheduler, and nova-compute.

Compute node only shows the last device I add.

But if I do some actions on instance with the flavor contained PCI passthrough info, it will be normal.

And database info is correct.

3. Remove one of the PCI device info from nova.conf (included target compute and controllers), restart services, shutdown the compute node and unplug the device.

(Note: The card ID of what I remove is 1002:68c8)

Power on the compute code and check nova-compute log, the report is correct. But data from pci_devices table seems wrong.

===Expected result===
The info of removed device should be deleted or stayed at "DELETED" status in Nova DB.

===Actual result===
The info of removed device still exist and stayed at "AVAILABLE" status in Nova DB.

===Log and configs===
[1] Format of pci_alias and pci_passthrough_whitelist in nova.conf
http://paste.openstack.org/show/614973/

[2] Nova-compute log after added info and restart service
http://paste.openstack.org/show/z015rYGXaxYhVoafKdbx/

[3] Nova-compute log after doing few actions on instance contained with PCI
http://paste.openstack.org/show/614658/

[4] Pci_devices table info in Nova DB after add devices
http://paste.openstack.org/show/8JS0i6BMitjeBVRJTkRo/

[5] Nova-compute log after remove one of the device and restart service
http://paste.openstack.org/show/qUCOX09jyeMydoYHc8Oz/

[6] Pci_devices table info in Nova DB after remove one of the device
http://paste.openstack.org/show/SnJ8AzJYD6wCo7jslIc2/

Revision history for this message
Matt Riedemann (mriedem) wrote :

We should have Moshe Levi (moshele in IRC) take a look at this.

Revision history for this message
Sean Dague (sdague) wrote :

This seems like a legit issue, should probably just scrub the node of all the pci data before new content is added.

Changed in nova:
status: New → Confirmed
importance: Undecided → Low
tags: added: low-hanging-fruit
Revision history for this message
Sean Dague (sdague) wrote :

By node, I mean that we seem to have this compute node scoped, so a node overwriting it's own entries (including delete) seems pretty safe

Eddie Yen (aksn74)
description: updated
Changed in nova:
assignee: nobody → Lakshman Ganesh Rajamani (ganlaksh)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.