← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1445040] [NEW] InstancePCIRequests.obj_from_db fails to get requests from db

 

Public bug reported:

InstancePCIRequests.obj_from_db assumes  db_requests is a dict of  whole
row values from instance_extra table

https://github.com/openstack/nova/blob/d1fb8d0fbdd6cb95c43b02f754409f1c728e8cd0/nova/objects/instance_pci_requests.py#L83


but when called from Instance._from_db_object 

https://github.com/openstack/nova/blob/d1fb8d0fbdd6cb95c43b02f754409f1c728e8cd0/nova/objects/instance.py#L507

It gets only the value of pci_requests column .

As a result  when loading instance from DB pci_requests won't be
populated with the values from db.

** Affects: nova
     Importance: Undecided
         Status: New

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

Title:
  InstancePCIRequests.obj_from_db fails to get requests from db

Status in OpenStack Compute (Nova):
  New

Bug description:
  InstancePCIRequests.obj_from_db assumes  db_requests is a dict of
  whole row values from instance_extra table

  https://github.com/openstack/nova/blob/d1fb8d0fbdd6cb95c43b02f754409f1c728e8cd0/nova/objects/instance_pci_requests.py#L83

  
  but when called from Instance._from_db_object 

  https://github.com/openstack/nova/blob/d1fb8d0fbdd6cb95c43b02f754409f1c728e8cd0/nova/objects/instance.py#L507

  It gets only the value of pci_requests column .

  As a result  when loading instance from DB pci_requests won't be
  populated with the values from db.

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


Follow ups

References