Comment 5 for bug 1223559

Revision history for this message
jiang, yunhong (yunhong-jiang) wrote :

Yongli, we need below patch, I'm OOP today and have no time to fully test it. A quick check seems it works.

diff --git a/nova/objects/pci_device.py b/nova/objects/pci_device.py
index a83b8f3..b3ae328 100644
--- a/nova/objects/pci_device.py
+++ b/nova/objects/pci_device.py
@@ -136,8 +136,8 @@ class PciDevice(base.NovaPersistentObject, base.NovaObject):

     def __init__(self):
         super(PciDevice, self).__init__()
- self.extra_info = {}
         self.obj_reset_changes()
+ self.extra_info = {}

     @staticmethod
     def _from_db_object(context, pci_device, db_dev):