Skip to content

Commit d02de0e

Browse files
author
Eric Fried
committed
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
1 parent d29d1d1 commit d02de0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nova/scheduler/client/report.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1998,7 +1998,8 @@ def delete_allocation_for_instance(self, context, uuid,
19981998
# at the moment there is no way placement returns a failure so we
19991999
# could even delete this code
20002000
LOG.warning('Unable to delete allocation for %(consumer_type)s '
2001-
'%(uuid)s: (%(code)i %(text)s)',
2001+
'%(uuid)s. Got %(code)i while retrieving existing '
2002+
'allocations: (%(text)s)',
20022003
{'consumer_type': consumer_type,
20032004
'uuid': uuid,
20042005
'code': r.status_code,

0 commit comments

Comments
 (0)