← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1910663] Re: pci device duplicate attach after intance evacuated

 

[Expired for OpenStack Compute (nova) because there has been no activity
for 60 days.]

** Changed in: nova
       Status: Incomplete => Expired

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

Title:
  pci device duplicate attach after intance evacuated

Status in OpenStack Compute (nova):
  Expired

Bug description:
  my openstack version is openstack-nova-compute-22.0.1 
  after I evacuated an instance  use:
   nova evacuate 837e283a-4288-44c1-b1e8-846fb0488c9c

  I found this instance's pci device duplicated in virsh xml ,here are:

      <video>
        <model type='cirrus' vram='16384' heads='1' primary='yes'/>
        <alias name='video0'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
      </video>
      <hostdev mode='subsystem' type='pci' managed='yes'>
        <driver name='vfio'/>
        <source>
          <address domain='0x0000' bus='0x85' slot='0x00' function='0x0'/>
        </source>
        <alias name='hostdev0'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
      </hostdev>
      <hostdev mode='subsystem' type='pci' managed='yes'>
        <driver name='vfio'/>
        <source>
          <address domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
        </source>
        <alias name='hostdev1'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
      </hostdev>

  it suppose to be only one PCI passthough device. then I try more times,every time nova add a new pci passthough
   device to this instance during evacuate.the database finally like this. :

  deleted|id |compute_node_id|address     |vendor_id|dev_type|dev_id          |label          |status   |uuid                                |
  -------|---|---------------|------------|---------|--------|----------------|---------------|---------|------------------------------------|
        0|726|            189|0000:85:00.0|10de     |type-PCI|pci_0000_85_00_0|label_10de_1e89|allocated|fb211d66-e245-4de5-baec-8686a0b3fb9b|
        0|747|            195|0000:03:00.0|10de     |type-PCI|pci_0000_03_00_0|label_10de_1e89|allocated|fa0d92ff-273d-4a70-967d-9cf934b41f2c|
        0|828|            216|0000:02:00.0|10de     |type-PCI|pci_0000_02_00_0|label_10de_1e89|allocated|ae20691f-a2bf-43d4-a630-d9cd5db2168b|
        0|915|            237|0000:03:00.0|10de     |type-PCI|pci_0000_03_00_0|label_10de_1e89|allocated|6281ec51-decb-426c-b906-c788181bdd01|

  so this instance now has 4 pci passthough device from four different
  hosts.

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