From d02de0e149e14d9d507d125f8dec075e1e08ad85 Mon Sep 17 00:00:00 2001 From: Eric Fried Date: Fri, 19 Jul 2019 17:02:32 -0500 Subject: [PATCH] Disambiguate logs in delete_allocation_for_instance Two different error conditions in SchedulerReportClient.delete_allocation_for_instance printed the same warning log, which could be confusing. Reword one of them to disambiguate. Change-Id: Id1c5493a7270f2d0594e918df8704f671416a221 --- nova/scheduler/client/report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nova/scheduler/client/report.py b/nova/scheduler/client/report.py index 541c17b74dc0..3553ae32e89b 100644 --- a/nova/scheduler/client/report.py +++ b/nova/scheduler/client/report.py @@ -1998,7 +1998,8 @@ class SchedulerReportClient(object): # at the moment there is no way placement returns a failure so we # could even delete this code LOG.warning('Unable to delete allocation for %(consumer_type)s ' - '%(uuid)s: (%(code)i %(text)s)', + '%(uuid)s. Got %(code)i while retrieving existing ' + 'allocations: (%(text)s)', {'consumer_type': consumer_type, 'uuid': uuid, 'code': r.status_code,