Add logs when cannot fit numa

When 'host_topology' can not be satified with 'requested_topology',
nova-compute returns the msg to nova-conductor but there is no logs
in nova-compute.log. So this patch adds some info log.

Closes-Bug: #1934412
Change-Id: Iff44abf002aac548340ffab0a6f85bc4906738a3
This commit is contained in:
ericxiett
2021-06-26 09:53:27 +00:00
parent 1f6c351712
commit 97a566ad9c

View File

@@ -112,6 +112,8 @@ class Claim(NopClaim):
self._test_pci()]
reasons = [r for r in reasons if r is not None]
if len(reasons) > 0:
LOG.info('Failed to claim: %s', '; '.join(reasons),
instance=self.instance)
raise exception.ComputeResourcesUnavailable(reason=
"; ".join(reasons))