← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1703488] [NEW] Database not delete PCI info after device is removed from host and nova.conf

 

Public bug reported:

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.

===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/

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: db pci

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1703488

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

Status in OpenStack Compute (nova):
  New

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.

  ===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/

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1703488/+subscriptions