nova/nova/db
Steven Webster 7f3f0ef1fb Fix mitaka online migration for PCI devices
Currently, a validation error is thrown if we find any PCI device
records which have not populated the parent_addr column on a nova
upgrade. However, the only PCI records for which a parent_addr
makes sense for are those with a device type of 'type-VF' (ie. an
SRIOV virtual function).  PCI records with a device type of 'type-PF'
or 'type-PCI' will not have a parent_addr.  If any of those records
are present on upgrade, the validation will fail.

This change checks that the device type of the PCI record is
'type-VF' when making sure the parent_addr has been correctly
populated

Closes-Bug: #1680918
Change-Id: Ia7e773674a4976fc03deee3f08a6ddb45568ec11
2017-04-18 17:44:36 -04:00
..
sqlalchemy Fix mitaka online migration for PCI devices 2017-04-18 17:44:36 -04:00
__init__.py Remove vi modelines 2014-02-03 14:19:44 +00:00
api.py Remove aggregate uuid generation on load from DB 2017-04-10 18:16:01 -04:00
base.py config options: centralize section "database" + "api_database" 2016-05-16 10:20:51 +00:00
migration.py Manage db sync command for cell0 2016-08-22 18:53:45 +03:00