diff options
Diffstat (limited to 'nova/compute/manager.py')
-rw-r--r-- | nova/compute/manager.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py index afa8ecc463..866fe65ff9 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -7712,10 +7712,10 @@ class ComputeManager(manager.Manager): if not pci_reqs.requests: return None - devices = self.rt.claim_pci_devices( - context, pci_reqs, instance.numa_topology) - - if not devices: + try: + devices = self.rt.claim_pci_devices( + context, pci_reqs, instance.numa_topology) + except exception.PciDeviceRequestFailed: LOG.info('Failed to claim PCI devices during interface attach ' 'for PCI request %s', pci_reqs, instance=instance) raise exception.InterfaceAttachPciClaimFailed( |