From a3d0aa477288cf5b0991690baadb4e2d1db00d82 Mon Sep 17 00:00:00 2001 From: Artom Lifshitz Date: Fri, 30 Jul 2021 12:38:34 +0200 Subject: [PATCH] I2f9ad3df25306e070c8c3538bfed1212d6d8682f fup: add log Log that we're deleting a compute service with no associated compute node records. Change-Id: I72a867fe0287e1a3f75d717107011fbf447731d4 --- nova/api/openstack/compute/services.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nova/api/openstack/compute/services.py b/nova/api/openstack/compute/services.py index 2b1e3fae61..6deb84a7f1 100644 --- a/nova/api/openstack/compute/services.py +++ b/nova/api/openstack/compute/services.py @@ -306,7 +306,8 @@ class ServiceController(wsgi.Controller): # get_all_host() above will raise, as there are no longer # any compute node records for the host. Catch it here and # continue to allow compute service deletion. - pass + LOG.info('Deleting compute service with no associated ' + 'compute nodes.') aggrs = self.aggregate_api.get_aggregates_by_host(context, service.host)