From 0f1627388614f56e163c89edd713fab069869b07 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Wed, 6 Jul 2022 16:51:43 +0200 Subject: [PATCH] Trivial: log which state the node is in Change-Id: I87326585896cae9df717e9d19b2ea441d92d3b1a --- ironic/conductor/manager.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ironic/conductor/manager.py b/ironic/conductor/manager.py index 1b15f7856b..85cd9a4703 100644 --- a/ironic/conductor/manager.py +++ b/ironic/conductor/manager.py @@ -2338,13 +2338,15 @@ class ConductorManager(base_manager.BaseConductorManager): action = _("Port %(port)s can not have any connectivity " "attributes (%(connect)s) updated unless " "node %(node)s is in a %(allowed)s state " - "or in maintenance mode.") + "or in maintenance mode. The current state is " + "%(state)s.") raise exception.InvalidState( action % {'port': port_uuid, 'node': node.uuid, 'connect': ', '.join(connectivity_attr), - 'allowed': ', '.join(allowed_update_states)}) + 'allowed': ', '.join(allowed_update_states), + 'state': node.provision_state}) utils.validate_port_physnet(task, port_obj) task.driver.network.validate(task)